I am trying to install charlock_holmes gem on centos but i keep on getting
Installing charlock_holmes 0.7.6 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/usr/local/rvm/gems/ruby-2.2.5/gems/charlock_holmes-
0.7.6/ext/charlock_holmes
/usr/local/rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20180607-1811-
1cbsady.rb
extconf.rb --with-icu-dir=C:UsersmadprogDesktopicusourcesdistusrlocal
--with-icui18nlib=icuin --with-icudatalib=icudt
checking for main() in -licuin... no
which: no brew in
(/usr/local/rvm/gems/ruby-2.2.5/bin:/usr/local/rvm/gems/ruby-
2.2.5#global/bin:/usr/local/rvm/rubies/ruby-
2.2.5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/
rvm/bin:/root/bin)
checking for main() in -licuin... no
***** icu required (brew install icu4c or apt-get install libicu-dev)
*** 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.
To see why this extension failed to compile, please check the mkmf.log which
can be found here:
/usr/local/rvm/gems/ruby-2.2.5/extensions/x86_64-
linux/2.2.0/charlock_holmes-0.7.6/mkmf.log
extconf failed, exit code 1
An error occurred while installing charlock_holmes (0.7.6), and Bundler
cannot continue.
In Gemfile:
copyright-header was resolved to 1.0.22, which depends on
github-linguist was resolved to 6.2.0, which depends on
charlock_holmes
i also tried installing libicu-dev and this is what i get
no package libicu-dev available.
Error : nothing to do
please help, thank you.
Related
Everytime I try to install bundle I receive this error and I dont know what to do, I just update rails to 3.2.0. Im already on Ubuntu and my sqlite3 version is 3.37.2
I have tryed to uninstall sqlite3 and gem sqlite3-rails and then reinstall them, but nothing has change.
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
current directory: /home/computer/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/sqlite3-1.5.4/ext/sqlite3
/home/computer/.rbenv/versions/3.2.0/bin/ruby -I /home/computer/.rbenv/versions/3.2.0/lib/ruby/3.2.0 extconf.rb
Building sqlite3-ruby using packaged sqlite3.
Extracting sqlite-autoconf-3400000.tar.gz into tmp/x86_64-linux-gnu/ports/sqlite3/3.40.0... OK
Running 'configure' for sqlite3 3.40.0... OK
Running 'compile' for sqlite3 3.40.0... OK
Running 'install' for sqlite3 3.40.0... OK
Activating sqlite3 3.40.0 (from /home/computer/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/sqlite3-1.5.4/ports/x86_64-linux-gnu/sqlite3/3.40.0)...
Could not configure the build properly (pkg_config). Please install either the `pkg-config` utility or the `pkg-config` rubygem.
*** 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.
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/computer/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/extensions/x86_64-linux/3.2.0/sqlite3-1.5.4/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/computer/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/sqlite3-1.5.4 for inspection.
Results logged to /home/computer/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/extensions/x86_64-linux/3.2.0/sqlite3-1.5.4/gem_make.out```
I solved it installing pkg-config and then bundle install worked correctly
sudo apt-get update -y
sudo apt-get install -y pkg-config
bundle isntall
I'm attempting to follow this tutorial here in cloud9. After entering $rails new myproject I get an error when attempting to $bundle install. part of the error reads
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** 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.
Make sure that `gem install nokogiri -v '1.6.8.1'` succeeds before bundling.
Tried installing using $ gem install nokogiri -v 1.6.8.1 but get extconf failed, exit code 1
Is there a way to install nokogirir in order for $bundle install to succeed? Also, how can I open the mkmf.log file in cloud9 IDE? I tried c9 mkmf.log but it didn't work.
So I'm doing [this super basic Rails tutorial][1], and I'm stuck at this part:
bundle install --without production
It runs through a list of dependencies (?) but seems to get stuck on something calling ffi 1.9.10, where it gives me the following error message:
Using concurrent-ruby 1.0.0
Installing ffi 1.9.10 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/stephensmith/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20160101-33768-1kfzc9h.rb extconf.rb
checking for ffi.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.
Provided configuration options:
--with-opt-dir
.
.
.
--without-pkg-config
/Users/stephensmith/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/stephensmith/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:587:in `try_cpp'
.
.
.
from /Users/stephensmith/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:1059:in `have_header'
from extconf.rb:16:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /Users/stephensmith/.rvm/gems/ruby-2.2.3#real_estate/gems/ffi-1.9.10 for inspection.
Results logged to /Users/stephensmith/.rvm/gems/ruby-2.2.3#real_estate/extensions/x86_64-darwin-14/2.2.0-static/ffi-1.9.10/gem_make.out
Using formatador 0.2.5
.
.
.
Using sprockets 3.5.2
An error occurred while installing ffi (1.9.10), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.10'` succeeds before bundling.
Any idea what's going on and how to fix it? I'm sure it's something simple, but I can't figure it out to continue with the tutorial. :-(
Given that your home directory is /Users/<username> I am guessing you are on a Mac. You need to install the Xcode command line tools as explained in this article
You can do this from the command line using xcode-select
I am using Ruby 1.9.3 and therefore have to use an older version of Nokogiri. I need to install Nokogiri v1.5.10.
Initially I got an error that libxml2 is missing. After installing libxml2 I got the following error:
ERROR: Error installing nokogiri-1.5.10.gem:
ERROR: Failed to build gem native extension.
/opt/ruby-1.9.3/bin/ruby extconf.rb
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... no
-----
libxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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.
Do I need to install each and every dependency manually?
If so, how do i determine what version to use?
NOTE: The server does not have access to the internet. Therefore, I have to scp rpm or tar files to install.
Unfortunately yes, you will need to install each dependency manually with that version of Nokogiri as I don't believe they packaged the dependencies in until version 1.6.0.rc1.
I am trying to install ruby but everytime sudo bundle --without production the installation crash when it comes to therubyracer:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for main() in -lobjc... yes
*** 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.
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/therubyracer-0.9.10 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/therubyracer-0.9.10/ext/v8/gem_make.out
An error occurred while installing therubyracer (0.9.10), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.9.10'` succeeds before bundling.
Is there any way to make this work?
Thanks