Coder Social home page Coder Social logo

Comments (6)

bf4 avatar bf4 commented on June 15, 2024

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.

bf4 avatar bf4 commented on June 15, 2024

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.

bf4 avatar bf4 commented on June 15, 2024

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.

bf4 avatar bf4 commented on June 15, 2024

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.

bf4 avatar bf4 commented on June 15, 2024

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.

vassilevsky avatar vassilevsky commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.