Error running 'requirements_osx_brew_libs_install…' on Mac 10.7

前端 未结 8 1191
陌清茗
陌清茗 2020-12-28 12:31

Trying to install brew on a last generation Macbook Pro and keep getting the following error:

Error running \'requirements_osx_brew_libs_install autoconf

相关标签:
8条回答
  • 2020-12-28 13:11

    Looks like a package you are trying to pull might be unreachable. I am seeing the same error and the log file shows an error trying to download http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz which I can confirm is currently unreachable via wget:

    --2013-05-13 21:09:52-- (try: 2) http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz Connecting to pyyaml.org|70.87.222.22|:80... connected. HTTP request sent, awaiting response... Read error (Operation timed out) in headers. Retrying.

    Also confirming that pyyaml.org is unreachable for me.

    0 讨论(0)
  • 2020-12-28 13:12

    Ran into a similar issue with MacOS High Sierra and this thread was super helpful. Ended here after running brew install gcc49 from here then had to run brew upgrade automake and brew upgrade coreutils I already had this installed and my X-code was up todate.

    0 讨论(0)
  • 2020-12-28 13:13

    The log file that this error tells you to check has this info:

    There were package installation errors, make sure to read the log.

    Try brew tap --repair and make sure brew doctor looks reasonable.

    Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation

    After running brew tap --repair, rvm was able to auto install the missing dependencies via homebrew and install my ruby without problems. no need to manually install each package or anything else.

    0 讨论(0)
  • 2020-12-28 13:14

    You have to install these dependences manually, try

    brew install automake

    if it gives you error of missing link of automake something like this

    You must `brew link autoconf' before automake can be installed

    then try these commands

    brew link --overwrite --dry-run autoconf

    brew link --overwrite autoconf

    brew install automake

    it will install automake and then you can try again to install ruby.

    0 讨论(0)
  • 2020-12-28 13:16

    One simple solution: install Xcode Command Line Tools.

    xcode-select --install
    

    Hope this helps.

    0 讨论(0)
  • 2020-12-28 13:33

    Had similar issues on a new OS X Mountain Lion install.

    Followed tutorial http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ until step 6 when I got this error. Also checked log file which didn't indicate exact problem.

    Decided to verify if RVM had installed.

    type rvm | head -1
    

    Didn't show rvm as being 'sourced'. So, opened new terminal to check. Sure enough, new terminal returned rvm is a function. So, closed older terminal session & re-copied install rvm script into new terminal.

    \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable

    After this, all went well. Did not do any manual installs. One slight detour I took was to brew install pkg-config after reading the post Error installing any ruby version with RVM on OSX just before running the above curl command again - this was likely unnecessary too.

    Then,

    rvm use 2.0.0 --default
    

    You might get a message:

    >A RVM version 1.20.11 (stable) is installed yet 1.20.10 (stable) is loaded.
    Please do one of the following:
      * 'rvm reload'
      * open a new shell
      * 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.
      * 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.
    

    Type dvm reload or one of the other options. Verify with dvm -v, ruby -v

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