Recently I’m having trouble installing nginx with passenger on ubuntu 11.10 32/64bit. Having to search around, the problem lies on the gcc 4.6 when compiling the nginx.
Here is the error that I found:
/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 operationcollect2: ld returned 1 exit statusmake[1]: *** [objs/nginx] Error 1make[1]: Leaving directory `/tmp/root-passenger-3038/nginx-1.0.6'make: *** [build] Error 2The solution for me is to install gcc-4.4 that can happily co exist with the gcc-4.6 one.
sudo apt-get install gcc-4.4 g++-4.4 libstdc++6-4.4-dev
after installing the passenger gem, run:
rvmsudo CC=gcc-4.4 passenger-install-nginx-module
And this is the command for the Passenger standalone:
CC=gcc-4.4 passenger start
