Skip to content

Instantly share code, notes, and snippets.

@0xGGGGG
Created November 7, 2011 14:27
Show Gist options
  • Save 0xGGGGG/1345162 to your computer and use it in GitHub Desktop.
Save 0xGGGGG/1345162 to your computer and use it in GitHub Desktop.
solution to errors while installing passenger-nginx-module on ubuntu 11.10
# passenger-nginx-module will try to compile nginx if you choose option 1, so it will try to use gcc.
# default gcc version on ubuntu 11.10 is gcc-4.6 and there will be linkage order problems while compilation of nginx
# to pass that issue you can simply install gcc-4.4 and tell passenger to use that specific version.
#first install gcc-4.4
sudo apt-get install gcc-4.4 g++-4.4 libstdc++6-4.4-dev
#then install passenger-nginx-module by telling specific gcc version will be used
rvmsudo CC=gcc-4.4 passenger-install-nginx-module # if you use rvm
sudo CC=gcc-4.4 passenger-install-nginx-module # otherwise
@firman
Copy link

firman commented Feb 27, 2012

really works bro :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment