手动安装gem

http://raflabs.com/blogs/silence-is-foo/2010/07/19/installing-a-gem-fork-from-github-source/

 

http://stackoverflow.com/questions/2577346/how-to-install-gem-from-github-source

 

up vote 4 down vote accepted

well, that depends on the project in question. Some projects have a *.gemspec file in their root directory. In that case, it would be

gem build GEMNAME.gemspec
gem install gemname-version.gem

Other projects have a rake task, called "gem" or "build" or something like that, in this case you have to invoke "rake ", but that depends on the project.

In both cases you have to download the source.

link | flag
 
 
Thanks that helps a lot. –  Vojto Apr 6 '10 at 10:04
add comment

Read this post > http://raflabs.com/blogs/silence-is-foo/2010/07/19/installing-a-gem-fork-from-github-source/

link | flag

 

 

 

 

mlzboy@mlzboy-MacBook ~/source/eventmachine $ gem list --local|grep eventmachine/home/mlzboy/.rvm/rubies/ruby-1.9.2-p0/bin/gem:4: warning: Insecure world writable dir /usr/local/sbin in PATH, mode 040777

eventmachine (1.0.0.beta.2, 0.12.10)

mlzboy@mlzboy-MacBook ~/source/eventmachine $ gem uninstall eventmachine -v 0.12.10

/home/mlzboy/.rvm/rubies/ruby-1.9.2-p0/bin/gem:4: warning: Insecure world writable dir /usr/local/sbin in PATH, mode 040777

Successfully uninstalled eventmachine-0.12.10

你可能感兴趣的:(gem)