Hello Ramnath,

if you see an error of the form:

error while loading shared libraries: libmlpack.so.2: cannot open shared object
file: No such file or directory

be sure that the runtime linker is searching the directory where libmlpack.so
was installed. One way to do this, on Linux, is to ensure that the
LD_LIBRARY_PATH environment variable has the directory that contains
libmlpack.so. Using bash, this can be set easily:

export LD_LIBRARY_PATH="/path/to/mlpack/lib/:$LD_LIBRARY_PATH"

also as you already pointed out the path matters, so
bin/mlpack_logistic_regression -h should also work in your case.

I hope this is helpful, let us know if we can clarify anything.

Thanks,
Marcus

> On 21. Aug 2017, at 08:21, Ramnath Kumar <[email protected]> wrote:
> 
> Hi,
> I have just recently started learning about mlpack. This is my first 
> experience with open-sourced organizations so i do not know much on how this 
> system works. I tried the below command on the terminal:
> $ mlpack_logistic_regression -t dataset.csv -v
> but it gives an error that the cannot open shared object file.  I have 
> installed mlpack and built it as instructed in your docs: mlpack: a scalable 
> c++ machine learning library 
> <http://www.mlpack.org/docs/mlpack-2.2.4/doxygen/build.html#build>
> 
> 
> mlpack: a scalable c++ machine learning library
> mlpack: a scalable c++ machine learning library
>  <http://www.mlpack.org/docs/mlpack-2.2.4/doxygen/build.html#build>
> 
> I wrote the above command on the terminal when i had changed to the bin 
> directory.
> I would also like to know if the directory from which i run the command 
> matters.
> Thanks in Advance,
> Ramnath
> 
> _______________________________________________
> mlpack mailing list
> [email protected]
> http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack

_______________________________________________
mlpack mailing list
[email protected]
http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack

Reply via email to