Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RubyGems via MacPorts a good idea?

Upon upgrading from a MB to a new MBP, Apple's migration assistant didn't move my gems.

I'm installing rubygems via macports this time, hoping to avoid this upon next upgrade.

Are there any pitfalls I should be aware of?

like image 694
csmosx Avatar asked Jun 22 '09 20:06

csmosx


2 Answers

If you want your gems installed in your home directory (which should copy over during a transfer, and, as a side benefit, will let you run gem install as yourself, rather than root), set the gemhome: key to a path in your home directory in your ~/.gemrc.

like image 161
rampion Avatar answered Oct 21 '22 18:10

rampion


Where were your gems installed? The migration assistant only moves files in certain areas; I'm not sure if it copies files from places like /usr/local or /opt/local, you may have to do that manually (in which case, you can just copy the entire tree over to your new machine).

That said, you shouldn't have a problem installing gems using the version of RubyGems installed by MacPorts.

like image 25
mipadi Avatar answered Oct 21 '22 20:10

mipadi