Hi everyone, I'm learning ruby and I'm trying to install gems but i had some trouble installing gems: $ sudo gem install ... ERROR: http://rubygems.org/ does not appear to be a repository ERROR: Could not find a valid gem … in any repository I don't know what to do. I've tried to follow instructions in this article: http://jacob.stanley.io/2010/10/27/sudo-gem-instal... But unfortunately I saved changes to /etc/sudoers.tmp (although the article that i mentioned tells to do the opposite). Please can you help me? my operating system is mac os x 10.7.4, my ruby version is 1.8.7 and the result of $ which ruby is: /usr/bin/ruby I really don't know what to do...
on 2012-09-11 19:45
on 2012-09-11 20:25
> I've tried to follow instructions in this article: > >> This post applies to Ubuntu Server 10.10 (Maverick Meerkat) > > my operating system is mac os x 10.7.4 Some might say...not the best choice. Leave the system ruby alone, and install the latest version of ruby: http://www.ruby-lang.org/en/downloads/ Then install rubygems, which is the program that lets you install gems: http://rubygems.org/ Then try to install a gem.
on 2012-09-11 23:38
7stud -- wrote in post #1075511: >> I've tried to follow instructions in this article: >> >>> This post applies to Ubuntu Server 10.10 (Maverick Meerkat) >> >> my operating system is mac os x 10.7.4 > > Some might say...not the best choice. > > Leave the system ruby alone, and install the latest version of ruby: > > http://www.ruby-lang.org/en/downloads/ > > Then install rubygems, which is the program that lets you install gems: > > http://rubygems.org/ > > Then try to install a gem thank you for helping me..I'll try what you said..is there other way to solve the problem?
on 2012-09-11 23:46
On Sep 11, 2012, at 4:38 PM, Antonio A. wrote: > 7stud -- wrote in post #1075511: >>> I've tried to follow instructions in this article: >>> >>>> This post applies to Ubuntu Server 10.10 (Maverick Meerkat) >>> >>> my operating system is mac os x 10.7.4 >> I'm using Mac OS X 10.8 and followed the articles instructions up to where he started to export the settings for sudo which I don't like to do and unless you're doing something as a system admin on a server, I'd leave the sudo out of the installation. Just add the proxy information as he pointed out in the article and then use the command: gem install <name of gem>. If there's some reason you need to use sudo, I have little doubt the instructions he posted would be incorrect. Wayne
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.