From: "tomar.arun@..." Date: 2012-06-07T20:32:37+09:00 Subject: Re: Installation of ruby-Libvirt on Linux box --0016e6dd867578dff704c1e03d8d Content-Type: text/plain; charset=ISO-8859-1 Hi! This error usually means that you've not installed the development libraries. so in your case if it's centos system it would be "libvirt-devel". if you are on debian based system just search for the development library, and install it. Arun. On Thu, Jun 7, 2012 at 3:34 PM, ankush m. wrote: > Hey guys, > I am facing some issues while installing ruby-libvirt gem on > my linux box. > these issues are as follows. > > > ncepspa244% gem install ruby-libvirt -v 0.3.0 > > /users/ankmaheshwari/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:in > `': > It seems your ruby installation is missing psych (for YAML output). > To eliminate this warning, please install libyaml and reinstall your > ruby. > Building native extensions. This could take a while... > ERROR: Error installing ruby-libvirt: > ERROR: Failed to build gem native extension. > > /users/ankmaheshwari/.rvm/rubies/ruby-1.9.3-p194/bin/ruby > 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 > --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/ankmaheshwari/.rvm/rubies/ruby-1.9.3-p194/bin/ruby > --with-_libvirt-dir > --without-_libvirt-dir > --with-_libvirt-include > --without-_libvirt-include=${_libvirt-dir}/include > --with-_libvirt-lib > --without-_libvirt-lib=${_libvirt-dir}/lib > --with-libvirt-config > --without-libvirt-config > --with-pkg-config > --without-pkg-config > extconf.rb:53:in `
': libvirt not found (RuntimeError) > > > Gem files will remain installed in > /users/ankmaheshwari/.rvm/gems/ruby-1.9.3-p194/gems/ruby-libvirt-0.3.0 > for inspection. > Results logged to > > /users/ankmaheshwari/.rvm/gems/ruby-1.9.3-p194/gems/ruby-libvirt-0.3.0/ext/libvirt/gem_make.out > ncepspa244% > > > So please help me out to resole these issues.. > > -- > Posted via http://www.ruby-forum.com/. > > --0016e6dd867578dff704c1e03d8d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi!

This error usually means that you've not install= ed the development libraries. so in your case if it's centos system it = would be "libvirt-devel". if you are on debian based system just = search for the development library, and install it.=A0

Arun.

On Thu, Jun 7, = 2012 at 3:34 PM, ankush m. <lists@ruby-forum.com> wrote:<= br>
Hey guys,
=A0 =A0 =A0 =A0 =A0I am facing some issues while installing ruby-libvirt g= em on
my linux box.
these issues are as follows.


ncepspa244% gem install ruby-libvirt -v 0.3.0
/users/ankmaheshwari/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:= in
`<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your
ruby.
Building native extensions. =A0This could take a while...
ERROR: =A0Error installing ruby-libvirt:
=A0 =A0 =A0 =A0ERROR: Failed to build gem native extension.

=A0 =A0 =A0 =A0/users/ankmaheshwari/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. =A0Check the mkmf.log file for more
details. =A0You may need configuration options.

Provided configuration options:
=A0 =A0 =A0 =A0--with-opt-dir
=A0 =A0 =A0 =A0--with-opt-include
=A0 =A0 =A0 =A0--without-opt-include=3D${opt-dir}/include
=A0 =A0 =A0 =A0--with-opt-lib
=A0 =A0 =A0 =A0--without-opt-lib=3D${opt-dir}/lib
=A0 =A0 =A0 =A0--with-make-prog
=A0 =A0 =A0 =A0--without-make-prog
=A0 =A0 =A0 =A0--srcdir=3D.
=A0 =A0 =A0 =A0--curdir
=A0 =A0 =A0 =A0--ruby=3D/users/ankmaheshwari/.rvm/rubies/ruby-1.9.3-p194/b= in/ruby
=A0 =A0 =A0 =A0--with-_libvirt-dir
=A0 =A0 =A0 =A0--without-_libvirt-dir
=A0 =A0 =A0 =A0--with-_libvirt-include
=A0 =A0 =A0 =A0--without-_libvirt-include=3D${_libvirt-dir}/include
=A0 =A0 =A0 =A0--with-_libvirt-lib
=A0 =A0 =A0 =A0--without-_libvirt-lib=3D${_libvirt-dir}/lib
=A0 =A0 =A0 =A0--with-libvirt-config
=A0 =A0 =A0 =A0--without-libvirt-config
=A0 =A0 =A0 =A0--with-pkg-config
=A0 =A0 =A0 =A0--without-pkg-config
extconf.rb:53:in `<main>': libvirt not found (RuntimeError)


Gem files will remain installed in
/users/ankmaheshwari/.rvm/gems/ruby-1.9.3-p194/gems/ruby-libvirt-0.3.0
for inspection.
Results logged to
/users/ankmaheshwari/.rvm/gems/ruby-1.9.3-p194/gems/ruby-libvirt-0.3.0/ext/= libvirt/gem_make.out
ncepspa244%


So please help me out to resole these issues..

--
Posted via http://= www.ruby-forum.com/.




--0016e6dd867578dff704c1e03d8d--