2011-11-17 3 views
1

nginx를 passenger-install- nginx-module (rvmsudo)과 함께 설치하면 발생하는 오류 메시지가 있습니다. nginx는/opt/nginx (기본값) 아래에 설치된 1.0.6입니다. 보석 설치 승객 이전에 성공적으로.우분투 11.10 및 레일 3.1.0에서 nginx를 설치하는 중 오류가 발생했습니다.

누군가가 문제에 대해 알고 있습니까? 감사.

/usr/bin/ld: /home/dtt/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ 
ext/nginx/../common/libpassenger_common.a(aggregate.o): undefined 
reference to symbol '[email protected]@GLIBC_2.2.5' 
/usr/bin/ld: note: '[email protected]@GLIBC_2.2.5' is defined in DSO /usr/lib/gcc/ 
x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/libm.so so try adding 
it to the linker command line 
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/libm.so: 
could not read symbols: Invalid operation 
collect2: ld returned 1 exit status 
make[1]: *** [objs/nginx] Error 1 
make[1]: Leaving directory `/tmp/root-passenger-2135/nginx-1.0.6' 
make: *** [build] Error 2 
-------------------------------------------- 

It looks like something went wrong 

......

답변

0

여객 다운로드 파일과 사용하려고 우분투 버전이없는 특정 라이브러리에 링크 자체 헤더. 최상의 결과를 얻으려면 LTS 배포판을 사용해보십시오.

+0

https://groups.google.com/forum/#!topic/phusion-passenger/OW-NDvlWLno에서 나는 과정에 새로운 오전. 내가 따라야 할 가이드가 있습니까? 감사. – user938363

+0

'nginx 승객 설치'를 검색하거나 여기보다는 서버 오류를 묻는 경우, 꽤 많은 가이드가 있습니다. –

+0

우분투 11.10은 지난 달에 발표되었습니다. LTS 배포판입니까? – user938363

0

hey! I solve this issue moving block: 

ngx_feature="Math library" ngx_feature_name= ngx_feature_run=no 
ngx_feature_incs="#include <math.h>" ngx_feature_path= 
ngx_feature_libs="-lm" ngx_feature_test="pow(1, 2)" . auto/feature if 
[ $ngx_found = yes ]; then 
    CORE_LIBS="$CORE_LIBS -lm" fi 

to after: 

ngx_addon_name=ngx_http_passenger_module HTTP_MODULES="$HTTP_MODULES 
ngx_http_passenger_module" NGX_ADDON_SRCS="$NGX_ADDON_SRCS \ 
    ${ngx_addon_dir}/ngx_http_passenger_module.c \ 
    ${ngx_addon_dir}/Configuration.c \ 
    ${ngx_addon_dir}/ContentHandler.c \ 
    ${ngx_addon_dir}/StaticContentHandler.c" NGX_ADDON_DEPS="$NGX_ADDON_DEPS \ 
    ${ngx_addon_dir}/Configuration.h \ 
    ${ngx_addon_dir}/ContentHandler.h \ 
    ${ngx_addon_dir}/StaticContentHandler.h \ 
    ${ngx_addon_dir}/ngx_http_passenger_module.h \ 
    ${ngx_addon_dir}/../common/Constants.h" CORE_LIBS="$CORE_LIBS \ 
    ${ngx_addon_dir}/../common/libpassenger_common.a \ 
    ${ngx_addon_dir}/../common/libboost_oxt.a \ 
    -lstdc++ -lpthread" 

in ext/nginx/config 
관련 문제