[mlpack] Compilation issue of mlpack on Ubuntu

Ryan Curtin ryan at ratml.org
Thu Jan 29 11:05:50 EST 2015


On Thu, Jan 29, 2015 at 08:21:53PM +0530, Jaskaran Singh wrote:
> Hi
> I was trying to build mlpack from source according to instructions given on
> the github page.
> Here is what the compilation log says after I did
> >>cmake ../
> CMake Error at
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
> (MESSAGE):
>   Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
>   (Required is at least version "2.6.0")
> Call Stack (most recent call first):
>   /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
> (_FPHSA_FAILURE_MESSAGE)
>   /usr/share/cmake-2.8/Modules/FindLibXml2.cmake:50
> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>   CMakeLists.txt:126 (find_package)
> 
> But I have libxml2 installed with version 2.7.8.
> jaskaran at ubuntu:~/Desktop/mlpack-1.0.12/build$ dpkg -s libxml2
> Package: libxml2
> Status: install ok installed
> Multi-Arch: same
> Priority: standard
> Section: libs
> Installed-Size: 1750
> Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
> Architecture: amd64
> Version: 2.7.8.dfsg-5.1ubuntu4.11
> Depends: libc6 (>= 2.15), zlib1g (>= 1:1.2.3.3.dfsg)
> Pre-Depends: multiarch-support
> Recommends: xml-core
> 
> Could somebody please help me out.

Do you have the libxml2-dev package installed?  The headers need to be
available for compilation.

Hope that helps.

Thanks,

Ryan

-- 
Ryan Curtin    | "We need some time for some things to happen!"
ryan at ratml.org |   - Bells


More information about the mlpack mailing list