This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

fenics installation to CentOS

+1 vote

Hi All,

I had another error message from installation of Fenics. I have downloaded fenics with this command
wget http://fenicsproject.org/fenics-install.sh

to install:
bash fenics-install.sh

then I got this error messages:
Downloading https://support.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-1.8.13/src/hdf5-1.8.13.tar.bz2...
[ERROR] urllib failed to download (code: 404): https://support.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-1.8.13/src/hdf5-1.8.13.tar.bz2
Downloading https://support.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-1.8.13/src/hdf5-1.8.13.tar.bz2...
[ERROR] urllib failed to download (code: 404): https://support.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-1.8.13/src/hdf5-1.8.13.tar.bz2
Downloading https://support.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-1.8.13/src/hdf5-1.8.13.tar.bz2...
[ERROR] urllib failed to download (code: 404): https://support.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-1.8.13/src/hdf5-1.8.13.tar.bz2
[CRITICAL] You may wish to check your Internet connection or the remote server
bash-4.1$ bash fenics-install.sh

And looks like fenics-install.sh has an incorrect path for this download. Having a look at that site, it should be
https://support.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-1.8/hdf5-1.8.13/src/hdf5-1.8.13.tar.bz2

However, I don't know where to update this downloading link for hdf. There is nothing related in fenics-install.sh.

Could you please help me for figuring out this problem?

Thank you,

asked Jul 10, 2017 by emraisel FEniCS Novice (130 points)

1 Answer

+1 vote

fenics-install.sh uses hashdist - we no longer have the resources to support hashdist. Please try another method to install.

answered Jul 10, 2017 by chris_richardson FEniCS Expert (31,740 points)

Thank you for the reply. Do you have any suggestion for another method? I was following the fenics installation procedure in the manual.

My best suggestion would be to compile from source directly. It is not so difficult.
Firstly, make sure you have python and pip installed. On CentOS, you will do something like:

yum install epel-release
yum install python2-pip
yum install python2-devel
yum install git
pip install ufl
# FIAT has problem on PyPI - so load from bitbucket
pip install git+https://bitbucket.org/fenics-project/fiat.git@2017.1.0
pip install instant
pip install dijitso
pip install ffc

You may need other yum packages (e.g. gcc, if not installed already)
After installing the python packages (above), you should be able to run "ffc".

The next step is to clone "dolfin" itself, and install

git clone https://bitbucket.org/fenics-project/dolfin.git
cd dolfin
mkdir build
cd build
cmake ..
make -j 4
make install

You will find you need other packages along the way. In particular, you will need cmake, eigen, boost and swig. Some of these are not up-to-date on CentOS, so you will have to build and install yourself, perhaps (but not too difficult).

...