M
Max Williams
Sorry if this is the wrong forum...
Previously i'd been using ubuntu in a VM in windows. Finally i've taken
the plunge and wiped windows completely and done a proper ubuntu
install. (which was the easiest OS install i've EVER done btw - no
driver hassles or anything).
Anyway, i'm trying to get everything set up again for my work (rails
dev). I've installed ruby and ruby-gems with apt. Now i'm trying to
get some more gems, but i keep getting this problem (for hpricot in this
case but i also had it with ferret).
Doing "gem list" gives me these:
Previously i'd been using ubuntu in a VM in windows. Finally i've taken
the plunge and wiped windows completely and done a proper ubuntu
install. (which was the easiest OS install i've EVER done btw - no
driver hassles or anything).
Anyway, i'm trying to get everything set up again for my work (rails
dev). I've installed ruby and ruby-gems with apt. Now i'm trying to
get some more gems, but i keep getting this problem (for hpricot in this
case but i also had it with ferret).
max@max-laptop:~$ sudo gem install hpricot
Select which gem to install for your platform (i486-linux)
1. hpricot 0.6 (jruby)
2. hpricot 0.6 (mswin32)
3. hpricot 0.6 (ruby)
4. hpricot 0.5 (ruby)
5. hpricot 0.5 (mswin32)
6. Skip this gem
7. Cancel installation
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 hpricot
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/hpricot-0.6 for >inspection.
Results logged to /var/lib/gems/1.8/gems/hpricot-0.6/ext/hpricot_scan/gem_make.out
Doing "gem list" gives me these: