Yasin
Yasin

Reputation: 377

Failed to build gem native extension

I want to install in my Fedora 12 based planet lab nodes one OMF RC: It requres ruby 1.9.3. So, I installed git, then ruby-devel then rvm. With rvm i installed:

rvm install 1.9.3

After all this when i want to install:

gem install omf_rc --pre --no-ri --no-rdoc

It gives me the following error:

Building native extensions. This could take a while...

ERROR: Error installing omf_rc:

ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb

checking for libxml/parser.h... * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers

Please let me know how to solve this. Thanks

Upvotes: 2

Views: 5994

Answers (2)

Yasin
Yasin

Reputation: 377

Also it needs the following installation:

sudo yum install -y git make gcc-c++ 

and

sudo yum groupinstall development-tools development-libs

Upvotes: 1

Said Kaldybaev
Said Kaldybaev

Reputation: 9992

seems you need to install libxml, try:

sudo yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel

Upvotes: 2

Related Questions