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:in `require'
from extconf.rb:1:in `<main>'


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.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Javier Quarite at Dec 28, 2011 at 4:25 pm
    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.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Krishna P. at Dec 28, 2011 at 6:01 pm

    Javier Quarite 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.

    --
    Posted via http://www.ruby-forum.com/.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Francesca Krihely at Dec 30, 2011 at 3:45 pm
    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. wrote:

    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:in `require'
    from extconf.rb:1:in `<main>'


    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.

    --
    Posted via http://www.ruby-forum.com/.

    --
    You received this message because you are subscribed to the Google Groups
    "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.

    --
    *Francesca Krihely | **Community Marketing Manager | **10gen*
    *@francescapasha <http://twitter.com/francescapasha> |
    **@mongoDB<http://twitter.com/mongoDB>
    *
    *Skype: FrancescaMongoDB*
    *
    *
    *Mongo Boulder is happening February 1st! Join
    us<http://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 10gen.com/careers*

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Jason at Dec 31, 2011 at 2:07 am
    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 Dec 28, 2011, at 10:33 AM, Francesca Krihely wrote:

    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. wrote:
    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:in `require'
    from extconf.rb:1:in `<main>'


    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.

    --
    Posted via http://www.ruby-forum.com/.

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.




    --
    Francesca Krihely | Community Marketing Manager | 10gen
    @francescapasha | @mongoDB
    Skype: FrancescaMongoDB

    Mongo Boulder is happening February 1st! Join us or propose a talk
    We're hiring! Come build great things with us 10gen.com/careers

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Greg Akins at Dec 31, 2011 at 3:15 pm

    On Fri, Dec 30, 2011 at 9:06 PM, Jason 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 Akins
    http://twitter.com/akinsgre

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Phil Dobbin at Dec 31, 2011 at 3:50 pm

    On 31/12/11 15:15, "Greg Akins" wrote:
    On Fri, Dec 30, 2011 at 9:06 PM, Jason 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

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Raul Lopez at Jan 1, 2012 at 1:20 pm
    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ó:
    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. wrote:

    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:in `require'
    from extconf.rb:1:in `<main>'


    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.

    --
    Posted via http://www.ruby-forum.com/.

    --
    You received this message because you are subscribed to the Google
    Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to
    rubyonrails-talk@googlegroups.com
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.




    --
    *Francesca Krihely | **Community Marketing Manager | **10gen*
    *@francescapasha <http://twitter.com/francescapasha> | **@mongoDB
    <http://twitter.com/mongoDB>*
    *Skype: FrancescaMongoDB*
    *
    *
    /Mongo Boulder is happening February 1st! Join us
    <http://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 10gen.com/careers
    <http://10gen.com/careers>/

    --
    You received this message because you are subscribed to the Google
    Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.
    --
    Raul Lopez

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedDec 28, '11 at 4:23p
activeJan 1, '12 at 1:20p
posts8
users7
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2021 Grokbase