RMagick Problem

Hi folks,

Was wondering if anyone could interpret this for me … trying to get
RMagick installed, and it won’t work either through a gem install or by
making it. I’m not sure exactly what to search for to find a solution.

Thanks!

=====

[[email protected] RMagick-1.15.9]# make
if test -n “”; then
RUBYLIBDIR=–rbdir="";
fi;
if test -n “”; then
RUBYARCHDIR=–sodir="";
fi;
/usr/bin/ruby setup.rb config $RUBYLIBDIR $RUBYARCHDIR
—> lib
—> lib/rvg
<— lib/rvg
<— lib
—> ext
—> ext/RMagick
/usr/bin/ruby /RMagick-1.15.9/ext/RMagick/extconf.rb
creating Makefile
<— ext/RMagick
<— ext
/usr/bin/ruby setup.rb setup
—> lib
—> lib/rvg
<— lib/rvg
<— lib
—> ext
—> ext/RMagick
make
make[1]: Entering directory /RMagick-1.15.9/ext/RMagick' gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I/RMagick-1.15.9/ext/RMagick -DRUBY_VERSION=0x186 -I/usr/local/include -fPIC -c rmdraw.c gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I/RMagick-1.15.9/ext/RMagick -DRUBY_VERSION=0x186 -I/usr/local/include -fPIC -c rmutil.c gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I/RMagick-1.15.9/ext/RMagick -DRUBY_VERSION=0x186 -I/usr/local/include -fPIC -c rmfill.c gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I/RMagick-1.15.9/ext/RMagick -DRUBY_VERSION=0x186 -I/usr/local/include -fPIC -c rminfo.c gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I/RMagick-1.15.9/ext/RMagick -DRUBY_VERSION=0x186 -I/usr/local/include -fPIC -c rmimage.c gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I/RMagick-1.15.9/ext/RMagick -DRUBY_VERSION=0x186 -I/usr/local/include -fPIC -c rmmain.c gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux -I/RMagick-1.15.9/ext/RMagick -DRUBY_VERSION=0x186 -I/usr/local/include -fPIC -c rmilist.c gcc -shared -rdynamic -Wl,-export-dynamic -L/usr/local/lib -lfreetype -lz -L"/usr/lib" -o RMagick.so rmdraw.o rmutil.o rmfill.o rminfo.o rmimage.o rmmain.o rmilist.o -lMagick -lfreetype -ljpeg -lbz2 -lz -lpthread -lm -lpthread -lWand -lMagick -lruby -ldl -lcrypt -lm -lc make[1]: Leaving directory/RMagick-1.15.9/ext/RMagick’
<— ext/RMagick
<— ext
setup.rb: entering post-setup phase…
post-setup.rb: setting up documentation…
/usr/bin/ruby -I /RMagick-1.15.9/./lib -I /RMagick-1.15.9/./ext/RMagick
Adispatch.rb (example 1 of 183)
/RMagick-1.15.9/./ext/RMagick/RMagick.so: libMagick.so.10: cannot open
shared object file: No such file or directory -
/RMagick-1.15.9/./ext/RMagick/RMagick.so
(LoadError)
from /RMagick-1.15.9/./lib/RMagick.rb:11
from Adispatch.rb:2:in require' from Adispatch.rb:2 post-setup.rb: Adispatch.rb example returned error code 256 /usr/bin/ruby -I /RMagick-1.15.9/./lib -I /RMagick-1.15.9/./ext/RMagick InitialCoords.rb (example 2 of 183) /RMagick-1.15.9/./ext/RMagick/RMagick.so: libMagick.so.10: cannot open shared object file: No such file or directory - /RMagick-1.15.9/./ext/RMagick/RMagick.so (LoadError) from /RMagick-1.15.9/./lib/RMagick.rb:11 from /RMagick-1.15.9/./lib/rvg/rvg.rb:31:inrequire’
from /RMagick-1.15.9/./lib/rvg/rvg.rb:31
from InitialCoords.rb:1:in require' from InitialCoords.rb:1 post-setup.rb: InitialCoords.rb example returned error code 256 /usr/bin/ruby -I /RMagick-1.15.9/./lib -I /RMagick-1.15.9/./ext/RMagick NewCoordSys.rb (example 3 of 183) /RMagick-1.15.9/./ext/RMagick/RMagick.so: libMagick.so.10: cannot open shared object file: No such file or directory - /RMagick-1.15.9/./ext/RMagick/RMagick.so (LoadError) from /RMagick-1.15.9/./lib/RMagick.rb:11 from /RMagick-1.15.9/./lib/rvg/rvg.rb:31:inrequire’
from /RMagick-1.15.9/./lib/rvg/rvg.rb:31
from NewCoordSys.rb:1:in require' from NewCoordSys.rb:1 post-setup.rb: NewCoordSys.rb example returned error code 256 /usr/bin/ruby -I /RMagick-1.15.9/./lib -I /RMagick-1.15.9/./ext/RMagick OrigCoordSys.rb (example 4 of 183) /RMagick-1.15.9/./ext/RMagick/RMagick.so: libMagick.so.10: cannot open shared object file: No such file or directory - /RMagick-1.15.9/./ext/RMagick/RMagick.so (LoadError) from /RMagick-1.15.9/./lib/RMagick.rb:11 from /RMagick-1.15.9/./lib/rvg/rvg.rb:31:inrequire’
from /RMagick-1.15.9/./lib/rvg/rvg.rb:31
from OrigCoordSys.rb:1:in require' from OrigCoordSys.rb:1 post-setup.rb: OrigCoordSys.rb example returned error code 256 /usr/bin/ruby -I /RMagick-1.15.9/./lib -I /RMagick-1.15.9/./ext/RMagick PreserveAspectRatio.rb (example 5 of 183) /RMagick-1.15.9/./ext/RMagick/RMagick.so: libMagick.so.10: cannot open shared object file: No such file or directory - /RMagick-1.15.9/./ext/RMagick/RMagick.so (LoadError) from /RMagick-1.15.9/./lib/RMagick.rb:11 from /RMagick-1.15.9/./lib/rvg/rvg.rb:31:inrequire’
from /RMagick-1.15.9/./lib/rvg/rvg.rb:31
from PreserveAspectRatio.rb:1:in `require’
from PreserveAspectRatio.rb:1
post-setup.rb: PreserveAspectRatio.rb example returned error code 256
setup.rb: Too many examples failed. Search for “Help!” at
http://rmagick.rubyforge.org/install-faq.html.
make: *** [all] Error 1

Do you have ImageMagick installed?

Pete Bekisz wrote:

[[email protected] RMagick-1.15.9]# make
<— lib
<— lib
gcc -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux
-I/usr/local/include -fPIC -c rmmain.c
setup.rb: entering post-setup phase…
/usr/bin/ruby -I /RMagick-1.15.9/./lib -I /RMagick-
/usr/bin/ruby -I /RMagick-1.15.9/./lib -I
/usr/bin/ruby -I /RMagick-1.15.9/./lib -I
/usr/bin/ruby -I /RMagick-1.15.9/./lib -I
setup.rb: Too many examples failed. Search for “Help!” at
http://rmagick.rubyforge.org/install-faq.html.
make: *** [all] Error 1


Sincerely,

William P.

Yes; I installed it right before trying to install RMagick.

Ok, the problem is that it can not find libMagick.so.10. It could be
missing from the ld path. Try running /sbin/ldconfig and see if that
helps. If not, find the location of that file, add the directory to
/etc/ld.so.conf and run /sbin/ldconfig again. That should do it.

Pete Bekisz wrote:

Hi folks,
[[email protected] RMagick-1.15.9]# make
<--- lib
<--- lib
gcc -I. -I/usr/lib/ruby/1.8/i386-linux
-DRUBY_VERSION=0x186  -I/usr/local/include -fPIC   -c rmmain.c
<--- ext
post-setup.rb: Adispatch.rb example returned error code 256
post-setup.rb: InitialCoords.rb example returned error code 256
post-setup.rb: NewCoordSys.rb example returned error code 256
post-setup.rb: OrigCoordSys.rb example returned error code 256
        from PreserveAspectRatio.rb :1
William P.


Sincerely,

William P.

Hi there,

I tried running /sbin/ldconfig and re-running the install, same problem.
I also added /usr/local/lib/libMagick.so.10 to ld.so.conf, and I’m still
getting the same error.

Any additional thoughts?

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