【问题标题】:gnutls configure error: checking for libgcrypt... nognutls 配置错误:检查 libgcrypt... 否
【发布时间】:2013-01-08 13:59:37
【问题描述】:

我配置并编译了 libgpg-error 和 libgcrypt 但由于我没有 root 权限而无法安装(make install)。
当我尝试配置 libgnutls 时,出现此错误。

tactuser@eqhttd01:gnutls-2.10.0 >./configure --with-libgcrypt-prefix=/home/tactuser/Mail/vmime/TLS/libgcrypt-1.5.0/src/
    checking for libgcrypt... no 
    configure: error: 
    libgcrypt was not found. You may want to get it from ftp://ftp.gnupg.org/gcrypt/libgcrypt/

config.log 中,我发现以下错误:

configure:7781: checking for libgcrypt

configure:7803: gcc -std=gnu99 -o conftest -g -O2   conftest.c  -lgcrypt -lgpg-error >&5

conftest.c:27:20: error: gcrypt.h: No such file or directory

conftest.c: In function 'main':
conftest.c:31: error: variable 'i' has initializer but incomplete type

conftest.c:31: error: 'GCRY_CIPHER_CAMELLIA128' undeclared (first use in this function)

conftest.c:31: error: (Each undeclared identifier is reported only once

conftest.c:31: error: for each function it appears in.)

conftest.c:31: error: storage size of 'i' isn't known

configure:7803: $? = 1

有人可以帮忙吗?

【问题讨论】:

    标签: linux compilation libgcrypt vmime gnutls


    【解决方案1】:

    尝试编译并安装libgcrypt,如果不起作用,请尝试使用与gnutls 2.10.0(同时发布)兼容的libgcrypt版本。

    【讨论】:

    • 我编译了 libgcrypt 但没有安装的 root 权限。它在路径 /home/tactuser/Mail/vmime/TLS/libgcrypt ,我在配置 gnutls 和 with-libgcrypt 时给出了相同的-prefix 但仍然没有运气。
    • 好吧,如果你没有权限安装在任何永久目录,安装在/tmp。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-19
    • 1970-01-01
    • 2021-12-02
    • 2016-12-30
    相关资源
    最近更新 更多