issp-center-dev / DCore

DMFT software for CORrelated Electrons
https://issp-center-dev.github.io/DCore/index.html
Other
44 stars 14 forks source link

Installing TRIQS 2.2.x on Catalina #87

Closed shinaoka closed 2 years ago

shinaoka commented 4 years ago

This is a memo. I struggled to install TRIQS on Catalina. Since TRIQS does not support Python 3.x, we need to stick to Python 2.7.

> CONFIGURE_OPTS="--enable-shared" pyenv install 2.7.15
> brew uninstall hdf5 # Uninstall other verions if installed
> brew install hdf5@1.8
> pip install cython # If you do not install Cython, pyenv may pick up a wrong one
> HDF5_DIR=/usr/local/opt/hdf5@1.8  pip install --no-binary=h5py h5py==2.7.1

Before configuring a build for TRIQS, set

> export HDF5_ROOT=/usr/local/opt/hdf5@1.8