Comments (6)
Comment by mmaiza
Thursday Jul 28, 2011 at 18:32 GMT
This means that rmagick is unable to find some of the header file. It could be because your path is not set correctly or because your imagemagick installation failed. Please follow the following instruction http://rmagick.rubyforge.org/install-osx.html and make sure you see no errors when installing imagemagick. You should then be able to do the bundle install.
Best Regards,
Moncef Maiza
-----Original Message-----
From: ylluminate [mailto:[email protected]]
Sent: Thursday, July 28, 2011 2:02 PM
To: [email protected]
Subject: [rmagick] rmagick 1.15.17 Failed Install on Mac OS X (#31)
Attempting to bundle install
a Gemfile from ChiliProject and running into an issue with rmagick compilation:
Gemfile: https://gist.github.com/1112118
The error in question appears to be:
rmagick.h:20:20: error: intern.h: No such file or directory
But the chunk that contains this in context is:
---> ext/RMagick make gcc -I. -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin11.0.0 -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I/Volumes/StorageVolume/Users/username/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-1.15.17/ext/RMagick -DRUBY_VERSION=0x192 -I/usr/local/include/ImageMagick -fno-common -o rmdraw.o -c rmdraw.c In file included from rmdraw.c:10: rmagick.h:20:20: error: intern.h: No such file or directory In file included from rmagick.h:21, from rmdraw.c:10: /Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h" rmdraw.c: In function ‘Draw_annotate’: rmdraw.c:448: warning: ‘InterpretImageAttributes’ is deprecated (declared at /usr/local/include/ImageMagick/magick/deprecate.h:96) rmdraw.c: In function ‘get_dummy_tm_img’: rmdraw.c:1419: warning: ‘AllocateImage’ is deprecated (declared at /usr/local/include/ImageMagick/magick/deprecate.h:119) rmdraw.c:1427: error: too many arguments to function ‘rb_cvar_set’ rmdraw.c: In function ‘get_type_metrics’: rmdraw.c:1504: warning: ‘InterpretImageAttributes’ is deprecated (declared at /usr/local/include/ImageMagick/magick/deprecate.h:96) make[1]: *** [rmdraw.o] Error 1 setup.rb:655:in `command': system("make") failed (RuntimeError) from setup.rb:664:in `make' from setup.rb:1258:in `setup_dir_ext' from setup.rb:1532:in `block in traverse' from setup.rb:1549:in `dive_into' from setup.rb:1530:in `traverse' from setup.rb:1534:in `block (2 levels) in traverse' from setup.rb:1533:in `each' from setup.rb:1533:in `block in traverse' from setup.rb:1549:in `dive_into' from setup.rb:1530:in `traverse' from setup.rb:1524:in `block in exec_task_traverse' from setup.rb:1519:in `each' from setup.rb:1519:in `exec_task_traverse' from setup.rb:1246:in `exec_setup' from setup.rb:996:in `exec_setup' from setup.rb:826:in `invoke' from setup.rb:772:in `invoke' from setup.rb:1578:in `' make: *** [all] Error 1
Any help would be much appreciated so as to get this resolved.
Reply to this email directly or view it on GitHub:
#31
from rmagick.
Comment by ylluminate
Thursday Jul 28, 2011 at 18:47 GMT
Thanks for the note. Unfortunately ImageMagick installs just fine and is installed fine:
$mogrify --version Version: ImageMagick 6.7.1-0 2011-07-28 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC Features: OpenMP
I was able to run the following seemingly just fine:
./configure --prefix=/usr/local --disable-static --without-fontconfig --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --with-gs-font-dir=/usr/local/share/ghostscript/fonts --disable-openmp && make && sudo make install
Following this I attempted to go back to the bundle install
and come up with the above issue.
It appears to be missing intern.h which seems to be part of Ruby source. This does also appear to be available as it is present here: /Users/username/.rvm/src/ruby-1.9.2-p290/include/ruby/intern.h
Thanks,
-George
from rmagick.
Comment by mmaiza
Thursday Jul 28, 2011 at 19:39 GMT
Looking at the gcc command that fails I do not see a path that leads to intern.h. Check your path and see what comes first. You may have had an old install of Ruby and it is still searching there. In this case you would have to modify the path. Something is wrong with your configuration and you will have to look for it.
From a console do: which ruby to find out where it is looking? If the root of the path is not the same as the one where inten.h lied then you need to fix your PATH variable.
Moncef
-----Original Message-----
From: ylluminate [mailto:[email protected]]
Sent: Thursday, July 28, 2011 2:47 PM
To: [email protected]
Subject: Re: [rmagick] rmagick 1.15.17 Failed Install on Mac OS X (#31)
Thanks for the note. Unfortunately ImageMagick installs just fine and is installed fine:
$mogrify --version Version: ImageMagick 6.7.1-0 2011-07-28 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC Features: OpenMP
I was able to run the following seemingly just fine:
./configure --prefix=/usr/local --disable-static --without-fontconfig --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --with-gs-font-dir=/usr/local/share/ghostscript/fonts --disable-openmp && make && sudo make install
Following this I attempted to go back to the bundle install
and come up with the above issue.
It appears to be missing intern.h which seems to be part of Ruby source. This does also appear to be available as it is present here: /Users/username/.rvm/src/ruby-1.9.2-p290/include/ruby/intern.h
Thanks,
-George
Reply to this email directly or view it on GitHub:
#31 (comment)
from rmagick.
Comment by ylluminate
Friday Jul 29, 2011 at 19:10 GMT
I actually switched to ruby ruby-1.8.7-p352 from ruby-1.9.2-p290 and this seemed to help. Still having some odd crashes with ruby itself, but that appears to perhaps be from some gcc issue on Lion which tries to use LLVM. I did force it over to gcc, but still some odd sporadic crashes.
from rmagick.
Comment by ycherniavsky
Wednesday Aug 03, 2011 at 09:39 GMT
I have the same problem. After some investigate I have understood that proble not in any environment configuration, it is in rmagick library version.
From http://rmagick.rubyforge.org
RMagick 1 does not support any features added to ImageMagick 6.3.0 and later and does not work with Ruby 1.9.
and we try to compile RMagick 1.15.17 under Ruby 1.9.2 :).
from rmagick.
The latest RMagick successfully installs on OS X Yosemite.
We are on a path to enable CI on OS X.
Feel free to open new issues if you get failures.
from rmagick.
Related Issues (20)
- Huge memory consumption with latest imagemagick@6 update HOT 27
- Magick::Image's compression= setter is not respected when writing TIFF files HOT 3
- Huge memory consumption with latest imagemagick@6 HOT 2
- Compressing PDF file HOT 1
- non-conforming drawing primitive definition `roundrectangle' HOT 1
- Threading deadlock between RMagick & Open3 HOT 3
- Can't install RMagick with latest ImageMagick 7 on Windows HOT 3
- Install fails on Ubuntu - solved HOT 1
- rmagick 5.3.0 rspec testsuite fails with ImageMagick 7.1.1-26 (was okay with 7.1.1-15) HOT 1
- An error occurred while running bundle install or gem install rmagick -v '2.16.0' HOT 6
- Massive test failure with rmagick 5.4.0 on s390x, probably due to incorrect void* -> enum reinterpret_cast HOT 5
- RMagick install fails on Ruby 3.3.0 in Docker on M1 MacBook Pro HOT 7
- Installation failure after v5.3.0 -> v5.4.1 upgrade on Centos 7 HOT 5
- 'cstdbool' file not found HOT 2
- 2.15.4 Installation Error HOT 4
- Installation fails on macOS with ImageMagick 7 HOT 2
- [MacOS] -Wincompatible-function-pointer-types while trying to install rmagick 3.2.0 on Ruby 2.7.8 HOT 4
- An error occurred while installing rmagick (2.16.0), and Bundler cannot continue. HOT 3
- Change in maintainers? HOT 10
- Installation fails on Windows with latest ImageMagick HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmagick.