...我已经相当仔细地看过了(我相信),在我的Mac上安装Git是不成功的。
由于各种原因,我正在运行Mac的10.6.8,并且不会很快改变它。
我已经收集并安装了这里公开的包:
https://help.github.com/articles/set-up-git
安装说明非常清楚,对我来说很明显已经安装了包。但是从命令行使用git客户端的任何尝试都会导致“非法指令”错误。
我已经非常仔细地筛选了这里提供的信息:
http://git-scm.com/book/en/Getting-Started-Installing-Git
似乎还有另一个捆绑包可用。它被称为“Mac1.7.5的GitHub,但它似乎需要MacOSX10.7或更高版本。
还有没有人遇到过这样的困难?我必须从源代码开始构建吗?
我花了几个小时来阅读和研究这项工作?有没有什么明显的东西是我没有考虑到的?
发布于 2014-04-11 02:03:17
是的,我也遇到过同样的问题,我所做的就是从这里安装了一个更早的版本:https://code.google.com/p/git-osx-installer/
我运行的是10.6.8,并在那里安装了最新的版本1.8.4.2
SourceForge只有1.9.0和1.8.5.2 http://sourceforge.net/projects/git-osx-installer/reviews?source=navbar
评论中的一些人说,他们对这两个版本都有问题,并返回到1.7。如果1.8.4.2不起作用,我会试一试。
至少,我能够运行配置命令而不会出现非法的指令错误。
发布于 2014-06-03 17:23:04
在运行git-scm建议的git安装程序后,我今天在Snow Leopard上看到了这个。真的很可怕。发现使用他们的old Snow Leopard package安装Macport,然后
sudo port install git +svn +doc +bash_completion +gitweb
安装git及其依赖项,git现在运行良好;版本1.9.3已安装,并在10.6.8上运行。
发布于 2014-10-29 22:15:12
我遇到了这个问题,并且能够使用Homebrew安装一个正常工作的版本。
# first uninstall the broken version
# mount the DMG for the broken version using Finder
# "type" this with the tab key! it saves typing and fixes the version number
cd /Volumes/Git\ 2.0.1\ Snow\ Leopard\ Intel\ Universal/
./uninstall.sh
# make bash forget about the uninstalled binary
hash -r
cd
# now install the working version
# assumes you have Homebrew installed
brew install git
git version
https://stackoverflow.com/questions/22892890
复制相似问题