在Mac上安装Passenger时出现RVM警告

时间:2013-06-21 15:54:33

标签: passenger

在Mac上安装Passenger会遇到此问题。 有什么建议吗?

sudo passenger-install-apache2-module

...

 * Checking for Zlib development headers...
  Found: yes
  Location: /usr/local/include/zlib.h
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

首先我做了:

$  rvmsudo rvm get stable && rvm reload && rvmsudo rvm repair all
Warning: can not check `/etc/sudoers` for `secure_path`, falling back to call via `/usr/bin/env`, this breaks rules from `/etc/sudoers`. export rvmsudo_secure_path=1 to avoid the warning.

重新安装了rvm然后我做了:

$  rvmsudo rvm wrapper [] --no-prefix --all
Warning: can not check `/etc/sudoers` for `secure_path`, falling back to call via `/usr/bin/env`, this breaks rules from `/etc/sudoers`. Run:

export rvmsudo_secure_path=1

to avoid the warning, put it in shell initialization file to make it persistent.

In case there is no `secure_path` in `/etc/sudoers`. Run:

export rvmsudo_secure_path=0

to avoid the warning, put it in shell initialization file to make it persistent.
awk: nonterminated character class ^[]=
source line number 1
context is
>>> /^[]=/ <<< 
sed: 1: "s#^[]=##
": unbalanced brackets ([])
Unknown ruby interpreter string component: '[]'.
Could not load ruby [].

1 个答案:

答案 0 :(得分:2)

添加到〜/ .profile或〜/ .bash_profile

export rvmsudo_secure_path=0

您可以尝试在没有sudo的情况下安装乘客。

$ passenger-install-apache2-module
相关问题