嗨,我正试着安装64位的libssh2。我使用以下代码进行安装:
cd libssh2-1.4.3/
export CFLAGS="-mabi=64 -march=mips64r2"
./configure --with-libz --with-libgcrypt --with-libz-prefix=`pwd`/../../support__
libs/libs/zlib/ --with-libgcrypt-prefix=`pwd`/../../support_libs/``libs/extra --wii
thout-libssl-prefix --prefix=`pwd`/../../support_libs/libs/extra_2
make && make install如果不使用“导出CFLAGS="-mabi=64 -march=mips64r2,它将编译32位的二进制文件,而我对64位使用#导出,则会给出以下配置错误:
checking for libgcrypt... no
configure: error: cannot find OpenSSL or Libgcrypt,
try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
make: *** No targets specified and no makefile found.发布于 2014-06-13 09:06:52
你具体说明:
--with-libgcrypt-prefix=`pwd`/../../support_libs/``libs/extra这里有不必要的双引号:库。即使他们不应该打破这条路,你也不需要他们。
确保您指定的目录具有Libgcrypt库的正确版本,因为配置脚本抱怨它找不到它。
https://serverfault.com/questions/604852
复制相似问题