Ubuntu20.04.3下安装Destor总结

环境

源码:https://github.com/fomy/destor
环境:Linux64,ubuntu20.04LTS

C++环境搭建

1.gcc/g++

sudo apt install gcc g++ cmake git vim

2.openssl

不能直接apt-get安装openssl,不然会报“找不到crypto库”错误,需要安装老版本openssl

wget http://www.openssl.org/source/openssl-1.0.2d.tar.gz  
# 解压后  
./config --prefix=/usr/local --openssldir=/usr/local/openssl
make && sudo make install
sudo apt-get install libssl-dev

3.libcurl

sudo apt install libcurl4-openssl-dev

4.log4cxx

sudo apt install liblog4cxx-dev

5.tcmalloc

sudo apt install libgoogle-perftools-dev

glib安装

首先安装依赖

sudo apt-get install zlib1g-dev
sudo apt-get install libffi-dev

上面的依赖可能不全,依赖相关错误参考:
https://blog.csdn.net/weixin_43600809/article/details/121224799
https://blog.csdn.net/qq_28626013/article/details/111187037

apt安装glib

sudo apt-get install libglib2.0-dev

改变glib头文件位置

这里和建立连接时glib的地址可能不一定,需要查看并确认

sudo cp -r /usr/include/glib-2.0/* /usr/local/include
sudo cp /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h /usr/local/include

建立连接

sudo ln -s /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/local/lib/libglib.so

旧库改动

sudo mv /usr/lib/x86_64-linux-gnu/libcrypto.a /usr/lib/x86_64-linux-gnu/libcrypto.a.old
sudo mv /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/lib/x86_64-linux-gnu/libcrypto.so.old

automake

目前configure已经可以通过,但是make时报错

sudo apt install autoconf

报错:aclocal-1.14: command not found
手动下载aclocall-1.14

wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz

安装aclocal还需要一个autoconf 2.65或更高的版本

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz

解压并autoconf-2.69进入目录

tar xvzf autoconf-2.69.tar.gz
cd autoconf-2.69

安装autoconf

./configure
make
make install

最后重启一下,查看automake版本

automake --version

完成Destor编译&&安装

Destor目录下输入

./configure
make
make install

参考文献

参考文献
[1]: https://blog.csdn.net/blue2015213115/article/details/116229988
[2]: https://blog.csdn.net/qq_28626013/article/details/111187037
[3]: https://blog.csdn.net/weixin_43600809/article/details/121224799
[4]:https://jingyan.baidu.com/article/ab0b563072e697c15afa7d98.html
[5]:http://www.javashuo.com/article/p-mehwonfq-nw.html
[6]:https://github.com/fomy/destor/issues/4
[7]:https://github.com/google/farmhash/issues/15

你好!要安装Ubuntu 20.04.3 Server,你可以按照以下步骤进行操作: 1. 首先,从Ubuntu官方网站下载Ubuntu Server 20.04.3的ISO映像文件。你可以访问官方网站(https://ubuntu.com/download/server)并选择适合你的体系结构的版本进行下载。 2. 下载完成后,将ISO映像文件写入一个可启动的安装介质,如USB闪存驱动器或DVD。你可以使用一些工具,如Rufus(Windows平台)或Etcher(Windows、macOS和Linux平台),来完成这个过程。 3. 将启动介质插入目标服务器,并确保在启动时从该介质引导。你可能需要在服务器的BIOS或UEFI设置中进行相应的调整。 4. 一旦从安装介质引导,你将进入Ubuntu Server的安装程序。选择适当的语言进行安装,并按照屏幕上的指示进行下一步。 5. 在安装过程中,你会被要求选择一些选项,如键盘布局、时区、用户名和密码等。根据你的需求进行选择,并继续进行安装。 6. 当安装程序要求你选择软件包和服务时,可以根据你的需要选择适当的选项。你可以选择安装SSH服务器、Web服务器等。 7. 稍后,在安装完成后,系统将提示你重新启动服务器。删除安装介质,然后按照屏幕上的指示重新启动。 8. 重新启动后,你将看到登录提示符。输入之前设置的用户名和密码,然后按Enter键进行登录。 恭喜你完成了Ubuntu Server 20.04.3的安装!现在你可以根据你的需求配置和使用服务器了。如果你有任何进一步的问题,请随时向我提问。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值