RMagick

R

Rong

I installed the ImageMagick binary but when I try to install RMagick
(gem) I get the foloowing error-
/usr/local/bin/ruby extconf.rb install rmagick
checking for Ruby version >= 1.8.2... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.9.1. Can't find Magick-config in /usr/local/
bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/
X11/bin:/usr/local/git/bin

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

What do I need to do?
 
M

Michael Malone

com>
X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count: 329699
X-Ml-Name: ruby-talk
X-Rubymirror: Yes
X-Ruby-Talk: <[email protected]>
Bytes: 3261
Xref: number1.nntp.dca.giganews.com comp.lang.ruby:323646
I installed the ImageMagick binary but when I try to install RMagick
(gem) I get the foloowing error-
/usr/local/bin/ruby extconf.rb install rmagick
checking for Ruby version >= 1.8.2... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.9.1. Can't find Magick-config in /usr/local/
bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/
X11/bin:/usr/local/git/bin

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

What do I need to do?

Install the headers for ImageMagick. If you're using a distro with a
package manager, it will probably end in -dev.

Ok, I just looked in the Ubuntu 8.10 manager and you want something
along the lines of libgraphicsmagick1-dev

But that's just a guess, I don't know exactly. However, if you're using
Ubuntu you can just use synaptic to install rmagick and save yourself a
bunch of hassle :)

=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
 
R

Rong

I have fixed the problem above. I am running os x 10.5.6.
I am now getting a different error.

Last login: Thu Feb 26 15:26:59 on ttys000
ronald-greens-imac:~ ron$ convert logo: logo.gif
ronald-greens-imac:~ ron$ display logo.gif
X connection to /tmp/launch-30Nznb/:0 broken (explicit kill or server
shutdown).
ronald-greens-imac:~ ron$ sudo gem install rmagick
Password:
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install rmagick
checking for Ruby version >=3D 1.8.2... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >=3D 6.3.0... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.


Install the headers for ImageMagick. =A0If you're using a distro with a
package manager, it will probably end in -dev.

Ok, I just looked in the Ubuntu 8.10 manager and you want something
along the lines of libgraphicsmagick1-dev

But that's just a guess, I don't know exactly. =A0However, if you're usin= g
Ubuntu you can just use synaptic to install rmagick and save yourself a
bunch of hassle :)

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This email, including any attachments, is only for the intended
addressee. =A0It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
=A0altered or corrupted during transmission.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 
M

Michael Malone

com>
X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count: 329731
X-Ml-Name: ruby-talk
X-Rubymirror: Yes
X-Ruby-Talk: <[email protected]>
Bytes: 3469
Xref: number1.nntp.dca.giganews.com comp.lang.ruby:323672
I have fixed the problem above. I am running os x 10.5.6.
I am now getting a different error.

Last login: Thu Feb 26 15:26:59 on ttys000
ronald-greens-imac:~ ron$ convert logo: logo.gif
ronald-greens-imac:~ ron$ display logo.gif
X connection to /tmp/launch-30Nznb/:0 broken (explicit kill or server
shutdown).
ronald-greens-imac:~ ron$ sudo gem install rmagick
Password:
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install rmagick
checking for Ruby version >= 1.8.2... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.3.0... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
stdint.h is part of the C library. This should be installed along with
a C compiler. Please tell me you're not trying to compile a C extension
without a C compiler?

=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
 
R

Rong

GCC is installed.

stdint.h is part of the C library. =A0This should be installed along with
a C compiler. =A0Please tell me you're not trying to compile a C extensio= n
without a C compiler?

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This email, including any attachments, is only for the intended
addressee. =A0It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
=A0altered or corrupted during transmission.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 
M

Michael Malone

com>
X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count: 329742
X-Ml-Name: ruby-talk
X-Rubymirror: Yes
X-Ruby-Talk: <[email protected]>
Bytes: 2337
Xref: number1.nntp.dca.giganews.com comp.lang.ruby:323683
GCC is installed.
Oh sorry, I was a little blind there. So have you checked to see
whether /usr/include/stdint.h exists?

