2012-12-02 52 views
0

当我在安装rbenv时尝试以下操作时,我得到了权限被拒绝的错误。我试图设置我的VPS环境来部署我的Rails应用程序。在VPS上安装rbenv,权限被拒绝

[email protected]:~$ curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash 
bash: /usr/bin/curl: permission denied 

curl已经安装。我如何解决这个问题?

+1

你看过这个http://superuser.com/questions/171518/curl-works-only-as-root? –

+0

重装卷曲固定问题! –

回答

0

要解决这个问题,我不得不

1)回到根与

su root 
cd 

2)重新安装卷曲

sudo apt-get purge curl libcurl3 
sudo apt-get install curl 

3)回到部署

su deployer 
cd 

4)安装rben v

curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash