Error while installing Nokogiri (1.6.7) on El Capitan

前端 未结 8 1874
执笔经年
执笔经年 2020-12-07 16:59

One of my developers have updated Nokogiri, and when pulling the updated Gemfile my bundle install fails.

➜  my-project git:(master) bundle inst         


        
8条回答
  •  -上瘾入骨i
    2020-12-07 17:13

    The following steps worked for me

    ruby -v
    ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
    
    Run the following to install RVM and the latest stable version of Ruby:
    \curl -L https://get.rvm.io | bash -s stable --ruby
    
    Install the Ruby interpreter:
    
    rvm install 2.1.0 --autolibs=enable
    
    After that's finished installing, run:
    
    source /Users/{your_user_name}/.rvm/scripts/rvm
    Run:
    
    ruby -v
    ruby 2.1.0p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
    
    
    ==> sudo gem install bundler
    Fetching: bundler-1.14.6.gem (100%)
    Successfully installed bundler-1.14.6
    Parsing documentation for bundler-1.14.6
    Installing ri documentation for bundler-1.14.6
    Done installing documentation for bundler after 4 seconds
    1 gem installed
    

提交回复
热议问题