[Ruby + Selenium] Fail to install selenium

81 views
Skip to first unread message

ra cras

unread,
Mar 14, 2014, 11:54:28 AM3/14/14
to seleniu...@googlegroups.com
Hi,

I'm trying install the selenium with the fallowing command:

gem install selenium-webdriver



But, appears this error: 

Building native extensions.  This could take a while...
ERROR:  Error installing selenium-webdriver:
ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:4:in `<main>'


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



Why?

Dariya Amrut

unread,
May 1, 2015, 12:46:57 AM5/1/15
to seleniu...@googlegroups.com
Hi, 

Even i have same problem. Could you please help to get rid of this. 

Sachin Parmar

unread,
Mar 28, 2016, 8:51:26 AM3/28/16
to Selenium Users
I had the same issue when I was trying to install selenium-webdriver on my Ubuntu 14.04.

Try following, it should work.

Step 1: sudo apt-get install ruby-all-dev

Step 2: sudo gem install selenium-webdriver

All the best
Reply all
Reply to author
Forward
0 new messages