Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4229863
  • 博文数量: 447
  • 博客积分: 1241
  • 博客等级: 中尉
  • 技术积分: 5786
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-27 06:48
个人简介

读好书,交益友

文章分类

全部博文(447)

文章存档

2024年(1)

2023年(5)

2022年(29)

2021年(49)

2020年(16)

2019年(15)

2018年(23)

2017年(67)

2016年(42)

2015年(51)

2014年(57)

2013年(52)

2012年(35)

2011年(5)

分类: LINUX

2021-02-07 11:30:08

配置gmssl
./config --prefix=/usr/local/gmssl --openssldir=/usr/local/gmssl no-shared
运行make 
make install

编译strongswan
创建目录
sudo mkdir  /ipsec
sudo mkdir -p /ipsec/etc/swanctl/
sudo mkdir -p /ipsec/etc/strongswan.d/charon/
sudo mkdir -p /ipsec/etc/swanctl/conf.d/
sudo mkdir -p /ipsec/etc/swanctl/x509ca
sudo mkdir -p /ipsec/etc/swanctl/x509
sudo mkdir -p /ipsec/etc/swanctl/private

sudo chmod 777 /ipsec

配置指令 
./configure --prefix=/ipsec --sysconfdir=/ipsec/etc --enable-kernel-libipsec  --disable-openssl  --disable-mysql --disable-ldap --disable-gmp     --enable-eap-mschapv2 --enable-eap-aka --enable-eap-aka-3gpp2  --enable-eap-gtc --enable-eap-identity --enable-eap-md5 --enable-eap-peap --enable-eap-radius --enable-eap-sim --enable-eap-sim-file --enable-eap-simaka-pseudonym --enable-eap-simaka-reauth --enable-eap-simaka-sql --enable-eap-tls --enable-eap-tnc --enable-eap-ttls  CFLAGS="-g -O2 -Wall -Wno-pointer-sign -Wno-format-security -Wno-format -mno-ms-bitfields -I/usr/local/gmssl/include" LDFLAGS="-L/usr/local/gmssl/lib"./configure --prefix=/ipsec  --sysconfdir=/etc  --disable-gmp --disable-openssl  --disable-mysql --disable-ldap      --enable-eap-mschapv2 --enable-eap-aka --enable-eap-aka-3gpp2  --enable-eap-gtc --enable-eap-identity --enable-eap-md5 --enable-eap-peap --enable-eap-radius --enable-eap-sim --enable-eap-sim-file --enable-eap-simaka-pseudonym --enable-eap-simaka-reauth --enable-eap-simaka-sql --enable-eap-tls --enable-eap-tnc --enable-eap-ttls --enable-gmalg --with-gmalg_interior=yes CFLAGS="-g -O2 -Wall -Wno-pointer-sign -Wno-format-security -Wno-format -mno-ms-bitfields -I/usr/local/gmssl/include" LDFLAGS="-L/usr/local/gmssl/lib"
运行make
make install
./configure --prefix=/ipsec --enable-kernel-libipsec --enable-gmalg --disable-openssl   --disable-gmp --with-gmalg_interior=yes CFLAGS="-g -O2 -Wall -Wno-pointer-sign -Wno-format-security -Wno-format -mno-ms-bitfields -I/usr/local/gmssl/include" LDFLAGS="-L/usr/local/gmssl/lib"

运行make 
出现
./crypto/proposal/proposal_keywords_static.txt > crypto/proposal/proposal_keywords_static.c
缺少gperf所致
sudo apt-get update
sudo apt-get install gperf


出现undefined reference to `proposal_get_token_static' 因为运行make clean 并没有删除初始化的make文件,
运行make maintainer-clean


出现configure: error: GNU Multi Precision library gmp not found
安装gmp库
apt-get -y install libgmp3-dev

出现
./configure: line 19902: syntax error near unexpected token `soup,'
./configure: line 19902: ` PKG_CHECK_MODULES(soup, libsoup-2.4)'




sudo apt install libsoup2.4-dev
pkg-config --modversion libsoup-2.4
运行
sudo ldconfig
sudo updatedb
locate libsoup-2.4.pc
显示文件的位置
运行 pkg-config --modversion libsoup-2.4
测试是否成功
然后重新运行autogen.sh


出现
/bin/bash ../../ylwrap settings/settings_parser.y y.tab.c settings/settings_parser.c y.tab.h `echo settings/settings_parser.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output settings/settings_parser.output -- yacc -v -d 
../../ylwrap: line 176: yacc: command not found


sudo apt-get install flex bison

阅读(2197) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~