V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hdinfo
V2EX  ›  Ruby on Rails

MBA OSX lion 10.7.4 安装rails问题

  •  
  •   hdinfo · 2012-06-07 21:21:22 +08:00 · 4124 次点击
    这是一个创建于 4312 天前的主题,其中的信息可能已经有所发展或是发生改变。
    使用的是一键脚本,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 条回复    1970-01-01 08:00:00 +08:00
    kaichen
        1
    kaichen  
       2012-06-07 21:40:29 +08:00
    你看看当前的ruby是rvm装好的ruby吗?还有rvm的init脚本是否已经设置好了,执行一下rvm就能看到。
    hdinfo
        2
    hdinfo  
    OP
       2012-06-08 01:11:54 +08:00
    搞定了,重装了ruby,就ok了。。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1029 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:29 · PVG 06:29 · LAX 15:29 · JFK 18:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.