1

在 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 [].
4

1 回答 1

2

添加到您的 ~/.profile 或 ~/.bash_profile

export rvmsudo_secure_path=0

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

$ passenger-install-apache2-module
于 2013-09-18T17:02:16.437 回答