yadgen
V2EX  ›  macOS

os x 10.11 编译安装 git,出现头文件找不到

  •  
  •   yadgen · Oct 9, 2015 · 2454 views
    This topic created in 3911 days ago, the information mentioned may be changed or developed.

    编译命令:
    sudo make prefix=/usr install install-doc install-html install-info

    报错信息:
    CC credential-store.o
    In file included from credential-store.c:1:
    In file included from ./cache.h:4:
    ./git-compat-util.h:270:10: fatal error: 'openssl/ssl.h' file not found

    include <openssl/ssl.h>

    ^
    

    1 error generated.
    make: *** [credential-store.o] Error 1

    升级了 os x 10.11 ,/usr/include 目录没有了,通过 xcode-select install 已经安装。
    自己也重新编译了 openssl ,路径存放地址 /usr/local/ssl/bin/openssl

    yadgen
        1
    yadgen  
    OP
       Oct 9, 2015
    没人知道吗?
    xiaoyao9933
        2
    xiaoyao9933  
       Oct 9, 2015
    你把头文件拷到 /usr/local/include/ 下试过么?头文件查找路径里怎么回去 bin 这种地方找?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5376 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 07:50 · PVG 15:50 · LAX 00:50 · JFK 03:50
    ♥ Do have faith in what you're doing.