On Dec 14, 2007, at 20:01, Chris Janton wrote:

On 2007-12-14 , at 18:53 , Charlse Darwin wrote:

$ mv mv /usr/local mv /usr/local-off


mac 1 # sudo mv /usr/local /usr/local1
mac 2 # sudo port install apache2
Library not loaded: /usr/local/lib/libreadline.5.1.dylib
Referenced from: /opt/local/share/macports/Tcl/pextlib1.0/ Pextlib.dylib
  Reason: image not found
    while executing
"load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib"
    ("package ifneeded" script)
    invoked from within
"package require Pextlib 1.0"
    (procedure "mportinit" line 365)
    invoked from within
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, Library not loaded: /usr/local/lib/libreadline.5.1.dylib Referenced from: /opt/local/share/macports/Tcl/pextlib1.0/ Pextlib.dylib
  Reason: image not found

Ok, so your MacPorts has been inadvertently linked with the rogue readline that was in /usr/local/lib. You should now rebuild MacPorts, either by building from source, or by reinstalling it from the latest disk image for your OS version and then running selfupdate.

You may encounter other software, MacPorts ports for example, inadvertently linked with the libraries formerly in /usr/local/lib. As you discover these, rebuild those ports with "sudo port -ncuf upgrade foo"

_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to