[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: RMagick

Michael Malone

2/26/2009 8:16:00 PM

Rong wrote:
> 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.
=======================================================================


23 Answers

Ron Green

2/26/2009 9:55:00 PM

0

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.


On Feb 26, 2:15=A0pm, Michael Malone <michael.mal...@tait.co.nz> wrote:
> Rong wrote:
> > 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 >=3D 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. =A0Check the mkmf.log file for more
> > details. =A0You may need configuration options.
>
> > What do I need to do?
>
> 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

Michael Malone

2/26/2009 10:14:00 PM

0

Rong wrote:
> 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.
=======================================================================


Ron Green

2/26/2009 10:54:00 PM

0

GCC is installed.

On Feb 26, 4:14=A0pm, Michael Malone <michael.mal...@tait.co.nz> wrote:
> Rong wrote:
> > 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. =A0This could take a while...
> > ERROR: =A0Error installing rmagick:
> > =A0 =A0ERROR: 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. =A0Check the mkmf.log file for more
> > details. =A0You may need configuration options.
>
> 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

Michael Malone

2/26/2009 11:17:00 PM

0

Rong wrote:
> 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.
=======================================================================


Tim Hunter

2/26/2009 11:24:00 PM

0

Rong wrote:
> 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?

--
RMagick: http://rmagick.ruby...

Ron Green

2/27/2009 4:03:00 AM

0

Don't know where it is.

On Feb 26, 5:23=A0pm, Tim Hunter <TimHun...@nc.rr.com> wrote:
> Rong wrote:
> > 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. =A0Check the mkmf.log file for more
> > details. =A0You may need configuration options.
>
> What does the mkmf.log file have to say?
>
> --
> RMagick:http://rmagick.ruby...

Ron Green

2/27/2009 4:15:00 AM

0

I am running Ruby 1.9.1. Does that matter?

On Feb 26, 10:02=A0pm, Rong <ron.gr...@gmail.com> wrote:
> Don't know where it is.
>
> On Feb 26, 5:23=A0pm, Tim Hunter <TimHun...@nc.rr.com> wrote:
>
>
>
> > Rong wrote:
> > > 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. =A0Check the mkmf.log file for mo=
re
> > > details. =A0You may need configuration options.
>
> > What does the mkmf.log file have to say?
>
> > --
> > RMagick:http://rmagick.ruby...

Ron Green

2/27/2009 4:31:00 AM

0

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

On Feb 26, 10:02=A0pm, Rong <ron.gr...@gmail.com> wrote:
> Don't know where it is.
>
> On Feb 26, 5:23=A0pm, Tim Hunter <TimHun...@nc.rr.com> wrote:
>
>
>
> > Rong wrote:
> > > 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. =A0Check the mkmf.log file for mo=
re
> > > details. =A0You may need configuration options.
>
> > What does the mkmf.log file have to say?
>
> > --
> > RMagick:http://rmagick.ruby...

cnjohnson

2/27/2009 3:08:00 PM

0

On Feb 26, 2009, at 4:54 PM, Rong wrote:

> GCC is installed.
>
Have you tried either the osx installer from rubyforge (automated
build from source: http://... ), or have you built the whole
shebang from scratch yourself using http://...

I followed the second procedure myself with few problems.

Cheers--

Charles
---
Charles Johnson
Advanced Computing Center for Research and Education
Vanderbilt University





Tim Hunter

2/27/2009 6:03:00 PM

0

On Feb 26, 11:02 pm, Rong <ron.gr...@gmail.com> wrote:
> Don't know where it is.
>

/usr/local/lib/ruby/gems/1.8/gems/rmagick-2.9.1/ext/RMagick/mkmf.log