Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile

后端 未结 2 1457
走了就别回头了
走了就别回头了 2020-12-06 05:58

I have seen a number of posts on this before and have followed their instructions but nothing is working. I\'ll outline below what I have done, and the instructions I have f

相关标签:
2条回答
  • 2020-12-06 06:41

    Not sure I did it the 'correct' way, but I just removed RVM (rvm implode) and then reinstalled it (\curl -L https://get.rvm.io | bash -s stable --ruby) and it installed and is now running the latest version of ruby 1.9.3-p327 no problem.

    0 讨论(0)
  • 2020-12-06 06:48

    This is a bug in RailsInstaller OSX 1.0.3 - https://github.com/railsinstaller/railsinstaller-nix/issues/10

    you need to change /etc/rvmrc to contain this:

    umask g+w
    export -a rvm_configure_env
    rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')
    

    I will prepare new version of the installer when binary ruby is available for 2.0.0.

    UPDATE: for new version of RVM 1.19+ /etc/rvmrc should be changed to:

    umask g+w
    export rvm_autolibs_flag=smf
    

    And run rvm get stabel #OR: head

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