aspose file tools*
The moose likes Ruby and the fly likes Rubygems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Rubygems" Watch "Rubygems" New topic
Author

Rubygems

Sumit Bisht
Ranch Hand

Joined: Jul 02, 2008
Posts: 329

Can anyone help me regarding the gems utility? (links to FAQs,tutorials,etc)
Basically I'm trying to download and install from the .tar sources for various dependencies using the gem command.
Also, installing rails from command line is not working, is there any other alternative ?
However, ruby as well as rails is working fine on top of Netbeans ide. So, is there any way for me to reuse gems and other components from the Netbeans platform to the native installation and vice versa ?
Please correct me as I am just beginning the learning of this stuff.
Rusty Shackleford
Ranch Hand

Joined: Jan 03, 2006
Posts: 490
gem install <name of gem> --include-dependencies

The --include-dependencies is optional, but it is a good proactive thing to do. Make sure you are root/sudo/admin.

To install a local gem you need to untar it first. and then use gem to install the *.gem file.

What are the specific errors that you get when trying to install rails?

You best bet is to install all gems natively, then they can be used system wide with no fuss.


"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
 
jQuery in Action, 2nd edition
 
subject: Rubygems