AnEricZhang / git-osx-installer

Automatically exported from code.google.com/p/git-osx-installer
0 stars 0 forks source link

git clone https fails with error about incompatible libcurl.4.dylib #93

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download and install latest git (1.8.3.1)
2. git clone https://somepath
3.

What is the expected output? What do you see instead?

I expect it to clone the specified url.  Instead I get the following error:

dyld: Library not loaded: /usr/lib/libcurl.4.dylib
  Referenced from: /usr/local/git/libexec/git-core/git-remote-https
  Reason: Incompatible library version: git-remote-https requires version 6.0.0 or later, but libcurl.4.dylib provides version 5.0.0

What version of the product are you using? On what operating system?

I am using Mac OS X 10.6.8.  I downloaded and installed git-1.8.3.1

Please provide any additional information below.

I have tried earlier git packages and I get the same error.  I even downloaded, 
compiled, and installed a new libcurl and I still get the exact same message.  
When I run:

% otool -L /usr/local/lib/libcurl.4.dylib

I get:
/usr/local/lib/libcurl.4.dylib (compatibility version 8.0.0, current version 
8.0.0)
        /opt/local/lib/libidn.11.dylib (compatibility version 18.0.0, current version 18.2.0)
        /opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.2.0)
        /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 103.0.0)
        /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)

Original issue reported on code.google.com by nlch...@gmail.com on 14 Jun 2013 at 2:36

GoogleCodeExporter commented 8 years ago
Sorry, I have a typo above.
otool -L /usr/lib/libcurl.4.dylib
returns version 8.0.0, just as /usr/local/lib/libcurl.4.dylib

Original comment by nlch...@gmail.com on 14 Jun 2013 at 2:43

GoogleCodeExporter commented 8 years ago
I finally managed to solve my problem.  git was attempting to use a version of 
libcurl.4.dylib located inside the IDL 8.0 application, not the system version. 
 I have no idea why it was doing so, but reporting an error with the system 
version.  I removed the offending IDL libcurl.4.dylib file, and git now works 
fine.

Original comment by nlch...@gmail.com on 17 Jun 2013 at 9:39

GoogleCodeExporter commented 8 years ago

Original comment by timchar...@gmail.com on 29 Jun 2014 at 8:35