Library problems (libcfitsio version on OSX installed by macports)

598 views
Skip to first unread message

David Palmer

unread,
Nov 10, 2016, 4:40:56 PM11/10/16
to astrometry
Under OSX, I have built astrometry.net from the github repository.

I am using cfitsio installed by macports.

When I try to solve-field I get:

% /usr/local/astrometry/bin/solve-field
dyld: Library not loaded: /opt/local/lib/libcfitsio.dylib
  Referenced from: /usr/local/astrometry/bin/solve-field
  Reason: Incompatible library version: solve-field requires version 5.0.0 or later, but libcfitsio.dylib provides version 2.0.0
Trace/BPT trap: 5

But the macports version is the latest cfitsio, and is version 5.3.9, not 2.0.0

% ls -ls  /opt/local/lib/libcfitsio.dylib
8 lrwxr-xr-x  1 macports  admin  18 Nov 10 13:27 /opt/local/lib/libcfitsio.dylib -> libcfitsio.5.dylib
% ls -ls /opt/local/lib/libcfitsio.5
libcfitsio.5.3.39.dylib  libcfitsio.5.dylib
% ls -ls /opt/local/lib/libcfitsio.5.dylib
8 lrwxr-xr-x  1 macports  admin  23 Nov 10 13:27 /opt/local/lib/libcfitsio.5.dylib -> libcfitsio.5.3.39.dylib
% ls -ls /opt/local/lib/libcfitsio.5.3.39.dylib
7168 -rwxr-xr-x  1 macports  admin  3667668 Nov 10 13:27 /opt/local/lib/libcfitsio.5.3.39.dylib

Any suggestions?

(Using homebrew is out because I am not using an admin account.)


Dustin Lang

unread,
Nov 10, 2016, 8:40:44 PM11/10/16
to astrometry
Hi,

I don't think I've seen this kind of error before.  As you have shown, the error message does not seem to make sense -- it sure looks like that libcfitsio is version 5!

Sorry, I have no idea what to suggest.

--dustin


David Palmer

unread,
Nov 14, 2016, 5:40:06 PM11/14/16
to astrometry
A more thorough search of my directory structure unearthed an older version (version 2.3.37) of libcfitsio.  This was not at the location specified by the error message, but removing it means that I no longer get that error message.

On to the next error message.  (image2pnm not finding the astrometry library, probably because of a path problem.)
Reply all
Reply to author
Forward
0 new messages