PDA

View Full Version : Ruby & RMagick


samuel
05-25-2005, 07:29 PM
I've installed Ruby and Rails, run ldconfig, but I'm having trouble compiling and installing RMagick.

./configure gives me:


checking for InitializeMagick in -lMagick... no
configure: error: Can't install RMagick. Can't find libMagick or one of the dependent libraries.


Is there something simple I can do?

Eric
05-25-2005, 07:40 PM
I don't know what InitializeMagick is, but you could install it in your own directory and point /etc/ld.so.conf to it, then run ldconfig. I use /mylib personally. Make sure that all of your dependant libraries are installed, then try to install RMagic. It is also advisable to pass --prefix=/usr/local/somedirectory in to the configure command when you are compiling as you do not have permissions in some of the default directories.

Good Luck!

I've installed Ruby and Rails, run ldconfig, but I'm having trouble compiling and installing RMagick.

./configure gives me:


checking for InitializeMagick in -lMagick... no
configure: error: Can't install RMagick. Can't find libMagick or one of the dependent libraries.


Is there something simple I can do?

samuel
05-25-2005, 08:14 PM
I think it's actually looking for libMagick.so, which is in /usr/X11R6/lib. How should I let it know that's where it is?

Chris
05-25-2005, 08:28 PM
I think it's actually looking for libMagick.so, which is in /usr/X11R6/lib. How should I let it know that's where it is?
Samuel,

Take a look at the configure script and see if you find where it is looking for it at. You might also try "--help" and see if it gives you any hints/pathes, etc.

Chris
05-25-2005, 08:44 PM
Did you see this in the readme.txt file? It looks like it expects those files in the /usr/X11R6/lib directory.
X11 Configuration:
X_CFLAGS = -I/usr/X11R6/include
X_PRE_LIBS = -lSM -lICE
X_LIBS = -L/usr/X11R6/lib
X_EXTRA_LIBS =