配置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
阅读(2203) | 评论(0) | 转发(0) |