如何打包SoftEtherVPN

本文档详细介绍了如何使用Dockerfile在CentOS 7上构建SoftEtherVPN的环境。步骤包括从GitHub获取源码,安装必要的开发工具和库,设置环境变量,并进行编译构建。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

构建环境搭建

SoftEtherVPN地址:GitHub - SoftEtherVPN/SoftEtherVPN_Stable: Cross-platform multi-protocol VPN software. This repository is officially managed by Daiyuu Nobori, the founder of the project. Pull requests should be sent to the master repository at https://github.com/SoftEtherVPN/SoftEtherVPN.

SoftEtherVPN的构建环境搭建(Dockerfile):

FROM centos:7

RUN yum install -y epel-release.noarch \
    && yum update -y \
RUN yum -y groupinstall "Development Tools" \
    && yum install -y readline-devel ncurses-devel openssl-devel cmake3 gcc gcc-c++ make openssl11-devel libsodium-devel git \
    && rm -rf /usr/bin/cmake \
    && ln -s /usr/bin/cmake3  /usr/bin/cmake \
    && rm -rf /usr/include/openssl \
    && ln -s /usr/include/openssl11/openssl /usr/include/openssl \
    && rm -rf /usr/lib64/libcrypto.so \
    && ln -s /usr/lib64/openssl11/libcrypto.so /usr/lib64/libcrypto.so \
    && rm -rf /usr/lib64/libssl.so \
    && ln -s /usr/lib64/libssl.so.1.1.1g /usr/lib64/libssl.so 

ENV LDFLAGS="-L/usr/lib64/openssl11 -Wl,-rpath,/usr/lib64/openssl11"
ENV CFLAGS="-I/usr/include/openssl11/openssl"

构建

1、拉取代码:git clone GitHub - SoftEtherVPN/SoftEtherVPN_Stable: Cross-platform multi-protocol VPN software. This repository is officially managed by Daiyuu Nobori, the founder of the project. Pull requests should be sent to the master repository at https://github.com/SoftEtherVPN/SoftEtherVPN.

2、切换到代码目录:cd SoftEtherVPN

3、执行命令./configure

4、执行命令make -C build

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值