在Fedora Linux上安装Watir-Web驱动程序

时间:2021-12-15 19:36:42

I'm trying to install watir-webdriver by using gem install watir-webdriver on Linux. I have installed ruby 1.8.6, activesupport 2.3.8 as well as firewatir. However, when I try to install watir-webdriver, I get the following error:

我正在尝试通过在Linux上使用gem安装watir-webdriver来安装watir-webdriver。我已经安装了ruby 1.8.6、activesupport 2.3.8和firewatir。然而,当我尝试安装watir-webdriver时,我得到了以下错误:

Building native extensions.  This could take a while...
ERROR:  Error installing watir-webdriver:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
can't find header files for ruby.

(btw, for a bit of context - I'm a complete Linux newbie)

(顺便说一句,我是一个完全的Linux新手)

1 个解决方案

#1


3  

Assuming you installed ruby with yum, you'll need the rpm for development headers.

假设您使用yum安装了ruby,那么您将需要用于开发头的rpm。

sudo yum install ruby-devel

and try again.

并再次尝试。

#1


3  

Assuming you installed ruby with yum, you'll need the rpm for development headers.

假设您使用yum安装了ruby,那么您将需要用于开发头的rpm。

sudo yum install ruby-devel

and try again.

并再次尝试。