I'm trying to install the curb gem on windows 8 but it returns errors. I was also trying by providing option like --with-curl-dir, --with-curl-lib, --with-curl-include but not working. Every time it return the error.Please give any suggestion. Thanks
C:\Users>gem install curb -- --with-curl-lib=C:/curl-7.21.0-devel-mingw32/bin --with-curl-include=C:/curl-7.21.0-devel-mingw32/include
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing curb:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb --with-curl-lib=C:/curl-7.21.0-devel-mingw32/bin --with-curl-include=C:/curl-7.21.0-devel-mingw32/include
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=C:/Ruby193/bin/ruby
--with-curl-dir
--without-curl-dir
--with-curl-include=${curl-dir}/include
--with-curl-lib=${curl-dir}/lib
--with-curllib
--without-curllib
extconf.rb:23:in `<main>': 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 C:/Ruby193/lib/ruby/gems/1.9.1/gems/curb-0.8.6 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/curb-0.8.6/ext/gem_make.out
You should have curl library installed on you machine in root directory then try following command in command prompt
gem install curb -v 0.8.6 --platform=ruby -- --with-curl-lib=C:/curl-7.34.0-devel-mingw32/bin --with-curl-include=C:/curl-7.34.0-devel-mingw32/include
Related
I am having trouble installing therubyracer on Windows Server 2012 R2.
first, i tried with gem install therubyracer -v '0.12.3'
which gave this output:
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
C:/Ruby200/bin/ruby.exe extconf.rb
checking for main() in -lpthread... no
checking for v8.h... 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=C:/Ruby200/bin/ruby
--with-pthreadlib
--without-pthreadlib
--enable-debug
--disable-debug
--with-v8-dir
--without-v8-dir
--with-v8-include
--without-v8-include=${v8-dir}/include
--with-v8-lib
--without-v8-lib=${v8-dir}/
C:/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.17/ext/libv8/location.rb:50:in `configure': By using --with-system-v8, you have chosen to use the version (Libv8::Location::System::NotFoundError)
of V8 found on your system and *not* the one that is bundled with
the libv8 rubygem.
However, your system version of v8 could not be located.
Please make sure your system version of v8 that is compatible
with 3.16.14.17 installed. You may need to use the
--with-v8-dir option if it is installed in a non-standard location
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.17/lib/libv8.rb:7:in `configure_makefile'
from extconf.rb:32:in `<main>'
Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/therubyracer-0.12.3 for inspection.
Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/therubyracer-0.12.3/ext/v8/gem_make.out
Also tried gem install therubyracer -v '0.12.3' -- --with-v8-dir
which resulted in this output:
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-v8-dir'
This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
C:/Ruby200/bin/ruby.exe extconf.rb --with-v8-dir
checking for main() in -lpthread... 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=C:/Ruby200/bin/ruby
--with-pthreadlib
--without-pthreadlib
--enable-debug
--disable-debug
--with-v8-dir
C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:1665:in `dir_config': undefined method `split' for true:TrueClass (NoMethodError)
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.17/ext/libv8/location.rb:49:in `configure'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.17/lib/libv8.rb:7:in `configure_makefile'
from extconf.rb:32:in `<main>'
Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/therubyracer-0.12.3 for inspection.
Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/therubyracer-0.12.3/ext/v8/gem_make.out
If you need any further information please let me know.
The provided error means that you don't have g++ installed yet.
I think you need to first run this command:
sudo apt-get install g++
I got these message while installing mechanize Gem:
[root#nemon ~]# gem install mechanize
> (RuntimeError) You have to install development tools first.
Whole log:
Building native extensions. This could take a while... ERROR: Error installing mechanize:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb checking for main() in -lstdc++... *** 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}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-static-libstdc++
--without-static-libstdc++
--with-stdc++lib
--without-stdc++lib /usr/share/ruby/mkmf.rb:434:in try_do: The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first.
from /usr/share/ruby/mkmf.rb:519:in try_link0
from /usr/share/ruby/mkmf.rb:534:in try_link
from /usr/share/ruby/mkmf.rb:720:in try_func
from /usr/share/ruby/mkmf.rb:950:in block in have_library
from /usr/share/ruby/mkmf.rb:895:in block in checking_for
from /usr/share/ruby/mkmf.rb:340:in block (2 levels) in postpone
from /usr/share/ruby/mkmf.rb:310:in open
from /usr/share/ruby/mkmf.rb:340:in block in postpone
from /usr/share/ruby/mkmf.rb:310:in open
from /usr/share/ruby/mkmf.rb:336:in postpone
from /usr/share/ruby/mkmf.rb:894:in checking_for
from /usr/share/ruby/mkmf.rb:945:in have_library
from extconf.rb:6:in <main>
Gem files will remain installed in `/usr/local/share/gems/gems/unf_ext-0.0.7.1` for inspection.
Results logged to `/usr/local/share/gems/gems/unf_ext-.0.7.1/ext/unf_ext/gem_make.out`
Am trying to install memcached gem in my windows 8.Am getting following error while executing the command gem install memcached
I already installed Devkit and using ruby1.9.3
C:\Users\aran>gem install memcached
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while.
..
ERROR: Error installing memcached:
ERROR: Failed to build gem native extension.
C:/ProgramData/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for sasl/sasl.h... no
Please install SASL to continue. The package is called libsasl2-dev on Ubuntu an
d cyrus-sasl on Gentoo.
*** 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=C:/ProgramData/RailsInstaller/Ruby1.9.3/bin/ruby
Gem files will remain installed in C:/ProgramData/RailsInstaller/Ruby1.9.3/lib/r
uby/gems/1.9.1/gems/memcached-1.6.1 for inspection.
Results logged to C:/ProgramData/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/ge
ms/memcached-1.6.1/ext/gem_make.out
How can i rectify this error??
On Fedora, I installed cyrus-sasl-devel. There might be same or something equivalent on Windows too...give it a try..
I am trying to install hbase-stargate gem on my hadoop machine having centos-5.8 OS. Hbase is already installed. I am getting below errors.
gem install hbase-stargate
Building native extensions. This could take a while...
ERROR: Error installing hbase-stargate:
ERROR: Failed to build gem native extension.
/usr/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
--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/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:34: 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 /usr/lib64/ruby/gems/1.8/gems/patron-0.4.18 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/patron-0.4.18/ext/patron/gem_make.out
Its giving errors about libcurl however libcurl and libcurl-devel package is also there...
I also got this error while installing 'patron' gem on Ubuntu 12.04 with Rails 3.2.12.
I fixed this issue using:
sudo apt-get install libcurl3-dev
and then:
bundle
I hope it will be helpfull
rails version 2.3.5
ruby version 1.8.7
PS C:\Ruby187\apps\redmine> gem install mysql
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
C:/Ruby187/bin/ruby.exe extconf.rb
checking for main() in -llibmysql... 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=C:/Ruby187/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-libmysqllib
--without-libmysqllib
Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
There is already a pre-built binary of mysql 2.8.1 gem on rubygems.org:
https://rubygems.org/gems/mysql/versions/2.8.1-x86-mingw32
Unless you're forcing --platform=ruby in which case you need MySQL headers and linking libraries.
You also need RubyInstaller DevKit, if that is the Ruby version you're trying to use.
See this post in our group here