首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在ubuntu 11.10和rails 3.1.0上使用passenger install- nginx -module安装nginx时出错

在ubuntu 11.10和rails 3.1.0上使用passenger install- nginx -module安装nginx时出错
EN

Stack Overflow用户
提问于 2011-11-18 00:46:25
回答 2查看 940关注 0票数 1

以下是使用passenger-install- nginx-module (rvmsudo)安装nginx的错误消息。nginx是1.0.6,安装在/opt/nginx下(默认)。gem安装passenger成功。

有人知道这个问题了吗?谢谢。

代码语言:javascript
复制
/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 'round@@GLIBC_2.2.5'
/usr/bin/ld: note: 'round@@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

.

EN

回答 2

Stack Overflow用户

发布于 2011-11-18 00:51:38

Passenger下载头文件,并将其自身链接到您尝试使用的Ubuntu版本所没有的特定库。为了获得最好的结果,请尝试使用LTS发行版。

票数 0
EN

Stack Overflow用户

发布于 2011-12-20 00:41:43

来自https://groups.google.com/forum/#!topic/phusion-passenger/OW-NDvlWLno

代码语言:javascript
复制
 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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8170974

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档