如何在 ubuntu 中安装 libyajl 包?

Swa*_*til 3 14.04

我正在尝试安装即将出现此错误的 libvert 软件包:

**configure: error: You must install the libyajl library & headers to compile libvirt**
Run Code Online (Sandbox Code Playgroud)

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

  1. 从下载的包 git/lloyd

  2. ./configure

请帮我完成安装。./configure我应该在哪一步之后做?

小智 8

请编译yajl。

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

root@localhost:/tmp# cd yajl

root@localhost:/tmp/yajl# ./configure && make && make install
Run Code Online (Sandbox Code Playgroud)

如果您遇到以下错误消息,请安装 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
Run Code Online (Sandbox Code Playgroud)

谢谢。