1

今天更新 Macports 后

$ sudo port upgrade

Git 无法推送

$ git push
OpenSSL version mismatch. Built against 1000005f, you have 1000100f
fatal: The remote end hung up unexpectedly

$ ssh -version
OpenSSH_5.9p1, OpenSSL 1.0.1 14 Mar 2012
Bad escape character 'rsion'.

$ uname -a
Darwin foobar.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

还有谁?如何快速解决这个问题?(这阻止了我做有用的工作。)

编辑:回滚git-coreopen-ssl端口后出现的错误:

$ port installed git-core openssh
Warning: port definitions are more than two weeks old, consider using selfupdate
The following ports are currently installed:
  git-core @1.7.5.1_0+doc+python27
  git-core @1.7.5.2_0+doc+python27
  git-core @1.7.7_0+doc+pcre+python27
  git-core @1.7.7.4_0+doc+pcre+python27
  git-core @1.7.9.2_1+credential_osxkeychain+doc+pcre+python27 (active)
  git-core @1.7.9.4_0+credential_osxkeychain+doc+pcre+python27
  openssh @5.8p1_0 (active)
  openssh @5.9p1_0
$ git push
OpenSSL version mismatch. Built against 1000004f, you have 1000100f
fatal: The remote end hung up unexpectedly
4

2 回答 2

2

sudo port deactivate、和可能的端口,以及openssl旧版本。(看到这些旧版本。)虽然我认为这已经被修复了;你是第一个吗?opensshgit-coresudo port activateport installed openssl git-core opensshport selfupdate

于 2012-04-26T01:25:46.430 回答
1

尝试更新您的 openssh(git 正在使用)。

$ sudo 端口升级 openssh

我发现在这个线程的最后: 安装 git-core (to upgrade OpenSSL) 会导致错误

于 2012-05-08T09:12:20.090 回答