RMagick shared libraries problem (ruby on rails setup)
I am attempting to get ruby on rails to working on my server. When i attempted to start the rails application through cpanel i get a following error
Code:
following error** Daemonized, any open files are closed. Look at log/mongrel.pid and log/mongrel.log for info. Code:
lrwxrwxrwx 1 root root 33 May 15 16:29 MagickCore.so.1 -> /usr/local/lib/libMagickCore.so.1 |
bump
Can anyone advise?
|
I came across your question while looking for a solution to the same problem =) So far I've found the following advice:
before you compile ImageMagick set following Enviroment Variable: LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" With this option ImageMagick looks at /usr/local/lib for the libraries. (see http://studio.imagemagick.org/piperm...ry/020785.html) Hope that helps because I registered just so I could give you an answer =) But yeah, I just finished recompiling ImageMagick and it seems to have done the trick for me. Be sure to gem install rmagick after re-installing ImageMagick so that it links to the new libraries |
How/where do you change this environment variable?
The installation instruction file says: If you are willing to accept configure's default options, and build from within the source directory, type: ./configure and watch the configure script output to verify that it finds everything that you think it should. If it does not, then adjust your environment so that it does. By default, make install will install the package's files in `/usr/local/bin', `/usr/local/lib', etc.. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. This is valuable in case you don't have privileges to install under the default paths or if you want to install in the system directories instead. So I assume you would type in ./configure (path), but I don't understand exactly how to format this. If I want to put in in usr/local/lib, what would I type? Also I want to start over. The instruction file states: * Remove everything in the build directory created by 'configure' and 'make'. This is useful if you want to start over from scratch. make distclean I ran: cd ImageMagick-6.4.2 make distclean and get the error: make: *** No rule to make target `distclean'. Stop. |
Hi goldenbough
You can type Code:
export LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" To install to /usr/local you'd type Code:
./configure --prefix=/usr/local I'm not sure why make distclean didn't work for you. Perhaps you haven't run make yet (so there is nothing to clean up). Just a guess though. However - and I'm subject to correction here - I don't believe it is necessary for you to run it, as when you run ./configure and make, they will simply overwrite your old files, meaning that it's really irrelevant whether you run make distclean before or not. Hope that helps |
All times are GMT -5. The time now is 06:45 AM. |