[mlpack-git] [mlpack] Getting started - xmllib2, libmlpack.so.1 and "undefined reference to mlpack" issue (Solutions to ticket 357, 348, 268) (#402)

Shahnawaz Ahmed notifications at github.com
Wed Feb 11 12:02:20 EST 2015

Pardon me if this seems trivial as I am new to mlpack,
I faced the following issues and found some solutions to them (for Ubuntu 14.04) :
Can these be updated in the wiki ? Or using a makefile for compilation solves all three issues ? 

1. While compiling, need to use -I /usr/local/libxml2/ (http://www.mlpack.org/trac/ticket/357)

Solution :
	Open terminal :
	export CPATH=/usr/local/include/libxml2/

2. Need to add path to libmlpack.so.1 while running ./a.out (http://www.mlpack.org/trac/ticket/348)

Solution :
	1. Create a new file in /etc/ld.so.conf.d/ called .conf
	(use sudo)
	Edit the file and add a line per directory of shared libraries (*.so files), it will look something like:
	Reload the list of system-wide library paths:
	Run : 
	$sudo ldconfig

	Alternate : You can temporarily add path as LD_LIBRARY_PATH=/usr/local/lib/ 

3. Linking required while compiling as g++ file.cpp -lmlpack (http://www.mlpack.org/trac/ticket/268)
	This can be done by creating a makefile 

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150211/e9c1cea0/attachment.html>

More information about the mlpack-git mailing list