在Mac OS X 10.5.8 = 3.2.25;如何安装的Bash&GT? [英] How do I install Bash >= 3.2.25 on Mac OS X 10.5.8?

查看:157
本文介绍了在Mac OS X 10.5.8 = 3.2.25;如何安装的Bash&GT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面迈克尔哈特尔的Rails的教程中,到目前为止,我已经安装了Git的1.7.5.4 x86_64的(我运行OSX 10.5.8),我尝试安装RVM

I'm following Michael Hartl's Rails tutorial, so far I've installed Git 1.7.5.4 x86_64 (I'm running OSX 10.5.8) and I'm trying to install rvm

在我运行以下命令:

$卷曲-kl get.rvm.io |庆典-s稳定

我得到:

BASH 3.2.25 required (you have 3.2.17(1)-release)

我试着改变壳,使用 CHSH -s /选择/ local / bin目录/ bash的,但我得到壳'的/ opt / local / bin目录/ bash的'不存在

不知道从哪里何去何从但我AP preciate任何指导。谢谢!

Not sure where to go from here but I'd appreciate any guidance. Thanks!

推荐答案

家酿一般比MacPorts的更好一点,因为它不需要大量的须藤行动。下面是指导我升级我的安装的bash的文章:的http://concisionandconcinnity.blogspot.com/2009/03/upgrade-bash-to-40-in-mac-os-x.html

Homebrew is generally a bit nicer than MacPorts, as it doesn't require lots of sudo action. Here's an article that guided me to upgrading my install of bash: http://concisionandconcinnity.blogspot.com/2009/03/upgrade-bash-to-40-in-mac-os-x.html

至于步骤:


  1. 家酿(一定要按照说明进行操作)

  1. Install Homebrew (be sure to follow its instructions)

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"


  • 安装使用Git的家酿(这可以让你保持自制公式最新容易)

  • Install Git using Homebrew (this lets you keep Homebrew formulæ up to date easily)

    brew install git
    


  • 更​​新家酿的的formulæ:

  • Update Homebrew's formulæ:

    brew update
    


  • 现在安装庆典

    brew install bash
    


  • 将此庆典的安装到允许炮弹列表:

  • Add this install of bash to the allowed shells list:

    sudo bash -c "echo /usr/local/bin/bash >> /private/etc/shells"
    


    • 家酿安装的东西的/ usr /本地/库/ ,然后符号链接做任何二进制文件的/ usr / local / bin目录,所以你现在得到的最新庆典坐在的/ usr / local / bin目录/ bash的

      • Homebrew installs things to /usr/local/Cellar/, then symlinks any binaries to /usr/local/bin, so you've now got the latest bash sitting at /usr/local/bin/bash
      • 最后,改变你的shell来使用这个新的:

        Finally, change your shell to use this new one:

        chsh -s /usr/local/bin/bash
        


      • 打开一个新的终端窗口/选项卡,并运行这些命令来仔细检查你的工作:

      • Open a new terminal window/tab, and run these commands to double-check your work:

        $ echo $SHELL
        /usr/local/bin/bash
        $ echo $BASH_VERSION
        4.2.37(2)-release
        


      • 这篇关于在Mac OS X 10.5.8 = 3.2.25;如何安装的Bash&GT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