Skip to content

Instantly share code, notes, and snippets.

@ads901119
Forked from rca/hdf5_tables_install.sh
Created April 11, 2016 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ads901119/d5520c422b2660375d5871bdc1c02179 to your computer and use it in GitHub Desktop.
Save ads901119/d5520c422b2660375d5871bdc1c02179 to your computer and use it in GitHub Desktop.
Install HDF5 and pytables on OS X Mavericks
# build and install HDF5
# 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.13.tar.bz2'
tar xjf hdf5-1.8.13.tar.bz2
cd hdf5-1.8.13
./configure --prefix=${HDF5_DIR}
make && sudo make install
# install tables
# 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