Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8325377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:24:59+00:00 2026-06-09T00:24:59+00:00

After going step by step (installed both ruby and rubygems properly) to install watir-webdriver,

  • 0

After going step by step (installed both ruby and rubygems properly) to install watir-webdriver, I am facing following error:

ERROR:  Error installing watir-webdriver:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- mkmf (LoadError)
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from extconf.rb:4:in `<main>'

Please help me resolve this and do let me know what made this happened?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:25:02+00:00Added an answer on June 9, 2026 at 12:25 am

    Not sure how you are installing ruby on your Ubuntu machine but may I recommend the Ruby Version Manager.

    https://rvm.io/

    this will allow you to install different versions of ruby on your machine and switch between them as well as gems etc.

    here is a quick guide I wrote for installing watir webdriver in Ubuntu via RVM:

    Ubuntu requires the use of a Ruby Version Manager. To do this we will need to first install both the Curl package and Git-core.

    To do this use the following command:

    sudo apt-get install curl git-core
    

    Upon success we will need to download the Ruby Version Manager application. This application allows us to install multiple versions of ruby as well as switch between. It also provides a Gem manger. Recommended to Google to read up on the commands and features within RVM. To install RVM use the following:

    bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) 
    

    We can also install packages within RVM and we will require the use of openSSL:

    rvm pkg install openssl
    

    Then installing Ruby itself:

    rvm install 1.9.3-p125 --with-openssl-dir=$rvm_path/usr
    

    Best to test this is all working with:

    irb
    

    When all clear we can install the Gem, we need to install it within the RVM with the follow:

    rvm do gem install watir-webdriver
    

    If installed correctly we should be able to use watir to drive firefox which is already installed on ubuntu.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After going through the effort of finally purging distro ruby packages from my Ubuntu
I am new to backbone and trying out my first app after going through
Something is puzzling me, after going through my app with instruments, it is a
I am using Lemonstand (an e-commerce CMS) and after going live with our site
Well looks too simple a question to be asked but i asked after going
Initially I had designed this flash based navigation menu for my website, after going
What is the best way to name variables which contain multiple words? After going
In my application, I present a modal view with a navigation controller. After going
What I am going after is to be able to do something like this
Is there any way to debug what is going on after my .NET code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.