如何在 ubuntu 中安装 libyajl 包?

如何在 ubuntu 中安装 libyajl 包?

我正在尝试安装 libvert 包,但出现以下错误:

**configure: error: You must install the libyajl library & headers to compile libvirt**

如何解决此错误,我尝试了以下步骤:

  1. 下载的软件包来自git/lloyd

  2. ./configure

请帮助我完成安装。./configure我应该执行哪一步?

答案1

请编译 yajl。

root@localhost:/tmp# git clone git://github.com/lloyd/yajl

root@localhost:/tmp# cd yajl

root@localhost:/tmp/yajl# ./configure && make && make install

如果您遇到以下错误消息,请安装 cmake 包。

然后编译yajl。

root@localhost:/tmp/yajl# ./configure && make && make install
== removing old build files
== running CMake in build directory
./configure: 41: ./configure: cmake: not found
The "cmake" program is required to configure yajl.
It's available from most ports/packaging systems and http://cmake.org

root@localhost:/tmp/yajl# apt-get install cmake

root@localhost:/tmp/yajl# ./configure && make && make install

谢谢。

相关内容