spacetelescope / hstcal

Calibration for HST/WFC3, HST/ACS, and HST/STIS
BSD 3-Clause "New" or "Revised" License
11 stars 29 forks source link

cfitsio induced libcurl version incompatibility #325

Closed jamienoss closed 1 year ago

jamienoss commented 6 years ago

When trying to run master, anything, e.g. calacs.e --gitinfo, the following error is given:

dyld: Library not loaded: @rpath/libcurl.4.dylib
  Referenced from: ~/dev/hstcal/bin.Darwin-15.6.0-x86_64-i386-64bit/calacs.e
  Reason: Incompatible library version: calacs.e requires version 10.0.0 or later, but libcurl.4.dylib provides version 9.0.0
Trace/BPT trap: 5

Conda env:

# packages in environment at //anaconda/envs/cfitsio:
#
# Name                    Version                   Build  Channel
ca-certificates           2018.03.07                    0  
cctools                   895                  h7512d6f_0  
cfitsio                   3.440                         0    http://ssb.stsci.edu/astroconda
clang                     4.0.1                h662ec87_0  
compiler-rt               4.0.1                h5487866_0  
curl                      7.61.0               ha441bb4_0  
ld64                      274.2                h7c2db76_0  
libcurl                   7.61.0               hf30b1f0_0  
libcxx                    4.0.1                h579ed51_0  
libcxxabi                 4.0.1                hebd6815_0  
libgcc                    4.8.5               hdbeacc1_10  
libgfortran               3.0.1                h93005f0_2  
libssh2                   1.8.0                h322a93b_4  
llvm                      4.0.1                hc748206_0  
llvm-lto-tapi             4.0.1                h6701bc3_0  
llvm-openmp               4.0.1                hda82c8b_0  
openssl                   1.0.2o               h26aff7b_0  
zlib                      1.2.11               hf3cbc9b_2  

Version 7.61.0 is the greatest ver avliable via conda for both curl & libcurl.

jamienoss commented 6 years ago

With the imminent release, we really should get #306 sorted.

jamienoss commented 6 years ago

This works on my other box with the following:

cfitsio                   3.440                         3    http://ssb.stsci.edu/astroconda-dev
curl                      7.49.0                        1  

libcurl is not installed under conda but under /usr/lib/.

 dpkg -l |grep libcurl
ii  libcurl4       7.51.0-1       Lib. for transferring files with URL syntax
ii  libcurl4-shlib 7.51.0-1       Lib. for transferring files with URL syntax
jamienoss commented 6 years ago

The diff in cfitsioi.e. build 3 http://ssb.stsci.edu/astroconda-dev vs build 0 http://ssb.stsci.edu/astroconda doesn't change anything.

jamienoss commented 6 years ago

@jhunkeler ping me when the new builds are complete, please.

jamienoss commented 6 years ago

@jhunkeler thanks for those changes, it now works.

However, what's the guarantee that OSs ship with libcurl? What I'm getting at is that something still remains broken, the case were the user doesn't have libcurl and then obtains it via conda.