D
D
Denis2011-04-25 17:16:41
git
Denis, 2011-04-25 17:16:41

Trouble installing git-commit-notifier

Hello. I'm trying to install git-commit-notifier . I act according to the instructions:

gem install git-commit-notifier
Then I will build libiconv from the sources. I'm trying to show where it is: gem install git-commit-notifier - --with-iconv-include=/usr/local/lib/libiconv.so.2.2.0 I get a similar output, only the error looks like this: " libxml2 is missing. please visit nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. " I follow the recommendations from the link, I try - again an error. I show where I have libxml2: gem install git-commit-notifier --with-iconv-include=/usr/local/lib/libiconv.so.2.2.0 --with-xml2-include=/usr/local/ lib/libxml2.so.2.7.8
Building native extensions. This could take a while...
ERROR: Error installing git-commit-notifier:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
checking for #include <libxml/parser.h>
... yes
checking for #include <libxslt/xslt.h>
... yes
checking for #include <libexslt/exslt.h>
... yes
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
-----
libiconv is missing. please visit 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.

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-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
--with-iconvlib
--without-iconvlib

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










Another error: Centos 5.5, all updates are there.
Building native extensions. This could take a while...
ERROR: Error installing git-commit-notifier:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb --with-iconv-include=/usr/local/lib/libiconv.so.2.2.0 --with-xml2-include=/usr/local/lib/libxml2.so.2.7.8
checking for #include <libxml/parser.h>
... no
-----
libxml2 is missing. please visit 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.

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-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-iconv-dir
--without-iconv-dir
--with-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib

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


Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey Shaydurov, 2011-04-26
@GearHead

As far as I know, when building a native extension, it needs not only shared-libraries, but also source codes or header files. I don’t know how this problem is solved in centos, but in ubuntu it is usually solved by installing a package with a dev attribute, i.e. libiconv-dev and libxml2-dev.
And by the way, you shove the path shared-library into the parameter for include-files.

S
Sergey, 2011-04-26
@seriyPS

Maybe some thread
yum install libxml2-devel

S
Sergey, 2011-04-26
@seriyPS

At least on our server, the file /usr/include/iconv.hbelongs to the glibc-headers package (2.5-42.el5_4.3) and
the libxml2 - devel package (/usr/include/libxml2/libxml/parser.h 2.6.26-2.1.2.8 ) I tried to put it, so maybe this information will not help.
extern iconv_t iconv_open (__const char *__tocode, __const char *__fromcode);

S
Sergey, 2011-04-26
@seriyPS

So, I decided to give it a try...

uname-a
Linux xen-centos 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:30:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/redhat-release
CentOS release 5.4 (Final)

sudo yum install rubygems
sudo yum install libxml2-devel
sudo yum install ruby-devel
sudo gem install git-commit-notifier
>>>
Successfully installed nokogiri-1.4.4
Successfully installed premailer-1.7.1
Successfully installed git-commit-notifier-0.9.1
3 gems installed ...

libxslt and libxslt-devel are already installed, so I'm not sure if they are needed or not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question