it looks like you have problems with the outline (as you said). try to check why you have two different ways for your ruby โโinstallation.
I mean, according to your release of env env, you have some installation on
/opt/local/ruby-enterprise-1.8.7-2010.01/
but you also have ruby โโand bunlder under
/opt/local/ree/
So, start from here to check if all paths are correct and / or you donโt have any double settings (well, this is enough to check if the ENV codes match).
Another problem might be related to your nginx.conf, you should have something like this:
[...] http { passenger_root /your/path/to/passenger/gem; passenger_ruby /path/to/ruby; [...] }
UPDATE (just looked for additional comments using nginx.conf):
as you can see, there is a problem with the paths: you have two paths for installing ruby โโand gems:
/opt/local/ruby-enterprise....
and
/opt/local/ree
you must delete the latter (not physically, just view the ENV to point to the first)
EDIT: to change your env you can add the following line to your / etc / bash.bashrc (or the whaterver file is loaded from your shell by default):
PATH="/opt/local/ruby-enterprise-1.8.7-2010.01/bin:$PATH"
then log out and log in, or for a quick test, run this command from the shell:
source / etc / bash.bashrc
Now, try again to find out which binary is used by default:
which ruby which gem which rake gem env ...
everything should have the prefix / opt / local / ruby-enterprise-1.8.7-2010.01 / (which is used in nginx configurations and for the passenger).
UPDATE2 : from the comments it turned out that you have installed at least 3 rubies:
- ruby from your package manager in / usr / lib / ruby โโ/ (do you use Linux ubuntu?)
- ruby in / opt / local / ree /
- ruby in / opt / local / ruby โโ-enterprise -....
at this moment it is best: