本文介绍了如何编译的GnuTLS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图编译在CentOS 6.2,但没有运气的GnuTLS库几次。这些步骤如下:

我下载荨麻2.4

  [根@本地选择]#wget的http://www.lysator.liu.se/~niss​​e/archive/nettle-2.4.tar.gz
[根@本地荨麻-2.4]#焦油zxvf荨麻-2.4.tar.gz
[根@本地荨麻-2.4]#CD荨麻-2.4
[根@本地荨麻-2.4]#的./configure --enable-共享 - preFIX =的/ usr  版本:2.4荨麻
  主机类型:x86_64的未知-Linux的GNU
  ABI:64
  大会文件:x86_64的
  安装preFIX:在/ usr
  库文件目录:$ {exec_ preFIX} / lib64下
  编译器:GCC
  共享库:是
  公钥加密:无

我运行命令制作使安装

我下载了最新的GnuTLS

 的./configure --with-libnettle- preFIX =的/ usr黑金共享库的运行路径来源做...
检查是否使用荨麻......是的
检查libnettle ...没有
配置:错误:
  ***
  *** Libnettle 2.4没有被发现。

我是什么失踪?


解决方案

 配置:8798:检查libnettle
配置:8820:GCC -std = gnu99 -o conftest -g -O2 conftest.c /usr/lib/libnettle.so /usr/lib/libhogweed.so -lgmp>及5条
在/ usr /斌/劳工处:找不到-lgmp
collect2:劳工处返回1退出状态
配置:8820:$? = 1
配置:失败的程序为:
配置:8830:结果:无
配置:8856:错误:
  ***
  *** Libnettle 2.4没有被发现。

我安装GMP-DEVEL。这个问题是固定的。

I'm trying to compile GnuTLS library several times on Centos 6.2 but with no luck. These are the steps:

I downloaded Nettle 2.4

[root@localhost opt]# wget http://www.lysator.liu.se/~nisse/archive/nettle-2.4.tar.gz
[root@localhost nettle-2.4]# tar zxvf nettle-2.4.tar.gz
[root@localhost nettle-2.4]# cd nettle-2.4
[root@localhost nettle-2.4]# ./configure --enable-shared --prefix=/usr



  Version:           nettle 2.4
  Host type:         x86_64-unknown-linux-gnu
  ABI:               64
  Assembly files:    x86_64
  Install prefix:    /usr
  Library directory: ${exec_prefix}/lib64
  Compiler:          gcc
  Shared libraries:  yes
  Public key crypto: no

I run the command make and make install

I downloaded the latest GnuTLS

 ./configure --with-libnettle-prefix=/usr

hecking for shared library run path origin... done
checking whether to use nettle... yes
checking for libnettle... no
configure: error:
  ***
  *** Libnettle 2.4 was not found.

What am I missing?

Best wishes

解决方案
configure:8798: checking for libnettle
configure:8820: gcc -std=gnu99 -o conftest -g -O2   conftest.c  /usr/lib/libnettle.so /usr/lib/libhogweed.so -lgmp >&5
/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
configure:8820: $? = 1
configure: failed program was:
configure:8830: result: no
configure:8856: error: 
  ***
  *** Libnettle 2.4 was not found.

I install gmp-devel. The problem is fixed.

这篇关于如何编译的GnuTLS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 20:52