"gem NAME, VERSION" && "require NAME" fails due to version conflict

  • Thread starter Iñaki Baz Castillo
  • Start date
I

Iñaki Baz Castillo

Hi, I must be missing something very obvious but I don't get it. I
just want to use nokogiri 1.4.3:

~# gem list | grep nokogiri
nokogiri (1.4.4, 1.4.3)

~# irb
irb> gem "nokogiri", "=3D1.4.3"
true
irb> Nokogiri
NameError: uninitialized constant Object::Nokogiri
irb> require "nokogiri"
Gem::LoadError: can't activate nokogiri (=3D 1.4.4, runtime) for [],
already activated nokogiri-1.4.3 for []


How is supposed it to work? I know that "require_gem" is deprecated
(removed in fact).
I use gem 1.3.7.


Thanks a lot.

--=20
I=C3=B1aki Baz Castillo
<[email protected]>
 
R

Ryan Davis

Hi, I must be missing something very obvious but I don't get it. I
just want to use nokogiri 1.4.3:
=20
~# gem list | grep nokogiri
nokogiri (1.4.4, 1.4.3)
=20
~# irb
irb> gem "nokogiri", "=3D1.4.3"
true
irb> Nokogiri
NameError: uninitialized constant Object::Nokogiri
irb> require "nokogiri"
Gem::LoadError: can't activate nokogiri (=3D 1.4.4, runtime) for [],
already activated nokogiri-1.4.3 for []

10002 % gem list nokogiri
nokogiri (1.4.4, 1.4.1)
10003 % irb=3D> Nokogiri
10004 % gem -v
1.5.3
 
I

Iñaki Baz Castillo

2011/2/28 Ryan Davis said:
~# gem list | grep nokogiri
nokogiri (1.4.4, 1.4.3)

~# irb
irb> gem "nokogiri", "=3D1.4.3"
true
irb> Nokogiri
NameError: uninitialized constant Object::Nokogiri
irb> require "nokogiri"
Gem::LoadError: can't activate nokogiri (=3D 1.4.4, runtime) for [],
already activated nokogiri-1.4.3 for []

10002 % gem list nokogiri
nokogiri (1.4.4, 1.4.1)
10003 % irb=3D> Nokogiri
10004 % gem -v
1.5.3

Same fails in my system with RubyGem 1.3.7. Note however that I'm
using the gem command provided by the Debian/Ubuntu package. I will
check upgrading to 1.5.3.

Thanks.

--=20
I=C3=B1aki Baz Castillo
<[email protected]>
 
I

Iñaki Baz Castillo

2011/2/28 I=C3=B1aki Baz Castillo said:
Same fails in my system with RubyGem 1.3.7. Note however that I'm
using the gem command provided by the Debian/Ubuntu package. I will
check upgrading to 1.5.3.


Annoying, I get the very same error with Gem 1.5.3:


~# gem list nokogiri
nokogiri (1.4.4, 1.4.3)

irb(main):002:0> require "rubygems"
true

irb(main):003:0> gem "nokogiri", "=3D1.4.3"
true

irb(main):004:0> require "nokogiri"
Gem::LoadError: can't activate nokogiri (=3D 1.4.4, runtime) for [],
already activated nokogiri-1.4.3 for []

~# gem -v
1.5.3

--=20
I=C3=B1aki Baz Castillo
<[email protected]>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top