简体   繁体   中英

Installing a gem from a repo I cloned on git hub

Post says it all.

I've cloned a gem (particularly radiant) after clone it from its github source. Anybody tell me how I can install it as a gem?

Something like "gem install radiant --local"?

Go to the dir of your cloned repo and run this:

$ rake build

This will create gem file in pkg dir. Then just run

$ sudo gem install pkg/built-gem-0.0.1.gem

Edit : appending BaroqueBobcat's wisdom verbatim from comment for better visibility:

This will only work if there is a Rake task for building the gem. If there is no rake task, but there is a .gemspec file, you can use $ gem build <name>.gemspec .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM