gem install of amatch fails for me

M

Martin Pirker

Hi...

venturing into rubygems land I tried...


# gem install amatch
Attempting local installation of 'amatch'
Local gem file not found: amatch*.gem
Attempting remote installation of 'amatch'
Building native extensions. This could take a while...
ruby extconf.rb install amatch
creating Makefile

make
make: Nothing to be done for 'all'.

make install
install -c -p -m 0755 amatch.so /usr/lib/ruby/gems/1.8/gems/amatch-0.1.4/lib
Successfully installed amatch-0.1.4
Installing RDoc documentation for amatch-0.1.4...


seems fine so far, but...

# which agrep.rb
/usr/bin/agrep.rb
# agrep.rb test test.txt
/usr/lib/ruby/gems/1.8/gems/amatch-0.1.4/bin/agrep.rb:47: uninitialized
constant Amatch (NameError)
from /usr/bin/agrep.rb:18:in 'load'
from /usr/bin/agrep.rb:18

digging further...

lib # ldd amatch.so
linux-gate.so.1 => (0xffffe000)
libruby.so.1.9 => not found
libpthread.so.0 => /lib/libpthread.so.0 (0xb7f9e000)
libdl.so.2 => /lib/libdl.so.2 (0xb7f9a000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7f6c000)
libm.so.6 => /lib/libm.so.6 (0xb7f49000)
libc.so.6 => /lib/libc.so.6 (0xb7e32000)
/lib/ld-linux.so.2 (0x80000000)

but I'm using

# ruby -v
ruby 1.8.2 (2004-12-25) [i686-linux] (from Gentoo)

# gem --version
0.8.10



any idea what goes wrong here?
Thanks!

Martin
 
C

Chad Fowler

Hi...
=20
venturing into rubygems land I tried...
=20
# gem install amatch
Attempting local installation of 'amatch'
Local gem file not found: amatch*.gem
Attempting remote installation of 'amatch'
Building native extensions. This could take a while...
ruby extconf.rb install amatch
creating Makefile
=20
make
make: Nothing to be done for 'all'.
=20
make install
install -c -p -m 0755 amatch.so /usr/lib/ruby/gems/1.8/gems/amatch-0.1.4/= lib
Successfully installed amatch-0.1.4
Installing RDoc documentation for amatch-0.1.4...
=20
seems fine so far, but...
=20
# which agrep.rb
/usr/bin/agrep.rb
# agrep.rb test test.txt
/usr/lib/ruby/gems/1.8/gems/amatch-0.1.4/bin/agrep.rb:47: uninitialized
constant Amatch (NameError)
from /usr/bin/agrep.rb:18:in 'load'
from /usr/bin/agrep.rb:18
=20
digging further...
=20
lib # ldd amatch.so
linux-gate.so.1 =3D> (0xffffe000)
libruby.so.1.9 =3D> not found
libpthread.so.0 =3D> /lib/libpthread.so.0 (0xb7f9e000)
libdl.so.2 =3D> /lib/libdl.so.2 (0xb7f9a000)
libcrypt.so.1 =3D> /lib/libcrypt.so.1 (0xb7f6c000)
libm.so.6 =3D> /lib/libm.so.6 (0xb7f49000)
libc.so.6 =3D> /lib/libc.so.6 (0xb7e32000)
/lib/ld-linux.so.2 (0x80000000)
=20
but I'm using
=20
# ruby -v
ruby 1.8.2 (2004-12-25) [i686-linux] (from Gentoo)
=20
# gem --version
0.8.10
=20
any idea what goes wrong here?
Thanks!
=20

Hi! =20

It looks like there's a problem with the 'amatch' gem. It includes
the precompiled .so file (in lib) from the developer's machine. If
you look in your "ext" subdirectory where the gem was installed,
you'll see the _real_ .so file. For now, you could hack amatch.rb to
unshift the gem's 'ext' directory on your $: if you want to use the
gem before it gets fixed.

--=20

Chad Fowler
http://chadfowler.com
http://rubycentral.org=20
http://rubygarden.org=20
http://rubygems.rubyforge.org (over 300,000 gems served!)
 
M

Martin Pirker

Chad Fowler said:
It looks like there's a problem with the 'amatch' gem.

Thanks for confirmation.
It includes
the precompiled .so file (in lib) from the developer's machine. If
you look in your "ext" subdirectory where the gem was installed,
you'll see the _real_ .so file.

ext # pwd
/usr/lib/ruby/gems/1.8/gems/amatch-0.1.4/ext
ext # md5sum amatch.so
c6f0e5f95d53377f89b22b538d2f470a amatch.so
lib # md5sum amatch.so
c6f0e5f95d53377f89b22b538d2f470a amatch.so
For now, you could hack amatch.rb to

I'll try a manual recompile.


Thanks again,
Martin
 

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,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top