From: Maksim Morozov Date: 2012-03-22T22:34:16+09:00 Subject: Re: gem install rmagick requires imagemagick --f46d0408d6b5b7a13104bbd4f66f Content-Type: text/plain; charset=ISO-8859-1 sudo apt-get install libmagickcore-dev libcurl4-dev On Thu, Mar 22, 2012 at 4:57 PM, thufir wrote: > On Thu, 22 Mar 2012 21:44:18 +0900, thufir wrote: > > > thufir@dur:~$ gem install rmagick --no-rdoc --no-ri Building native > > extensions. This could take a while... ERROR: Error installing > > rmagick: > > ERROR: Failed to build gem native extension. > > > > Similar but different result for another gem: > > > thufir@dur:~$ > thufir@dur:~$ > thufir@dur:~$ whereis curl > curl: /usr/bin/curl /usr/share/man/man1/curl.1.gz > thufir@dur:~$ > thufir@dur:~$ gem install feedzirra --no-rdoc --no-ri > Building native extensions. This could take a while... > ERROR: Error installing feedzirra: > ERROR: Failed to build gem native extension. > > /home/thufir/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb > checking for curl-config... no > checking for main() in -lcurl... no > *** 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. > > Provided configuration options: > --with-opt-dir > --with-opt-include > --without-opt-include=${opt-dir}/include > --with-opt-lib > --without-opt-lib=${opt-dir}/lib > --with-make-prog > --without-make-prog > --srcdir=. > --curdir > --ruby=/home/thufir/.rvm/rubies/ruby-1.9.3-p125/bin/ruby > --with-curl-dir > --without-curl-dir > --with-curl-include > --without-curl-include=${curl-dir}/include > --with-curl-lib > --without-curl-lib=${curl-dir}/lib > --with-curllib > --without-curllib > extconf.rb:23:in `
': Can't find libcurl or curl/curl.h > (RuntimeError) > > Try passing --with-curl-dir or --with-curl-lib and --with-curl-include > options to extconf. > > > Gem files will remain installed in /home/thufir/.rvm/gems/ruby-1.9.3-p125/ > gems/curb-0.7.18 for inspection. > Results logged to /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/curb-0.7.18/ > ext/gem_make.out > thufir@dur:~$ > thufir@dur:~$ > > > Sigh. Do I have to re-install ruby or something? Or are these gems the > problem? Seems more likely that my computer is, though. > > > > -Thufir > > > --f46d0408d6b5b7a13104bbd4f66f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable sudo apt-get install libmagickcore-dev libcurl4-dev

On Thu, Mar 22, 2012 at 4:57 PM, thufir <hawat.thufir@gmail.com> wrote:
On Thu, 22 Mar 2012 21:44:= 18 +0900, thufir wrote:

> thufir@dur:~$ gem install rmagick =A0--no-rdoc --no-ri Building native=
> extensions. =A0This could take a while... ERROR: =A0Error installing > rmagick:
> =A0 =A0 =A0 ERROR: Failed to build gem native extension.



Similar but different result for another gem:


thufir@dur:~$
thufir@dur:~$
thufir@dur:~$ whereis curl
curl: /usr/bin/curl /usr/share/man/man1/curl.1.gz
thufir@dur:~$
thufir@dur:~$ gem install feedzirra =A0--no-rdoc --no-ri
Building native extensions. =A0This could take a while...=
ERROR: =A0Error installing feedzirra:
=A0 =A0 =A0 =A0ERROR: Failed to build gem native extensi= on.

=A0 =A0 =A0 =A0/home/thufir/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.r= b
checking for curl-config... no
checking for main() in -lcurl... no
*** 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.

Provided configuration options:
=A0 =A0 =A0 =A0--with-opt-dir
=A0 =A0 =A0 =A0--with-opt-include
=A0 =A0 =A0 =A0--without-opt-include=3D${opt-dir}/include
=A0 =A0 =A0 =A0--with-opt-lib
=A0 =A0 =A0 =A0--without-opt-lib=3D${opt-dir}/lib
=A0 =A0 =A0 =A0--with-make-prog
=A0 =A0 =A0 =A0--without-make-prog
=A0 =A0 =A0 =A0--srcdir=3D.
=A0 =A0 =A0 =A0--curdir
=A0 =A0 =A0 =A0--ruby=3D/home/thufir/.rvm/rubies/ruby-1.9.3-p125/bin/ruby<= br>
=A0 =A0 =A0 =A0--with-curl-dir
=A0 =A0 =A0 =A0--without-curl-dir
=A0 =A0 =A0 =A0--with-curl-include
=A0 =A0 =A0 =A0--without-curl-include=3D${curl-dir}/include
=A0 =A0 =A0 =A0--with-curl-lib
=A0 =A0 =A0 =A0--without-curl-lib=3D${curl-dir}/lib
=A0 =A0 =A0 =A0--with-curllib
=A0 =A0 =A0 =A0--without-curllib
extconf.rb:23:in `<main>': =A0 Can't find libcurl or curl/cur= l.h
(RuntimeError)

=A0Try passing --with-curl-dir or --with-curl-lib and --with-curl-include<= br> =A0options to extconf.


Gem files will remain installed in /home/thufir/.rvm/gems/ruby-1.9.3-p125/<= br>
gems/curb-0.7.18 for inspection.
Results logged to /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/curb-0.7.18/<= br> ext/gem_make.out
thufir@dur:~$
thufir@dur:~$


Sigh. =A0Do I have to re-install ruby or something? =A0Or are these gems th= e
problem? =A0Seems more likely that my computer is, though.



-Thufir



--f46d0408d6b5b7a13104bbd4f66f--