Ruby on Rails Beta 3 Install on Snow Leopard - file not found

后端 未结 7 826
孤街浪徒
孤街浪徒 2020-12-16 11:53

I tried to install the new beta on my system with the command:

sudo gem install rails --pre

but no matter what I tried, I still get this da

7条回答
  •  眼角桃花
    2020-12-16 12:06

    Might be a different solution on your OS, but I got the same exact error in Ubuntu and creating a ¨lib¨ folder under the rails gem folder solved my problem. I have explained the solution in the following post:

    Installing Rails: "File not found: lib"

    For convenience I will copy it here as well. The solution:

    mkdir /lib/ruby/gems/1.8/gems/rails-{whatever your version is}/lib

    Explanation: The ¨[sudo] gem install rails¨ command expects the /lib folder (at the end) but for some reason it hasn´t been created yet.

    The original source of this solution was the following URL. Hope it helps!

    http://www.spritle.com/blogs/?p=915

提交回复
热议问题