Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 1.46 KB

INSTALL.md

File metadata and controls

66 lines (48 loc) · 1.46 KB

Building and installing neml

For detailed instructions see the readthedocs documentation.

If you are building only the base library you can build in or out of the source directory. For the python bindings we recommend building in-source. These instructions assuming you are building in the source directory.

Linux (Ubuntu/APT)

To compile just the base library:

apt-get install build-essential cmake libxml++2.6-dev libboost-dev libblas-dev liblapack-dev
cmake .
make

To compile both the base library and the python bindings:

apt-get install build-essential cmake libxml++2.6-dev libboost-dev libblas-dev liblapack-dev python-dev python-networkx python-numpy python-scipy python-matplotlib python-nose
cmake -D WRAP_PYTHON=ON .
make

and run the tests with

nosetests

macOS (homebrew)

For just the base library setup prerequisites

brew install libxml++ boost cmake

and then build the library

cmake .
make

For the library and the python bindings setup prerequisites

brew install libxml++ boost cmake python@2
pip install nose numpy scipy nose matplotlib networkx

and then build the library

cmake -D WRAP_PYTHON=ON .
make 

Users have reported that if you use libxml++3 you may need to manually request libxml2 as well and add the libxml2 pkgconfig path to the environment:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/libxml2/lib/pkgconfig