Errors building RMagick on Linux

Here are the sequence of commands that I’ve done running CentOS 4.3.
When I do the very last command ‘make’, I get the errors below. Any
ideas? thanks! chirag

cd /usr/local/src
tar xvzf ImageMagick.tar.gz
cd ImageMagick-X.Y.Z
./configure --disable-static --with-modules --without-perl
–without-magick-plus-plus --with-quantum-depth=8
make install

tar zxvf RMagick-1.15.11.tar.gz
cd RMagick-1.15.4
export LD_LIBRARY_PATH=/usr/local/lib

gcc -shared -L/usr/local/lib -L’/usr/local/lib’ -Wl,-R’/usr/local/
lib’ -o rmutil.o rmilist.o rmdraw.o rmimage.o rmfill.o
rmmain.o rminfo.o -lMagick -ljpeg -lpng -lz -lm -lpthread -lWand -
lMagick -ldl -lcrypt -lm -lc
/usr/bin/ld: /usr/local/lib/libMagick.a(magick_libMagick_la-
animate.o): relocation R_X86_64_32 against a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libMagick.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [] Error 1 make[1]: Leaving directory/usr/local/src/RMagick-1.15.11/ext/
setup.rb:655:in command': system("make") failed (RuntimeError) from setup.rb:664:inmake’
from setup.rb:1258:in setup_dir_ext' from setup.rb:1532:insend
from setup.rb:1532:in traverse' from setup.rb:1549:indive_into’
from setup.rb:1530:in traverse' from setup.rb:1534:intraverse’
from setup.rb:1533:in each' ... 8 levels... from setup.rb:826:insend
from setup.rb:826:in invoke' from setup.rb:772:ininvoke’
from setup.rb:1578
make: *** [all] Error 1

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