Snowcrash
Snowcrash

Reputation: 86097

Passenger module fails to install

On Mac OSX 10.8.4, I'm running:

sudo passenger-install-apache2-module

which suggested:

Your RVM wrapper scripts are too old, or some wrapper scripts are missing. Please update/regenerate them first by running:

rvmsudo rvm get stable && rvm reload && rvmsudo rvm repair all

If that doesn't seem to work, please run:

rvmsudo rvm wrapper [] --no-prefix --all

I did the first bit, re-ran the passenger-install-apache2-module but got the same problem. Then I did the second part. This gave:

awk: nonterminated character class ^[]=
source line number 1
context is
 >>> /^[]=/ <<< 
sed: 1: "s#^[]=##
": unbalanced brackets ([])
Unknown ruby interpreter string component: '[]'.
Could not load ruby [].

Any suggestions on where I go from here?

Upvotes: 0

Views: 938

Answers (1)

mpapis
mpapis

Reputation: 53158

just run passenger-install-apache2-module do not prefix it with sudo.

the command will tell you what to do if it has no write access into required locations.

using sudo losses all environment variables - which basically breaks what rvm set up.

if you would really need root privileges you should use rvmsudo which does preserve all required environment variables.

Upvotes: 3

Related Questions