Error occurs when trying to install Homebrew on a Mac for Ruby on Rails

前端 未结 4 775
迷失自我
迷失自我 2021-01-25 15:40

I am trying to install Homebrew on my mac with OS 10.8.5 and I am getting an error.

I enter the following into terminal:

    ruby -e \"$(curl -fsSkL raw.         


        
相关标签:
4条回答
  • 2021-01-25 16:22

    This worked for me

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
    0 讨论(0)
  • 2021-01-25 16:25

    First i tried this: It was solved by removing line eval

      $(rbenv init -)
    

    in my ~/.bash_profile. It didn't work for me.

    So I Removed the .rbenv in the /users/ur-username/ path. To remove it you can use this command.

     $rm -Rf .rbenv
    

    Then go ahead and run the install script. This worked for me.

    0 讨论(0)
  • 2021-01-25 16:31

    I have solved this issue. It was a whitespace issue in my application.yml file. I did not format this file correctly as YAML is whitespace sensitive unlike Ruby. Once the file was formatted using tabs or double spaces the rails server worked again.

    0 讨论(0)
  • 2021-01-25 16:40

    It looks like you're not using the system ruby, but a ruby via rbenv which you installed via homebrew. Try:

    /usr/bin/ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)"
    
    0 讨论(0)
提交回复
热议问题