-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install gem on Ubuntu 15.04 #201
Comments
I spun up a Digital Ocean droplet with Ubuntu 15.04 and installed these packages:
After that, The path to the problematic header file is:
So the problem is not with Ubuntu 15.04. Here's my
I noticed that the configuration script tells you there are several ImageMagick installations. Could it be because there are extra directories in some environment variables? |
Default installations of Ubuntu (unless its a minimal server install) On Wed, May 27, 2015 at 6:32 PM, Ilya Vassilevsky [email protected]
Oded |
Currently RMagick is not compatible with GraphicsMagick. The droplet didn't have any *magick packages installed. Perhaps that was key to the success. You can see the simple algorithm for multiple versions detection here: https://github.com/gemhome/rmagick/blob/master/ext/RMagick/extconf.rb#L166 Looks like you might need to clean up your envvars a little bit and see if that helps. |
The multiple versions detection logic assumes all magicks installed have a The problem is that under Ubuntu 15.04 the "good" Magick-config is not in
|
I installed Ubuntu 15.04 in VirtualBox from the official ISO and it doesn't have any *magick packages installed and doesn't have any headers. |
Hmm. I don't remember installing GraphicsMagick, so I was under the Still, even without any GraphicsMagick package installed, rmagic will not On Wed, May 27, 2015 at 10:34 PM, Ilya Vassilevsky <[email protected]
Oded |
Ubuntu is a pretty popular platform. It makes sense to support it explicitly in |
Hi. @simmogs
or
Actually,
Ubuntu – File list of package libmagickcore-6.q16-dev/vivid/amd64 |
@u338steven still same error for me. I had an error with Magick-config as well so i symlinked Now stuck at 'Can't find MagickWand.h.' |
@kp666 foo.c: #include "wand/MagickWand.h"
void main(){} gcc foo.c `Magick-config --cflags` |
@u338steven |
Just overriding the When |
@guss77 where do you set the path to? |
What @u338steven said. |
@guss77 No luck here, with PATH="/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16:$PATH |
@kp666, regarding the test C program, can you try to run this with the full path to imagemagick's Magic-config instead of using it from path? |
@guss77 The magic-conf.h file is actually missing ls on imagemagick include folder seems different. I think it should be a wand folder and a magic folder but this is what i get. |
When executing
If any of these is not true on your system, then your system is broken compared to a clean Ubuntu installation. |
@guss77 This is weird, I have libmagickwand-dev installed.
Magick++ and wand are the folders . so there is no magick folder and hence no /usr/include/ImageMagick-6/magick/magick-config.h
I just had a new installation today.
|
What happens when you run
If your system is setup correctly there should be no output at all. |
@guss77 i do get a list of files https://gist.github.com/kp666/d6183eb494acb75fc56b |
It looks like the package is actually installed (it also includes a few files that are not in your list, so I'm thinking these are still there), but somehow the include directory was deleted. I suggest you try to |
@guss77 yes, that basically fixed it. Thanks for your time. |
I did the following and success!
|
This worked for me, too. Except, that I also had to |
This worked for me too, but I also needed to run the following symlink, then it installed with no issues: |
Symlink works for me too |
I have to work on an old Ruby on Rails project. To get it running I have to install RMagick -v 2.12.2. First I had problems with both this version and new version(s) of RMagick. The command PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig gem install rmagick mentioned in this thread made it possible for me to install the RMagick version 2.15.4 but the 2.12.2 still throws: PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig gem install rmagick -v '2.12.2' checking for Ruby version >= 1.8.5... yes Everything else (tried simmogs yuszuv and mikelkew's suggestions) posted here did not work unfortunately. Any suggestions? |
Is there a reason you cannot use the latest version? It has been fixed to support newer OSes better. |
As per this issue (#133).
Having upgraded to Ubuntu 15.04, I can no longer install the rmagick gem. I've tried the suggested fixes but so far no luck and despite kind assistance from @guss77.
Terminal output - https://gist.github.com/simmogs/6307ff927a14ce8f21d9
The text was updated successfully, but these errors were encountered: