我从http://code.google.com/p/git-osx-installer/downloads/list?can=3下载了git并下载了“Git Installer 1.7.3.5 - OS X - Leopard - x86_64”软件包。
更新1: 软件包的内容如下: - README.txt - git-1.7.3.5-x86_64-leopard.pkg - setup git PATH for non-terminal programs.sh - uninstall.sh
当我执行 "setup git PATH for non-terminal programs.sh"时,我会收到以下消息:
"No change to PATH in ~/.MacOSX/environment.plist ~ /Volumes/Git 1.7.3.5 x86_64 Leopard /Volumes/Git 1.7.3.5 x86_64 Leopard -MacBook-Pro:Git 1.7.3.5 x86_64 Leopard$ $PATH -bash: /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec: No such file or directory"
更新2: 我的配置文件的内容如下:
# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
git
可执行文件确切位置在哪里? - mikutcsh
,但它不使用.profile
文件(而是使用.login
),这可能导致路径未设置。 - Jonathan Leffler