Install on macOS 11.6.7 (BigSur)

26 views
Skip to first unread message

Martin Sadler

unread,
Jul 23, 2022, 8:50:03 PM7/23/22
to astrometry
I've installed astrometry.net 0.89 using Homebrew and when I run:

$ solve-field --scale-low 10 demo/apod4.jpg

I get the following error:

Reading input file 1 of 1: "demo/apod4.jpg"...

jpegtopnm: WRITING PPM FILE

dyld: Library not loaded: /usr/local/opt/netpbm/lib/libnetpbm.11.86.dylib

  Referenced from: /usr/local/bin/an-pnmtofits

  Reason: image not found

/bin/sh: line 1: 20524 Broken pipe: 13         ppmtopgm /tmp/tmp.ppm.gvKuFq

     20525 Abort trap: 6           | /usr/local/bin/an-pnmtofits > /tmp/tmp.fits.CPRTuE

augment-xylist.c:591:backtick Failed to run command: ppmtopgm /tmp/tmp.ppm.gvKuFq | /usr/local/bin/an-pnmtofits > /tmp/tmp.fits.CPRTuE

 ioutils.c:568:run_command_get_outputs Command failed: return value 134

Checking the netbpm/lib directory with "ls /usr/local/opt/netpbm/lib" I get:

libnetpbm.11.99.dylib    libnetpbm.11.dylib    libnetpbm.a        libnetpbm.dylib        pkgconfig

So it seems I have version 99 rather than 86. How do I go about resolving this, please?

Martin Sadler

unread,
Jul 23, 2022, 10:00:13 PM7/23/22
to astrometry
I got around this by copying libnetpbm.11.99.dylib to libnetpbm.11.86.dylib

After using "make install indexes" I had to move the index files to the ---/Cellar/--- directory to get solve-field to work.

Reply all
Reply to author
Forward
0 new messages