hyperion-rt / hyperion

Hyperion Radiative Transfer Code
http://www.hyperion-rt.org
BSD 2-Clause "Simplified" License
52 stars 26 forks source link

Problem when installing ZLIB #34

Closed alvaroribas closed 11 years ago

alvaroribas commented 11 years ago

Hi,

I am trying to install the fortran dependencies for Hyperion using the automated installation script (I have no experience with fortran).

I get the error below, and not sure the real origin of the problem. I am trying to install it in a Mac, Mountain Lion OS X 10.8.4. Is there any kind of incompatibility?

Thanks! álvaro


Installing ZLIB (for HDF5)

-> downloading -> expanding tarfile Traceback (most recent call last): File "install.py", line 361, in t = tarfile.open(zlib_file, 'r:gz') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py", line 1678, in open return func(name, filemode, fileobj, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py", line 1729, in gzopen raise ReadError("not a gzip file") tarfile.ReadError: not a gzip file

dnarayanan commented 11 years ago

Try the following:

Open install.py and replace the line with ZLIB_URL= by:

ZLIB_URL = " http://downloads.sourceforge.net/project/libpng/zlib/1.2.7/zlib-1.2.7.tar.gz "

Also remove any file called zlib-1.2.7.tar.gz in your current directory, then try running python install.py ... again.

On Fri, Jul 19, 2013 at 1:35 PM, aribas notifications@github.com wrote:

Hi,

I am trying to install the fortran dependencies for Hyperion using the automated installation script (I have no experience with fortran).

I get the error below, and not sure the real origin of the problem. I am trying to install it in a Mac, Mountain Lion OS X 10.8.4. Is there any kind of incompatibility?

Thanks!

álvaro

Installing ZLIB (for HDF5)

-> downloading -> expanding tarfile Traceback (most recent call last): File "install.py", line 361, in t = tarfile.open(zlib_file, 'r:gz') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py", line 1678, in open return func(name, filemode, fileobj, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py", line 1729, in gzopen raise ReadError("not a gzip file") tarfile.ReadError: not a gzip file

— Reply to this email directly or view it on GitHubhttps://github.com/hyperion-rt/hyperion/issues/34 .

alvaroribas commented 11 years ago

Thanks, worked perfectly!

astrofrog commented 11 years ago

@dnarayanan - thanks for resolving the issue! This is due to the zlib developers removing old tar files, so the link breaks every time. I will try and find a better way to do this to be future-proof.