=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
 
T

Tim Hunter

Rong said:
I have fixed the problem above. I am running os x 10.5.6.
I am now getting a different error. (snip)
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

What does the mkmf.log file have to say?
 
R

Rong

I found it.
Here is the line(s) referenced.

def try_do(src, command, &b)
unless have_devel?
raise <<MSG
The complier failed to generate an executable file.
You have to install development tools first.
MSG
end
src =3D create_tmpsrc(src, &b)
xsystem(command)
ensure
log_src(src)
rm_rf 'conftest.dSYM'
end

Don't know where it is.

What does the mkmf.log file have to say?
 
R

Rong

Charles, trying to install the gem.

Have you tried either the osx installer from rubyforge (automated =A0
build from source:http://is.gd/l6pP), or have you built the whole =A0
shebang from scratch yourself usinghttp://is.gd/glSd

I followed the second procedure myself with few problems.

Cheers--

Charles
 
C

Charles Johnson

And imagemagick installed without issues?

Cheers--

Charles
Charles, trying to install the gem.

Have you tried either the osx installer from rubyforge (automated
build from source:http://is.gd/l6pP), or have you built the whole
shebang from scratch yourself usinghttp://is.gd/glSd

I followed the second procedure myself with few problems.

Cheers--

Charles

---
Charles Johnson
Advanced Computing Center for Research and Education
Vanderbilt University
(e-mail address removed)
Office: 615-343-2776
Cell: 615-478-8799
 
R

Rong

Yes. At the end of the os x install instructions are 3 test commands
that all work perfectly.
 
C

Charles Johnson

Yes. At the end of the os x install instructions are 3 test commands
that all work perfectly.

On Feb 27, 1:08 pm, Charles Johnson
<[email protected]> wrote:


My conclusion would be, then, that the gem does not like ruby 1.9 just
yet. I am no help there, sorry.

Cheers--

Charles
 
T

Tim Hunter

Charles said:
My conclusion would be, then, that the gem does not like ruby 1.9 just
yet. I am no help there, sorry.

RMagick works just fine with 1.9.1. I'm waiting for the O.P. to show his
mkmf.log.
 
R

Rong

MKMF.log

<main>: checking for Ruby version >=3D 1.8.2... -------------------- yes

--------------------

find_executable: checking for gcc... -------------------- yes

--------------------

find_executable: checking for Magick-config... --------------------
yes

--------------------

<main>: checking for ImageMagick version >=3D 6.3.0...
-------------------- yes

--------------------

<main>: checking for HDRI disabled version of ImageMagick...
-------------------- yes

--------------------
 
R

Rong

mkmf.log

<main>: checking for Ruby version >=3D 1.8.2... -------------------- yes

--------------------

find_executable: checking for gcc... -------------------- yes

--------------------

find_executable: checking for Magick-config... --------------------
yes

--------------------

<main>: checking for ImageMagick version >=3D 6.3.0...
-------------------- yes

--------------------

<main>: checking for HDRI disabled version of ImageMagick...
-------------------- yes

--------------------
 
T

Tim Hunter

Rong said:
MKMF.log

<main>: checking for Ruby version >= 1.8.2... -------------------- yes

--------------------

find_executable: checking for gcc... -------------------- yes

--------------------

find_executable: checking for Magick-config... --------------------
yes

--------------------

<main>: checking for ImageMagick version >= 6.3.0...
-------------------- yes

This can't be all of it. It doesn't include the failure you described in
your post:

checking for stdint.h... *** extconf.rb failed ***

Why don't you start over and post the output from "gem install" and then
mkmf.log? Also, where did you get the XCode Tools (install disk?
download?), how did you install ImageMagick, and what's the output from

gcc --version
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top