Skip to content

Instantly share code, notes, and snippets.

@timle
Forked from ads901119/hdf5_tables_install.sh
Last active August 25, 2016 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timle/c8fa4e97399b0ca0985e1f4770ec83cd to your computer and use it in GitHub Desktop.
Save timle/c8fa4e97399b0ca0985e1f4770ec83cd to your computer and use it in GitHub Desktop.
Install HDF5 and pytables on OS X Mavericks
# build and install HDF5
# compiled on 10.11.6
# set where HDF5 will be installed; this is needed for pytables and is used in the configuration line for HDF5 below
export HDF5_DIR=/opt/hdf5
# download, configure and install HDF5
curl -O 'http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.17.tar.bz2'
tar xjf hdf5-1.8.17.tar.bz2
cd hdf5-1.8.17
./configure --prefix=${HDF5_DIR}
make && sudo make install
# the CLANG compiler will abort the compilation when there are unused command line arguments
# unless set, pytables will not compile
export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
pip install tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment