# Installing VisuaRuby isnt' a gem error

**URL:** <https://www.ruby-forum.com/t/installing-visuaruby-isnt-a-gem-error/227513>\
**Category:** Ruby-Gnome 2\
**Created:** [March 18, 2013, 5:22pm UTC](https://www.ruby-forum.com/t/installing-visuaruby-isnt-a-gem-error/227513 "2013-03-18T17:22:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8c91f0/32.png) [@chas](https://www.ruby-forum.com/u/chas)\
**Post date:** [March 18, 2013, 5:22pm UTC](https://www.ruby-forum.com/t/installing-visuaruby-isnt-a-gem-error/227513/1 "2013-03-18T17:22:06Z")

</div>

I am also trying to install on CentOS for which I have used RVM to setup  
my rubies etc when I try to install VR i.e. gem install visualruby I get  
the following:

gem install visualruby  
[/home/charles/.rvm/gems/ruby-1.9.3-p392/specifications/pango-1.2.2.gemspec]  
isn’t a Gem::Specification (NilClass instead).  
[/home/charles/.rvm/gems/ruby-1.9.3-p392/specifications/gdk\_pixbuf2-1.2.2.gemspec]  
isn’t a Gem::Specification (NilClass instead).  
[/home/charles/.rvm/gems/ruby-1.9.3-p392/specifications/cairo-1.12.4.gemspec]  
isn’t a Gem::Specification (NilClass instead).  
[/home/charles/.rvm/gems/ruby-1.9.3-p392/specifications/atk-1.2.2.gemspec]  
isn’t a Gem::Specification (NilClass instead).  
[/home/charles/.rvm/gems/ruby-1.9.3-p392/specifications/glib2-1.2.2.gemspec]  
isn’t a Gem::Specification (NilClass instead).  
[/home/charles/.rvm/gems/ruby-1.9.3-p392/specifications/pango-1.2.2.gemspec]  
isn’t a Gem::Specification (NilClass instead).  
[/home/charles/.rvm/gems/ruby-1.9.3-p392/specifications/gdk\_pixbuf2-1.2.2.gemspec]  
isn’t a Gem::Specification (NilClass instead).  
[/home/charles/.rvm/gems/ruby-1.9.3-p392/specifications/cairo-1.12.4.gemspec]  
isn’t a Gem::Specification (NilClass instead).  
[/home/charles/.rvm/gems/ruby-1.9.3-p392/specifications/atk-1.2.2.gemspec]  
isn’t a Gem::Specification (NilClass instead).  
[/home/charles/.rvm/gems/ruby-1.9.3-p392/specifications/glib2-1.2.2.gemspec]  
isn’t a Gem::Specification (NilClass instead).  
ERROR: While executing gem … (NoMethodError)  
undefined method `spec’ for nil:NilClass

---

<div class="post-metadata">

**Author:** ![chas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8c91f0/32.png) [@chas](https://www.ruby-forum.com/u/chas)\
**Post date:** [March 19, 2013, 3:06am UTC](https://www.ruby-forum.com/t/installing-visuaruby-isnt-a-gem-error/227513/2 "2013-03-19T03:06:17Z")

</div>

On Mon, Mar 18, 2013 at 10:22 AM, Charles M. \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> I am also trying to install on CentOS for which I have used RVM to setup

What version of CentOS are you using 5 or 6?

---

<div class="post-metadata">

**Author:** ![chas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8c91f0/32.png) [@chas](https://www.ruby-forum.com/u/chas)\
**Post date:** [March 19, 2013, 4:02am UTC](https://www.ruby-forum.com/t/installing-visuaruby-isnt-a-gem-error/227513/3 "2013-03-19T04:02:23Z")

</div>

On Mon, Mar 18, 2013 at 8:05 PM, Grant S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> On Mon, Mar 18, 2013 at 10:22 AM, Charles M. \<  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:
> 
> > I am also trying to install on CentOS for which I have used RVM to setup
> 
> What version of CentOS are you using 5 or 6?

Ah, I just tried both myself, I figure you are on CentOS 6 since  
gtksourceview2 isn’t readily available on CentOS 5

Anyways I did quick search on the error and it sounds like your gem  
cache  
is corrupted.  
To find out where those run  
“gem env”  
And look the :“GEM PATHS:” section.

There usually is a cache directory down each of those paths.

Assuming you have write access to them, just delete the contents of the  
directory. Actually if you should be able to just delete whole cache  
directory. gem will recreate when it needs to. I’m not positive about  
this,  
but it did it fine for me. I just tested it.

---

<div class="post-metadata">

**Author:** ![chas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8c91f0/32.png) [@chas](https://www.ruby-forum.com/u/chas)\
**Post date:** [March 19, 2013, 4:10am UTC](https://www.ruby-forum.com/t/installing-visuaruby-isnt-a-gem-error/227513/4 "2013-03-19T04:10:35Z")

</div>

On Mon, Mar 18, 2013 at 9:01 PM, Grant S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > >
> 
> “gem env”  
> And look the :“GEM PATHS:” section.
> 
> There usually is a cache directory down each of those paths.
> 
> Assuming you have write access to them, just delete the contents of the  
> directory. Actually if you should be able to just delete whole cache  
> directory. gem will recreate when it needs to. I’m not positive about this,  
> but it did it fine for me. I just tested it.

Oh by the way, I was able to get visualruby installed on RHEL 6.4 with  
no  
problems.

I simply downloaded a new ruby-1.9.3-p392. Configured/make/installed it.  
Then ran “gem install visualruby” it grabbed the dependent gems with no  
problems.

Though I also know I already had all the rpm dependencies installed. You  
might get hit up with a missing -devel rpm. Just go look for its  
mkmf.log  
file and it should let you know(go to end of file)

Example if it fails gtksourceview2 you may see

have\_package: checking for gtksourceview-2.0… -------------------- no

Just install the main and devel RPM for it:  
yum install gtksourceview2 gtksourceview2-devel
