Colin Law wrote in post #1155692:
> On 22 August 2014 06:58, Selvag Ruby <[email protected]> wrote:
>> Hi expects,
>> Please give a solution to this problem. I use Ubuntu.
>> ...
>> Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
>>
>>     /home/selvag/.rvm/rubies/ruby-2.0.0-p481/bin/ruby extconf.rb
>> checking for main() in -lIL... no
>> *** 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 are probably missing something that is required for building gems.
> In a terminal run
> sudo apt-get install build-essential bison openssl libreadline6
> libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev
> libyaml-dev libxml2-dev autoconf libc6-dev ncurses-dev automake
> libtool
>
> That is all one line.  See if that helps.
>
> Colin

Hi Colin, I've ran that line successfully. Then I got this error by this 
following command.

selvag@selvag:~$ sudo gem install devil
Building native extensions.  This could take a while...
ERROR:  Error installing devil:
  ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
checking for main() in -lIL... no
*** 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/ruby1.9.1
  --with-ILlib
  --without-ILlib


Gem files will remain installed in 
/var/lib/gems/1.9.1/gems/devil-0.1.9.5 for inspection.
Results logged to 
/var/lib/gems/1.9.1/gems/devil-0.1.9.5/ext/devil/gem_make.out

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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/05b130b023706a7ba08bf346f25b9a81%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to