Error installing Ruby on Rails 4.0 - atomic_reference.c Error 71

前端 未结 2 1656
南方客
南方客 2020-12-20 21:06

I am getting an error when trying to install rails (or more specifically, atomic).

Building native extensions.  This could take a while... ERROR:  Error inst         


        
相关标签:
2条回答
  • 2020-12-20 21:23

    So, in my case what seems to be failing is that the Makefile has a INSTALL=./install and there is no ./install. I edited the Makefile to take out the ./ and then created a local spec with

    gem spec ../../../cache/atomic-1.1.14.gem --ruby > ../../../specifications/atomic-1.1.14.gemspec
    

    subsequent

    gem install rails
    

    succeeded, but no idea if this screwed up my rails instance.

    0 讨论(0)
  • 2020-12-20 21:41

    Had the very same problem, coming from that same tutorial. Got it to work following this post. Ran a few command to compare gemsets with the post but what seem to fix the problem was

    • gem update --system (without the "2.0.0" from tutorial, updated me to 2.0.3)
    • gem update
    • gem install rails (again without specifying the version)

    And finally it installed properly

    0 讨论(0)
提交回复
热议问题