diff --git a/doc/guide/build.hpp b/doc/guide/build.hpp index 202d419a14..cf1d6d77d6 100644 --- a/doc/guide/build.hpp +++ b/doc/guide/build.hpp @@ -41,6 +41,13 @@ $ sudo make install If the \c cmake \c .. command fails, you are probably missing a dependency, so check the output and install any necessary libraries. (See \ref build_dep.) +On many Linux systems, mlpack will install by default to @c /usr/local/lib and +you may need to set the @c LD_LIBRARY_PATH environment variable: + +@code +export LD_LIBRARY_PATH=/usr/local/lib +@endcode + The instructions above are the simplest way to get, build, and install mlpack. The sections below discuss each of those steps in further detail and show how to configure mlpack. diff --git a/doc/guide/python_quickstart.hpp b/doc/guide/python_quickstart.hpp index 69442d6a0a..64cea4cc1e 100644 --- a/doc/guide/python_quickstart.hpp +++ b/doc/guide/python_quickstart.hpp @@ -37,6 +37,14 @@ mkdir -p mlpack-3.0.1/build/ && cd mlpack-3.0.1/build/ cmake ../ && make -j4 && sudo make install @endcode +More information on the build process and details can be found on the @ref build +page. You may also need to set the environment variable @c LD_LIBRARY_PATH to +include @c /usr/local/lib/ on most Linux systems. + +@code +export LD_LIBRARY_PATH=/usr/local/lib/ +@endcode + You can also use the mlpack Docker image on Dockerhub, which has all of the Python bindings pre-installed: