hdinfo

MBA OSX lion 10.7.4 安装rails问题

  •  
  •   hdinfo · Jun 7, 2012 · 5062 views
    This topic created in 5102 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   ·   1275 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 17:25 · PVG 01:25 · LAX 10:25 · JFK 13:25
    ♥ Do have faith in what you're doing.