Forum: Ruby-Gnome 2 installing VisuaRuby isnt' a gem error

9aa744808c8d7f31dccbde1f57e985f1?d=identicon&s=25 Charles Monteiro (amiracam)
on 2013-03-18 17:22
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
C53e81f5d7c781c6dc3979c4ce888706?d=identicon&s=25 Grant Schoep (matobinder)
on 2013-03-19 03:06
(Received via mailing list)
On Mon, Mar 18, 2013 at 10:22 AM, Charles Monteiro <
ruby-forum-incoming@andreas-s.net> 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?
C53e81f5d7c781c6dc3979c4ce888706?d=identicon&s=25 Grant Schoep (matobinder)
on 2013-03-19 04:02
(Received via mailing list)
On Mon, Mar 18, 2013 at 8:05 PM, Grant Schoep <matobinder@gmail.com>
wrote:

>
>
> On Mon, Mar 18, 2013 at 10:22 AM, Charles Monteiro <
> ruby-forum-incoming@andreas-s.net> 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.
C53e81f5d7c781c6dc3979c4ce888706?d=identicon&s=25 Grant Schoep (matobinder)
on 2013-03-19 04:10
(Received via mailing list)
On Mon, Mar 18, 2013 at 9:01 PM, Grant Schoep <matobinder@gmail.com>
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
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.