Unable to install rails

Hello all,
I am stuck and I need your help. I tried to install rails and got the
mkmf error. I installed ruby1.8-dev and I am still getting the same
error.

Rails install error:

root@localhost:~# gem install rails
Building native extensions. This could take a while…
ERROR: Error installing rails:
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:inrequire’
from extconf.rb:1:in `’

Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.6.4
for inspection.
Results logged to
/var/lib/gems/1.9.1/gems/json-1.6.4/ext/json/ext/parser/gem_make.out

Proof of ruby1.8-dev installation

root@localhost:~# apt-get install ruby1.8-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
ruby1.8-dev is already the newest version.
The following packages were automatically installed and are no longer
required:
libactionmailer-ruby1.8 linux-headers-2.6.35-25-server
libcmdparse2-ruby1.8
libtext-format-ruby1.8 libtmail-ruby1.8 libmocha-ruby1.8
libactivesupport-ruby1.8 libredcloth-ruby1.8 libjs-prototype
libmemcache-client-ruby1.8 linux-headers-2.6.35-22-server
libactionpack-ruby1.8 libactiveresource-ruby1.8 libsqlite3-ruby1.8
liblog4r-ruby1.8 libbuilder-ruby1.8 libncurses-ruby1.8
linux-headers-2.6.35-23-server librack-ruby libtzinfo-ruby1.8
linux-headers-2.6.35-22 linux-headers-2.6.35-23
linux-headers-2.6.35-24
linux-headers-2.6.35-25 linux-headers-2.6.35-27 libdaemons-ruby1.8
linux-headers-2.6.35-27-server libactiverecord-ruby1.8 librack-ruby1.8
wwwconfig-common rubygems1.8 linux-headers-2.6.35-24-server
libjs-jquery
libi18n-ruby1.8 javascript-common
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.

Have you tried installing rvm?

It may not be easy but it will handle your ruby versions (that seems to
be
the problem)

Javier Q.

Javier Q. wrote in post #1038456:

Have you tried installing rvm?

It may not be easy but it will handle your ruby versions (that seems to
be
the problem)

Javier Q.

I just did that and it resolve the issues. Thanks.

Try using Sudo

Also, Xcode could be out of date re: this problem (
http://railsforum.com/viewtopic.php?id=22116)

On Wed, Dec 28, 2011 at 11:22 AM, Krishna P. [email protected]
wrote:

   ERROR: Failed to build gem native extension.

Results logged to
ruby1.8-dev is already the newest version.
linux-headers-2.6.35-22 linux-headers-2.6.35-23
Posted via http://www.ruby-forum.com/.


*Francesca Krihely | **Community Marketing Manager | *10gen
*@francescapasha http://twitter.com/francescapasha |
**@mongoDBhttp://twitter.com/mongoDB
*
Skype: FrancescaMongoDB
*
*
Mongo Boulder is happening February 1st! Join
ushttp://www.10gen.com/events/mongo-boulder
or propose a talk http://www.10gen.com/talk-proposal

We’re hiring! Come build great things with us MongoDB Careers | MongoDB

On Fri, Dec 30, 2011 at 9:06 PM, Jason [email protected] wrote:

My recommendation is to use rails ready, I used it the other day when
setting up my MacBook and was really excited with the results.

https://github.com/joshfng/railsready

Does railsready use RVM? I’ve followed the RVM instructions on a
couple machines and never had any problems installing RoR on a Mac.


Greg A.
http://twitter.com/akinsgre

My recommendation is to use rails ready, I used it the other day when
setting up my MacBook and was really excited with the results.

https://github.com/joshfng/railsready

Sent from my iPad

On 31/12/11 15:15, “Greg A.” [email protected] wrote:

On Fri, Dec 30, 2011 at 9:06 PM, Jason [email protected] wrote:

My recommendation is to use rails ready, I used it the other day when
setting up my MacBook and was really excited with the results.

https://github.com/joshfng/railsready

Does railsready use RVM? I’ve followed the RVM instructions on a
couple machines and never had any problems installing RoR on a Mac.

From a quick look at the link, it also gives you Homebrew (not a good
idea
if have MacPorts/fink installed) & it is recommended to run it on a
fresh
install of the OS. There is an rvm option.

Bit over the top for my liking…

Cheers,

Phil...


Nothing to see here… move along, move along

The error message refer version 1.9.1

I suggest install version 1.9.2 using rvm.

Raul

El 28/12/2011 02:33 p.m., Francesca Krihely escribi:

Hello all,

/var/lib/gems/1.9.1/gems/json-1.6.4/ext/json/ext/parser/gem_make.out
The following packages were automatically installed and are no longer
linux-headers-2.6.35-24

http://groups.google.com/group/rubyonrails-talk?hl=en.

To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Raul Lopez