Forum: Ruby on Rails error installing rcov gem on ubuntu 7.1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Eab99b42f403a58b98516438ee2f0386?d=identicon&s=25 Ikenna Nwaiwu (Guest)
on 2008-11-13 12:36
(Received via mailing list)
I am running Ubuntu 7.1 and getting the following error when trying to
install rcov. What do i do?


dev@localhost:~$ sudo gem install rcov
Select which gem to install for your platform (i486-linux)
 1. rcov 0.8.1.2.0 (mswin32)
 2. rcov 0.8.1.2.0 (ruby)
 3. rcov 0.8.1.1.0 (ruby)
 4. rcov 0.8.1.1.0 (mswin32)
 5. Skip this gem
 6. Cancel installation
> 2
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

ruby extconf.rb install rcov
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
    from extconf.rb:1


Gem files will remain installed in /var/lib/gems/1.8/gems/rcov-0.8.1.2.0
for
inspection.
Results logged to
/var/lib/gems/1.8/gems/rcov-0.8.1.2.0/ext/rcovrt/gem_make.out

dev@localhostt:~$


--
Ikenna C. Nwaiwu
Linkedin: Ikenna Nwaiwu
Eab99b42f403a58b98516438ee2f0386?d=identicon&s=25 Ikenna Nwaiwu (Guest)
on 2008-11-13 12:40
(Received via mailing list)
No worries. Was able to get it to work with
sudo apt-get install rcov

Cheers
Ikenna

---------- Forwarded message ----------
From: Ikenna Nwaiwu <ikenna4u@gmail.com>
Date: Thu, Nov 13, 2008 at 10:42 AM
Subject: error installing rcov gem on ubuntu 7.1
To: rubyonrails-talk@googlegroups.com




I am running Ubuntu 7.1 and getting the following error when trying to
install rcov. What do i do?


dev@localhost:~$ sudo gem install rcov
Select which gem to install for your platform (i486-linux)
 1. rcov 0.8.1.2.0 (mswin32)
 2. rcov 0.8.1.2.0 (ruby)
 3. rcov 0.8.1.1.0 (ruby)
 4. rcov 0.8.1.1.0 (mswin32)
 5. Skip this gem
 6. Cancel installation
> 2
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

ruby extconf.rb install rcov
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
    from extconf.rb:1


Gem files will remain installed in /var/lib/gems/1.8/gems/rcov-0.8.1.2.0
for
inspection.
Results logged to
/var/lib/gems/1.8/gems/rcov-0.8.1.2.0/ext/rcovrt/gem_make.out

dev@localhostt:~$


--
Ikenna C. Nwaiwu
Linkedin: Ikenna Nwaiwu
134ea397777886d6f0aa992672a50eaa?d=identicon&s=25 Mark Thomas (Guest)
on 2008-11-13 22:01
(Received via mailing list)
I think the recommended way is to do the following

sudo apt-get install build-essential

Then install gems the normal way. Otherwise you will be dependent on
ubuntu repositories for all your gems with native extensions, and you
may be stuck a few versions behind (or completely without -- is
Nokogiri, for example, available at all yet?)

-- Mark.
This topic is locked and can not be replied to.