V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hdinfo

MBA OSX lion 10.7.4 安装rails问题

  •  
  •   hdinfo · Jun 7, 2012 · 4996 views
    This topic created in 5077 days ago, the information mentioned may be changed or developed.
    使用的是一键脚本,https://github.com/fenprace/laptop-china

    但是输入 rails -t

    提示:
    Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

    然后直接输入

    $ gem install rails

    等待片刻却出现:

    ERROR: While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.

    这个怎么解决。。。

    sudo,也提示没有写入权限。。

    这个怎么办??
    2 replies    1970-01-01 08:00:00 +08:00
    kaichen
        1
    kaichen  
    PRO
       Jun 7, 2012
    你看看当前的ruby是rvm装好的ruby吗?还有rvm的init脚本是否已经设置好了,执行一下rvm就能看到。
    hdinfo
        2
    hdinfo  
    OP
       Jun 8, 2012
    搞定了,重装了ruby,就ok了。。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2501 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 02:43 · PVG 10:43 · LAX 19:43 · JFK 22:43
    ♥ Do have faith in what you're doing.