Skip to content

Instantly share code, notes, and snippets.

@bhyde
Created October 8, 2009 21:35
Show Gist options
  • Save bhyde/205443 to your computer and use it in GitHub Desktop.
Save bhyde/205443 to your computer and use it in GitHub Desktop.
Freetype yearns for /opt/local/lib/libz.dylib , but (No such file or directory)
bash-3.2# uname -a
Darwin d72.cozy.org 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
bash-3.2# port selfupgrade
Unrecognized action "selfupgrade"
bash-3.2# port selfupdate
---> Updating the ports tree
---> Updating MacPorts base sources using rsync
MacPorts base version 1.8.1 installed,
MacPorts base version 1.8.1 downloaded.
---> MacPorts base is already the latest version
The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated
bash-3.2# port upgrade outdated
Error: No ports matched the given expression
bash-3.2# port install freetype
---> Computing dependencies for freetype
---> Extracting freetype
Error: Target org.macports.extract returned: lipo: can't open input file: /opt/local/lib/libz.dylib (No such file or directory)
Error: Status 1 encountered during processing.
bash-3.2# ls /opt/local/lib/libz*
/opt/local/lib/libz.a /opt/local/lib/libzip.a
/opt/local/lib/libzip.1.0.0.dylib /opt/local/lib/libzip.dylib
/opt/local/lib/libzip.1.dylib /opt/local/lib/libzip.la
----
bash-3.2# port deactivate zlib
---> Deactivating zlib
bash-3.2# port clean zlib
---> Cleaning zlib
bash-3.2# port activate zlib
---> Activating zlib
bash-3.2# port uninstall zib
bash-3.2# port clean zib
Error: Port zib not found
bash-3.2# port clean zlib
---> Cleaning zlib
bash-3.2# port fetch -f zlib
---> Computing dependencies for zlib
---> Fetching zlib
bash-3.2# port install zlib
---> Computing dependencies for zlib
---> Cleaning zlib
bash-3.2# ls -l /opt/local/lib/libz*
-rw-r--r-- 2 root admin 82776 Oct 5 18:34 /opt/local/lib/libz.a
-rwxr-xr-x 2 root admin 42452 Oct 8 16:14 /opt/local/lib/libzip.1.0.0.dylib
lrwxr-xr-x 1 root admin 18 Oct 8 16:14 /opt/local/lib/libzip.1.dylib -> libzip.1.0.0.dylib
-rw-r--r-- 2 root admin 66216 Oct 8 16:14 /opt/local/lib/libzip.a
lrwxr-xr-x 1 root admin 18 Oct 8 16:14 /opt/local/lib/libzip.dylib -> libzip.1.0.0.dylib
-rwxr-xr-x 2 root admin 818 Oct 8 16:14 /opt/local/lib/libzip.la
bash-3.2# port contents zlib
Port zlib contains:
/opt/local/include/zconf.h
/opt/local/include/zlib.h
/opt/local/lib/libz.a
/opt/local/share/doc/zlib-1.2.3/ChangeLog
/opt/local/share/doc/zlib-1.2.3/examples/example.c
/opt/local/share/doc/zlib-1.2.3/examples/fitblk.c
/opt/local/share/doc/zlib-1.2.3/examples/gun.c
/opt/local/share/doc/zlib-1.2.3/examples/gzappend.c
/opt/local/share/doc/zlib-1.2.3/examples/gzjoin.c
/opt/local/share/doc/zlib-1.2.3/examples/gzlog.c
/opt/local/share/doc/zlib-1.2.3/examples/gzlog.h
/opt/local/share/doc/zlib-1.2.3/examples/README.examples
/opt/local/share/doc/zlib-1.2.3/examples/zlib_how.html
/opt/local/share/doc/zlib-1.2.3/examples/zpipe.c
/opt/local/share/doc/zlib-1.2.3/examples/zran.c
/opt/local/share/doc/zlib-1.2.3/FAQ
/opt/local/share/doc/zlib-1.2.3/README
/opt/local/share/man/man3/zlib.3.gz
bash-3.2#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment