I try to install like below: apt-get install libyajl2 apt-get install libyajl2-dev apt-get install libyajl2-dbg and rebuild again:> ./configure > makestill the same errors happened anyone has the same issue? 2017-07-25 18:27 GMT+08:00 Cedric Bosdonnat <cbosdonnat@suse.com>:> On Tue, 2017-07-25 at 17:42 +0800, lampahome wrote: > > why is undefined reference to 'yajl_tree_parse', I already install it > from https://github.com/lloyd/yajl > > First thing I see is that it hasn't been installed to a place mentioned in > your > LD_LIBRARY_PATH, or not discovered at configure time. Since you are > working on a > linux machine, I guess your distro is providing the development packages > for libyajl: > it would be easier to install them rather than build from source. > > -- > Cedric > >
On Tue, Jul 25, 2017 at 06:52:56PM +0800, lampahome wrote:> I try to install like below: > apt-get install libyajl2 > apt-get install libyajl2-dev > apt-get install libyajl2-dbgSo this is Debian or Ubuntu? Which precise version? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
On Tue, Jul 25, 2017 at 01:30:01PM +0100, Richard W.M. Jones wrote:> On Tue, Jul 25, 2017 at 06:52:56PM +0800, lampahome wrote: > > I try to install like below: > > apt-get install libyajl2 > > apt-get install libyajl2-dev > > apt-get install libyajl2-dbg > > So this is Debian or Ubuntu? Which precise version?FWIW I just built libguestfs from git on Debian 9 just now and it works fine. I'd advise reading the instructions here in case there are some steps you missed: http://libguestfs.org/guestfs-building.1.html Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top