Ec2 install ruby gems




















Quite possibly, the rvm Ruby is separate and different from the system Ruby environment and depends on where what gem gets executed according to the path. Or also try like you mentioned rvmsudo.

The risk there as the some of the files may have root ownership which you may not want if you want to be more secure. Note that rvmsudo is not the recommended way but rather use rvm on your local directory. If you'd like to remove it you can do this:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.

Learn more. Error while gem install on ubuntu Asked 7 years, 10 months ago. Active 3 years, 2 months ago. Viewed 3k times. Fetching: atomic Improve this question. Rico 52k 12 12 gold badges 93 93 silver badges bronze badges.

Add a comment. Active Oldest Votes. Improve this answer. Andre Figueiredo The86Freak The86Freak 7 7 silver badges 12 12 bronze badges. You can try this: chown -R user-you-want-to-run-command-as. Rico Rico 52k 12 12 gold badges 93 93 silver badges bronze badges.

Connect and share knowledge within a single location that is structured and easy to search. I'm trying to install Ruby on Rails in EC2.

I have bash open, and have tried things like "yum install ruby", "gem install ruby" etc, but no luck. You'll notice in the tutorial you referenced that a lot of the commands begin with sudo. That command allows you to run with the privileges of another user.

In this case, it suggests that you run the command as root. Note that echo isn't a great example of a command requiring elevated permissions, but it demonstrates the syntax. If you navigate to the directory of your application and type su , you will be prompted for your password and you will be now using bash as root.

Then type your command which you specified as yum install ruby. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 7 years, 5 months ago. Active 6 years, 10 months ago. Viewed times. I'm just trying to get the basic going so I can do a "hello world" kind of script Improve this question. Add a comment. Active Oldest Votes.



0コメント

  • 1000 / 1000