# \[question\]How to install rubygem-cobbler

**URL:** <https://www.ruby-forum.com/t/question-how-to-install-rubygem-cobbler/150320>\
**Category:** Rails\
**Created:** [October 7, 2008, 10:43am UTC](https://www.ruby-forum.com/t/question-how-to-install-rubygem-cobbler/150320 "2008-10-07T10:43:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/6a8cbe/32.png) [@Nikki](https://www.ruby-forum.com/u/Nikki)\
**Post date:** [October 7, 2008, 10:43am UTC](https://www.ruby-forum.com/t/question-how-to-install-rubygem-cobbler/150320/1 "2008-10-07T10:43:27Z")

</div>

Hi ALL,  
I am newcomer and also a freshman to Ruby.  
Would anyone have the experience about installing rubygem-cobbler?  
I tried to run some ruby programs.It prompts “Could not find Ruby  
Gem cobbler(\>= 0)(Gem::LoadError)”.But I had tried “yum install” and  
to download cobbler files.They all don’t work.  
Would anyone give some advice?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Nikki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/6a8cbe/32.png) [@Nikki](https://www.ruby-forum.com/u/Nikki)\
**Post date:** [October 7, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/question-how-to-install-rubygem-cobbler/150320/2 "2008-10-07T20:57:12Z")

</div>

You could use

gem install cobbler --source --include-dependencies

where url points to the source of the cobbler gem. Make sure you have  
installed gem first.

Alternately you could add the repository from where you would like gem  
to pull out cobbler, to the gem sources. After that do a `gem env`  
just to make sure that the repository is among the sources. After that  
running `gem install cobbler` should work.

---

<div class="post-metadata">

**Author:** ![Nikki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/6a8cbe/32.png) [@Nikki](https://www.ruby-forum.com/u/Nikki)\
**Post date:** [October 8, 2008, 7:41am UTC](https://www.ruby-forum.com/t/question-how-to-install-rubygem-cobbler/150320/3 "2008-10-08T07:41:10Z")

</div>

Thank you for your feedback! 🙂  
I have resolved my problem.  
After installing the cobbler rpm ,run “rpm -ql rubygem-cobbler”,and  
the first line gives the path of rubygem-cobbler.  
Then run “gem install cobbler path --include-denpendencies”.

Another question:  
Could you please give me some details about changing gem repository?

Thanks,

Nikki

---

<div class="post-metadata">

**Author:** ![Nikki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/6a8cbe/32.png) [@Nikki](https://www.ruby-forum.com/u/Nikki)\
**Post date:** [October 9, 2008, 12:32am UTC](https://www.ruby-forum.com/t/question-how-to-install-rubygem-cobbler/150320/4 "2008-10-09T00:32:57Z")

</div>

Try running a `gem help commands`. You will get an overview of all  
things you can do with gem.

Then you can do a `gem help sources` which gives the following 🙂

Usage: gem sources [options]

Options:  
-a, --add SOURCE\_URI Add source  
-l, --list List sources  
-r, --remove SOURCE\_URI Remove source  
-c, --clear-all Remove all sources (clear the  
cache)  
-u, --update Update source cache

Common Options:  
-h, --help Get help on this command  
-V, --[no-]verbose Set the verbose level of output  
-q, --quiet Silence commands  
–config-file FILE Use this config file instead of  
default  
–backtrace Show stack backtrace on errors  
–debug Turn on Ruby debugging

Summary:  
Manage the sources and cache file RubyGems uses to search for gems

Defaults:  
–list

Now you can add/remove any repositories from your gem sources.

---

<div class="post-metadata">

**Author:** ![Nikki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/6a8cbe/32.png) [@Nikki](https://www.ruby-forum.com/u/Nikki)\
**Post date:** [October 9, 2008, 4:11am UTC](https://www.ruby-forum.com/t/question-how-to-install-rubygem-cobbler/150320/5 "2008-10-09T04:11:19Z")

</div>

Thanks,amrita! 🙂  
You indeed give a prompt help. 🙂
