2013-06-21 3 views
1

Mac에 여객을 설치하면이 문제가 발생합니다. 제안 사항이 있으십니까?Mac에 여객을 설치할 때 RVM 경고가 표시됩니다.

$ 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 다음 내가 그랬어 :

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

답변

2

당신의 ~/.profile에 또는 ~/.bash_profile에

에 추가
export rvmsudo_secure_path=0 

sudo없이 승객을 설치하려고 할 수 있습니다.

$ passenger-install-apache2-module 
관련 문제