Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
libint/INSTALL
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
44 lines (35 sloc)
1.51 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For (more) complete instructions please refer to https://github.com/evaleev/libint/wiki | |
The installation procedure for the impatient and/or experts: | |
0) create configure in the source directory: | |
$ ./autogen.sh | |
1) create a directory for object files (you cannot build in the source directory): | |
$ mkdir ../build; cd ../build | |
2) configure the package: | |
$ ../src_dir/configure [--with-boost=$BOOST_ROOT] | |
Most often you will need to specify command-line options to configure. | |
To obtain a list of configure options run 'configure --help'. | |
then either choose path a or b: | |
3a) build the Libint compiler, then generate and compile a library: | |
$ make | |
4a) optional validation of the library: | |
$ make check | |
5a) install the compiled library: | |
$ make install | |
3b) build the Libint compiler, then generate and package a library for redistribution | |
$ make export | |
this produces a tarball with a Libint library that can be unpacked, configured, and compiled elsewhere. | |
Building the Python module | |
--------------------------- | |
Configure libint (Step 2) with `--enable-eri2 --enable-eri3`, export (Step 3b), untar exported archive: | |
$ cmake -DPYTHON_EXECUTABLE=`which python3` -DLIBINT2_PYTHON=ON -DCMAKE_PREFIX_PATH=$EIGEN_INSTALL_PATH -DCMAKE_INSTALL_PREFIX=<install-path> . | |
$ cd python | |
$ make | |
$ cd .. && make install | |
$ cd python | |
Run tests: | |
$ pip3 install numpy scipy wheel requests | |
$ make test | |
To install the python module: | |
$ make libint2-python-wheel | |
$ pip3 install dist/libint2-*.whl | |
To uninstall: pip3 uninstall libint2 |