[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Installing Ruby and Rails on Ubuntu

Mark Ericson

12/24/2005 3:04:00 AM

I've been following the instructions at:

http://claudio.cicali.org/article/74/how-to-install-ruby-on-rails-on-...

but unfortunately it fails during step 5.

When I attempt to run:

ruby extconf.rb

I get an error indicating it can't find the mkmf

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

Any thoughts?
5 Answers

Marcel Molina Jr.

12/24/2005 3:09:00 AM

0

On Sat, Dec 24, 2005 at 12:04:20PM +0900, Mark wrote:
> I've been following the instructions at:
>
> http://claudio.cicali.org/article/74/how-to-install-ruby-on-rails-on-...
>
> but unfortunately it fails during step 5.
>
> When I attempt to run:
>
> ruby extconf.rb
>
> I get an error indicating it can't find the mkmf
>
> extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
> from extconf.rb:1
>
> Any thoughts?

You will get the best and most timely Rails support on the Rails list:
http://lists.rubyonrails.org/mailman/list...

Debian splits up Ruby's standard library into some 34 packages which are not
installed by default. You need the mkmf library. Probably something like
libmkmf-ruby1.8.

You can get pointers on how to install all of Ruby from here:
http://wiki.rubyonrails.com/rails/pages/RailsOnUbuntuDebianTestingA...

marcel
--
Marcel Molina Jr. <marcel@vernix.org>


Stefan Mahlitz

12/24/2005 10:24:00 AM

0

Mark wrote:
> I've been following the instructions at:
>
> http://claudio.cicali.org/article/74/how-to-install-ruby-on-rails-on-...
>
> but unfortunately it fails during step 5.
>
> When I attempt to run:
>
> ruby extconf.rb
>
> I get an error indicating it can't find the mkmf
>
> extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
> from extconf.rb:1
>
> Any thoughts?

You have to install the ruby1.8-dev package.


Mark Ericson

12/24/2005 3:32:00 PM

0

Thank you! I asked here, rather than rails, because I hadn't even really
gotten to the rails step yet.

I had totally forgotten about the Debian ruby issues and also the fact that
Ubuntu is a Debian derivative.

On 12/23/05, Marcel Molina Jr. <marcel@vernix.org> wrote:

> You will get the best and most timely Rails support on the Rails list:
> http://lists.rubyonrails.org/mailman/list...
>
> Debian splits up Ruby's standard library into some 34 packages which are
> not
> installed by default. You need the mkmf library. Probably something like
> libmkmf-ruby1.8.
>
> You can get pointers on how to install all of Ruby from here:
>
> http://wiki.rubyonrails.com/rails/pages/RailsOnUbuntuDebianTestingA...
>
> marcel
> --
> Marcel Molina Jr. <marcel@vernix.org>
>
>

mitchell

12/24/2005 6:35:00 PM

0


Mark wrote:
> I've been following the instructions at:
>
> http://claudio.cicali.org/article/74/how-to-install-ruby-on-rails-on-...
>
> but unfortunately it fails during step 5.
>
> When I attempt to run:
>
> ruby extconf.rb
>
> I get an error indicating it can't find the mkmf
>
> extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
> from extconf.rb:1
>
> Any thoughts?

apt-get install rails

Mark Ericson

12/24/2005 9:40:00 PM

0

I've gotten a lot farther with the instructions at this URL

http://fo64.com/articles/2005/10/20/rails...

Everything seems to be installed, but apparantly Apache isn't wired up right
because it is browsing directories and trying to load the URL for the
controller returns a 404.

Note, I've been succesful with Rails on Windows I'm just forcing myself to
learn Linux.

- mark