Installing VisuaRuby isnt' a gem error

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

On Mon, Mar 18, 2013 at 10:22 AM, Charles M. <
[email protected]> 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?

On Mon, Mar 18, 2013 at 8:05 PM, Grant S. [email protected]
wrote:

On Mon, Mar 18, 2013 at 10:22 AM, Charles M. <
[email protected]> 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.

On Mon, Mar 18, 2013 at 9:01 PM, Grant S. [email protected]
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs