如何在 ubuntu 14.04 中安装 spdlog?

如何在 ubuntu 14.04 中安装 spdlog?
naveen@naveen-VirtualBox:~$ sudo apt-get install libspdlog-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libspdlog-dev
naveen@naveen-VirtualBox:~$ 

答案1

您可以安装来自 16.04 LTS 的软件包使用以下命令手动在您的 14.04 LTS 上:

cd ~/Downloads
wget http://mirrors.kernel.org/ubuntu/pool/universe/s/spdlog/libspdlog-dev_1.6-1_amd64.deb
sudo dpkg -i libspdlog-dev_1.6-1_amd64.deb

然后在编译或启动测试示例时使用它的标题:

cp -ar /usr/share/doc/libspdlog-dev/example ~/libspdlog-example
cd ~/libspdlog-example
gunzip bench.cpp.gz
gunzip example.cpp.gz
make
mkdir logs
./example
./bench

相关内容