media-scientific - IT Blog

the backend developers blog

Fehler beim installieren von Curb

Vorlesen mit webReader

Fehlermeldung beim installieren des Gems CURB:

$ gem install curb
Building native extensions.  This could take a while...
ERROR:  Error installing curb:
	ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install curb
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
	–without-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=/usr/bin/ruby1.8
	–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

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/curb-0.3.5 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/curb-0.3.5/ext/gem_make.out

Lösung:

wget http://curl.haxx.se/download/curl-7.16.2.tar.gz
tar xvfz curl-7.16.2.tar.gz
cd curl-7.16.2
make && make install   
gem install curb

Building native extensions.  This could take a while...
Successfully installed curb-0.3.5
1 gem installed
Installing ri documentation for curb-0.3.5...
Installing RDoc documentation for curb-0.3.5...

Hinweis:

Es kann sein, dass die folgenden Schritte vorher durchgeführt werden müssen:

apt-get install libcurl3
apt-get install libcurl3-gnutls

Leave a Reply

You must be logged in to post a comment.