Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 173457
BY: numeroteca max (numeroteca)
DATE: 2013-03-23 01:16
SUBJECT: libMagickCore-Q16.so.7 No such file

 

Hi all,
I haven't found any solution around, this is my problem.
I am working on a Ubuntu 10.04 with rvm 1.14.5. ruby 1.9.3p194. Rails 3.2.11. And the gem required is rmagick (2.13.2).

While bundle-ing I was having problems with rmagick:

>ubuntu "Package MagickCore was not found in the pkg-config search path". Perhaps you should add the directory containing `MagickCore.pc'to the PKG_CONFIG_PATH environment variable No package 'MagickCore' found

I set up the folder:
"export PKG_CONFIG_PATH=/usr/lib/pkgconfig"

I copied MagickCore.pc to /usr/lib/pkgconfig with "mv MagickCore.pc /usr/lib/pkgconfig"

The file was originally at MagickCore.pc at /home/pablo/lib/pkgconfig

Then I could bundle install. But then, while running the rails app I got:

>libMagickCore-Q16.so.7: cannot open shared object file: No such file or directory - /home/pablo/.rvm/gems/ruby-1.9.3-p194/gems/rmagick-2.13.2/lib/RMagick2.so

I checked and the object file libMagickCore-Q16.so.7 was in that folder.

Then, I decided to start again and follow the instructions at http://rmagick.rubyforge.org/install2-linux.html

So I installed from the RMagick tarball and after "ruby setup.rb" I got>

...
linking shared-object RMagick2.so
<--- ext/RMagick
<--- ext
setup.rb: entering post-setup phase...
post-setup.rb: setting up documentation...
/home/pablo/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -I /home/pablo/Desktop/borrar/RMagick-2.13.2/./lib -I /home/pablo/Desktop/borrar/RMagick-2.13.2/./ext/RMagick InitialCoords.rb (example 1 of 188)
/home/pablo/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require': libMagickCore-Q16.so.7: cannot open shared object file: No such file or directory - /home/pablo/Desktop/borrar/RMagick-2.13.2/ext/RMagick/RMagick2.so (LoadError)
from /home/pablo/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /home/pablo/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /home/pablo/Desktop/borrar/RMagick-2.13.2/lib/RMagick.rb:11:in `<top (required)>'
from /home/pablo/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/pablo/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/pablo/Desktop/borrar/RMagick-2.13.2/lib/rvg/rvg.rb:31:in `<top (required)>'
from /home/pablo/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/pablo/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
...

What is it that I am doing wrong? I've tested all the things I've found.

thanks,
numeroteca


Thread View

Thread Author Date
libMagickCore-Q16.so.7 No such filenumeroteca max2013-03-23 01:16

Post a followup to this message