环境以及使用的工具
公网主机: Alibaba Cloud Linux 3.2104 LTS 64位
内网主机: Windows 11
工具: rathole
内网穿透
略,后面找个时间写
问题解决
openssl
从 Release 中下载对应的包,解压,编写配置文件,准备执行发现报错
[root@ali rathole-linux]# ./rathole server.toml
./rathole: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
应该是openssl的问题,于是去安装openssl 3,安装可以参考下这篇文章
在 Rocky/Alma/CentOS/RHEL 8 上安装 OpenSSL 3.x
然后再创建软链接
ln -s /usr/local/openssl/lib64/libssl.so.3 /usr/lib64/libssl.so.3
ln -s /usr/local/openssl/lib64/libcrypto.so.3 /usr/lib64/libcrypto.so.3
ldconfig
安装 GLIBC
接下来出现了新的报错
[root@ali rathole-linux]# ./rathole server.toml
./rathole: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by ./rathole)
./rathole: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./rathole)
不建议升级Glibc,笔者在重装3次系统后,选择了更换Ubuntu系统
如果要升级可以参考下这篇文章:如何正确升级 Centos7 的 Glibc
参考
多种方式解决交叉编译中glibc版本不兼容导致的编译问题(libc.so.6: version `GLIBC_xxx‘ not found问题)
glibc编译时报错:configure: error:*** LD_LIBRARY_PATH shouldn‘t contain the current directory when ***
linux安装指定版本glibc,适配降级