0

I got a permission denied error when I tried the following while installing rbenv. I'm trying to set up my VPS environment to deploy my rails app.

deployer@max:~$ curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
bash: /usr/bin/curl: permission denied

curl is already installed. How do I fix this issue?

Maximus S
  • 10,759
  • 19
  • 75
  • 154

1 Answers1

0

To fix this issue, I had to

1) go back to root with

su root
cd

2) reinstall curl

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

3) go back to deployer

su deployer
cd

4) install rbenv

curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
Maximus S
  • 10,759
  • 19
  • 75
  • 154