Skip to content

Instantly share code, notes, and snippets.

@TWRogers
Last active January 30, 2020 14:39
Show Gist options
  • Save TWRogers/c570839d3b34d0b3edd6f494df192b84 to your computer and use it in GitHub Desktop.
Save TWRogers/c570839d3b34d0b3edd6f494df192b84 to your computer and use it in GitHub Desktop.
Installing libxc (Library of exchange-correlation functionals for density-functional theory)
git clone https://gitlab.com/libxc/libxc.git
cd libxc
sudo apt install autogen autoconf libtool
autoreconf -i
./configure
make
make check
sudo make install
@TWRogers
Copy link
Author

To install python bindings do:
python setup.py install.

Requires installation of CMake first:
sudo apt-get install cmake

@TWRogers
Copy link
Author

libxc libraries will be installed in /opt/etsf/lib by this method.
Can be used in PySCF by install with export PYSCF_INC_DIR=/opt/etsf/lib and then pip install pyscf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment