Last week I made an update in cygwin because of the bash "vulnerable problem".
After that I couldn't compile sass anymore.
I tried to reinstall ruby, after some install fails and reinstalling cygwin I installed it and updated with "gem update --system"
it run, but when I tried to install compass I got following message:
> /usr/bin/ruby.exe -r ./siteconf20141006-7856-1td7wzb.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-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-ffi_c-dir
> --without-ffi_c-dir
> --with-ffi_c-include
> --without-ffi_c-include=${ffi_c-dir}/include
> --with-ffi_c-lib
> --without-ffi_c-lib=${ffi_c-dir}/
> --with-libffi-config
> --without-libffi-config
> --with-pkg-config
> --without-pkg-config /usr/share/ruby/2.0.0/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/2.0.0/mkmf.rb:565:in `try_cpp' from
> /usr/share/ruby/2.0.0/mkmf.rb:1044:in `block in have_header' from
> /usr/share/ruby/2.0.0/mkmf.rb:895:in `block in checking_for' from
> /usr/share/ruby/2.0.0/mkmf.rb:340:in `block (2 levels) in postpone'
> from /usr/share/ruby/2.0.0/mkmf.rb:310:in `open' from
> /usr/share/ruby/2.0.0/mkmf.rb:340:in `block in postpone' from
> /usr/share/ruby/2.0.0/mkmf.rb:310:in `open' from
> /usr/share/ruby/2.0.0/mkmf.rb:336:in `postpone' from
> /usr/share/ruby/2.0.0/mkmf.rb:894:in `checking_for' from
> /usr/share/ruby/2.0.0/mkmf.rb:1043:in `have_header' from
> extconf.rb:16:in `<main>'
>
> extconf failed, exit code 1
I tried to install ffi ("gem install ffi" and "gem install ffi --pre"),I got the same message
here is the log (.gem/ruby/extensions/x86_64-cygwin/ffi-1.9.5/gem_make.out)
package configuration for libffi is not found
"gcc -o conftest.exe -I/usr/include/ruby-2.0.0 -I/usr/include/ruby-2.0.0/ruby/backward -I/usr/include/ruby-2.0.0 -I. -ggdb -O2 -pipe -Wimplicit-function-declaration conftest.c -L. -L/usr/lib -L. -fstack-protector -lruby200 -lpthread -lrt -ldl -lcrypt "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
I'm really frustrated!!'
system Windows 7 64bit
Cygwin
Yep, for me it's just the gcc environment,so you can try
sudo apt-get install gcc
That worked for me in ubuntu :)
make sure that xcode is installed.
xcode-select --install
if it is already installed, make sure that you have accepted the TOS.
sudo xcodebuild -license
scroll down to the bottom and type agree.
it should work with above steps.
if you see following issue after doing above 2 steps
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/compass
try following.
sudo su
sudo gem install -n /usr/local/bin compass
On OSX this worked:
if gem install compass fails, try
gem install ffi
in case that also fails, the error seems to be, that the ffi build looks in /usr/bin for gcc-4.2
if you have gcc installed, just create a symlink within /usr/bin by typing
sudo ln -s gcc gcc-4.2
otherwise you may need to first install gcc (google that)
try this out:
download and install ruby dev kit as per your ruby version
http://rubyinstaller.org/downloads/
in case of any issue follow this wiki on github.
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
This is very old thread, but as I struggled a long time trying to work around that same issue I thought it could be helpful for someone else...
What worked in the end for me : uninstall ruby 3.1.x and reinstall it using the rubyinstaller-devkit-2.7.5-1-x64.exe available here : https://rubyinstaller.org/downloads/
Make sure to install the devTools at the end
Related
I try to install Cocoapods like so
sudo gem install cocoapods
This is the output I get:
Building native extensions. This could take a while...
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.14.2/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20210206-1353-ybitkb.rb extconf.rb
*** 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=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBY_BASE_NAME)
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--enable-system-libffi
--disable-system-libffi
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:546:in `block in try_link0'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tmpdir.rb:93:in `mktmpdir'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:543:in `try_link0'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:570:in `try_link'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:672:in `try_ldflags'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1832:in `pkg_config'
from extconf.rb:9:in `system_libffi_usable?'
from extconf.rb:42:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/ffi-1.14.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/ffi-1.14.2 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/ffi-1.14.2/gem_make.out
It is basically this
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
What development tools do I have to install first?
xCode is installed, as well as the Xcode command line tools.
I am on OS X 10.15.7, Xcode is up to date.
Or simply… 😁
brew install cocoapods
Finally got it after hours.
I followed this instruction, changed it a bit
Make sure brew is installed. If not
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Set shell to zsh
curl -L http://install.ohmyz.sh | sh
or, set PATH
eval "$(rbenv init -)"
Install Ruby Version Manager
brew update
brew install rbenv ruby-build
Install Ruby
rbenv install 2.6 # I used my systems default version number because I was not sure if it messes with my OS X system version.
rbenv global 2.6
rbenv rehash
Add it to your zsh
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
source ~/.zshrc
That did it for me. All the other stuff like installing Xcode, accept the Xcode License, Xcode command line tools did not do it.
I was trying to install sass. I did manage to install it via npm (1.14.1 compiled with dart2js 2.0.0), however I need to install it with Ruby (Ruby Sass 3.5.6.). Now, here is the error when I run "sudo gem install sass"
Building native extensions. This could take a while...
ERROR: Error installing sass:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20181004-3909-1iytz3s.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-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=/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/$(RUBY_BASE_NAME)
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:456:in 'try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:571:in `block in try_compile'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:524:in `with_werror'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:571:in `try_compile'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:1091:in `block in have_header'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:942:in `block in checking_for'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:350:in `block (2 levels) in postpone'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:320:in `open'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:350:in `block in postpone'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:320:in `open'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:346:in `postpone'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:941:in `checking_for'
from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/
2.3.0/mkmf.rb:1090:in `have_header'
from extconf.rb:16:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/ffi-1.9.25/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/ffi-1.9.25 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/ffi-1.9.25/gem_make.out
I have tried to update Ruby, delete sass installed via npm, update xcode dev-tools as some suggested. But nothing works. I have no idea what is the reason since I had sass before updating to new Mac OS Mojave from 0.
Here is the mkmf.log file:
package configuration for libffi is not found
"xcrun clang -o conftest -
I/System/Library/Frameworks/Ruby.framework
/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18 -
I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/
include/ruby-2.3.0/ruby/backward -
I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/
ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -
D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -
DHAVE_GCC_ATOMIC_BUILTINS conftest.c -L. -
L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L.
-lruby.2.3.0 -lpthread -ldl -lobjc "
In file included from conftest.c:1:
In file included from
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/
ruby-2.3.0/ruby.h:33:
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/
ruby-2.3.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
^~~~~~~~~~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
Any ideas?
Ok, so the solution was found. If you have this error. Do this:
Install rvm (https://rvm.io/)
Then I had to run this command to make rvm work:
if sudo grep -q secure_path /etc/sudoers; then sudo sh -c "echo export rvmsudo_secure_path=1 >> /etc/profile.d/rvm_secure_path.sh" && echo Environment variable installed; fi
next with rvm I deleted ruby:
rvm remove ruby
and lastly install ruby:
rvm install ruby
not sure if this step was required, but this is what I had in my console: Ruby was built without documentation, to build it run: rvm docs generate-ri
So I also ran this command. And after that I was finally able to sudo gem install sass.
Now it works!
Perform following steps in mac to install SASS error free
Install gpg
brew install -v gpg
Install gpg keys
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
Allow curl to run without checking SSL (else command #4 will throw an error)
echo insecure >> ~/.curlrc
Install rvm
\curl -sSL -k https://get.rvm.io | bash
To use rvm, you will get an output after running command in #3 like:
To start using RVM you need to run source /Users/ymehta/.rvm/scripts/rvm
Copy paste command and hit Enter
Remove existing ruby version
rvm remove ruby
Install ruby
rvm install ruby
rvm docs generate-ri
Install sass
sudo gems install sass
Check sass version
sass --version
Same steps can be found at https://gist.github.com/Yashvi-Mehta/9ad81330d1703f12a00b63cf20c9cdb3
I am trying to install Rails by using
sudo gem install rails
on a fresh version of Ubuntu 16.04. Ruby 2.3.1p112 is already installed. During the installation of Rails, once fetching Nokogiri is complete, I get the error below:
Fetching: nokogiri-1.8.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/nokogiri-1.8.0/ext/nokogiri
/usr/bin/ruby2.3 -r ./siteconf20170608-1635-1vnwqbn.rb extconf.rb
checking if the C compiler accepts ... *** 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_BASE_NAME)2.3
--help
--clean
/usr/lib/ruby/2.3.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/2.3.0/mkmf.rb:571:in `block in try_compile'
from /usr/lib/ruby/2.3.0/mkmf.rb:522:in `with_werror'
from /usr/lib/ruby/2.3.0/mkmf.rb:571:in `try_compile'
from extconf.rb:138:in `nokogiri_try_compile'
from extconf.rb:162:in `block in add_cflags'
from /usr/lib/ruby/2.3.0/mkmf.rb:629:in `with_cflags'
from extconf.rb:161:in `add_cflags'
from extconf.rb:407:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.8.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.3.0/gems/nokogiri-1.8.0 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.8.0/gem_make.out
This is the content of mkmf.log:
"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.3 -lpthread -lgmp -ldl -lcrypt -lm -lc "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
I have no idea what is wrong. The log does not help and I already tried installing libgmp-dev, ruby-dev, zlib1g-dev and liblzma-dev as they were suggested to people who are getting errors during Nokogiri gem installation.
After trying to find the missing dependency for a while, I ran the gcc command in the mkmf.log just in case some compilation error messages are being omitted.
It turned out that I didn't have gcc installed. Once I installed it, I got some progress with the installation only to encounter another similar error. In the end, installing the dependencies below resulted in a successful installation of Rails.
Please make sure you have gcc, make, zlib1g-dev, sqlite3 installed before running gem install rails:
sudo apt-get install gcc make zlib1g-dev sqlite3
Recently I've updated my Mac to El Capitan and re-installed (with Homebrew) ImageMagick 6.9.2-7
Unfortunately bundle install doesn't work because RMagick fails to build.
Here the stack trace:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/me/.rvm/rubies/ruby-1.9.3-p327/bin/ruby -r ./siteconf20151204-39308-uw4m6y.rb extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for /usr/local/opt/gcc46/bin/gcc-4.6... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... 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.
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=/Users/me/.rvm/rubies/ruby-1.9.3-p327/bin/ruby
/Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'
from /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:931:in `block in have_header'
from /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb:930:in `have_header'
from extconf.rb:194:in `<main>'
extconf failed, exit code 1
I've tried several different solutions founded on Internet but nothing seems to fix this error.
With the operations below I receive always the errore above:
1) C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.9.2-7/include/ImageMagick-6/ gem install rmagick -v '2.13.2'
2) gem install rmagick --version=2.13.2 --platform=ruby -- --with-opt-lib="h:/ImageMagick-6.9.2-7/lib" --with-opt-include="h:/ImageMagick-6.9.2-7/include"
3) $ cd /usr/local/Cellar/imagemagick/6.9.2-7/lib
$ ln -s libMagick++-Q16.6.dylib libMagick++.dylib
$ ln -s libMagickCore-Q16.2.dylib libMagickCore.dylib
$ ln -s libMagickWand-Q16.2.dylib libMagickWand.dylib
The error still the same:
The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
I've also updated xcoce to 7.1.1
I'm using ruby-1.9.3-p327 with RVM
Thanks in advance.
You need to update Xcode and install Command Line Tools (xcode-select --install).
None of these worked in isolation for me, but the running of all of them seemed to do the trick:
xcode-select --install
brew unlink imagemagick
brew uninstall --force imagemagick
brew update
brew doctor
brew install imagemagick
That's likely overkill but in the end worked for me.
I am trying to install charlock holmes, nevertheless, I keep getting an error:
[root#hugovm gitlab]# gem install charlock_holmes --version '0.6.9.4'
Building native extensions. This could take a while...
ERROR: Error installing charlock_holmes:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for main() in -licui18n... yes
checking for main() in -licui18n... yes
checking for unicode/ucnv.h... yes
-- tar zxvf file-5.08.tar.gz
-- ./configure --prefix=/usr/local/share/gems/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/dst/ --disable-shared --enable-static --with-pic
-- patch -p0 < ../file-soft-check.patch
*** 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-icu-dir
--without-icu-dir
--with-icu-include
--without-icu-include=${icu-dir}/include
--with-icu-lib
--without-icu-lib=${icu-dir}/
--with-icui18nlib
--without-icui18nlib
--with-icui18nlib
--without-icui18nlib
extconf.rb:7:in `sys': patch -p0 < ../file-soft-check.patch failed, please report issue on http://github.com/brianmario/charlock_holmes (RuntimeError)
from extconf.rb:61:in `block (2 levels) in <main>'
from extconf.rb:59:in `chdir'
from extconf.rb:59:in `block in <main>'
from extconf.rb:55:in `chdir'
from extconf.rb:55:in `<main>'
Gem files will remain installed in /usr/local/share/gems/gems/charlock_holmes-0.6.9.4 for inspection.
Results logged to /usr/local/share/gems/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/gem_make.out
I already installed libicu-devel.
Thanks
I had the exact same issue today. Tried to install gitlab on a clean fedora machine.
For me, a line in /usr/local/share/gems/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/gem_make.out pointed to mkmf.log, which is in the same directory as above log file.
There it said "patch: command not found"
sudo yum install patch
In you output I can read:
extconf.rb:7:in `sys': patch -p0 < ../file-soft-check.patch failed, please report issue on http://github.com/brianmario/charlock_holmes (RuntimeError)
So it all points to a bug. I suppose it is a good idea follow the output and created an issue there, explaining what you are trying to do and giving details of your environment.
ruby-devel is missing
yum install ruby-devel
and you'll be set :)