#27952 closed defect (invalid)
base fails to run with single-arch /usr/lib/libedit.2.dylib
Reported by: | jpedro2011@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Not set | Milestone: | |
Component: | base | Version: | 1.9.2 |
Keywords: | Cc: | ||
Port: |
Description
When I try to use ports, I got this error message:
dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): Library not loaded: /usr/lib/libedit.2.dylib
Referenced from: /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib Reason: no suitable image found. Did find:
/usr/lib/libedit.2.dylib: mach-o, but wrong architecture /usr/lib/libedit.2.dylib: mach-o, but wrong architecture
while executing
"load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib"
("package ifneeded Pextlib 1.0" script) invoked from within
"package require Pextlib 1.0"
(file "/opt/local/bin/port" line 40)
How can I fix this?
Change History (10)
comment:1 follow-up: 3 Changed 14 years ago by danielluke (Daniel J. Luke)
comment:2 Changed 14 years ago by danielluke (Daniel J. Luke)
Priority: | High → Not set |
---|
comment:3 Changed 14 years ago by jpedro2011@…
Replying to dluke@…:
Did you just upgrade?
When I upgrade OSX to 10.6.6, i've got this trouble. In every command with port I got this message. (ex. sudo port selfupdate).
I tried to reinstall Xcode and macports version, but nothing. MacPorts-1.9.2-10.6-SnowLeopard.dmg (the version of macports on my mac)
comment:4 follow-up: 5 Changed 14 years ago by danielluke (Daniel J. Luke)
What does:
file /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib
say?
What does:
file /usr/lib/libedit.2.dylib
say?
comment:5 Changed 14 years ago by jpedro2011@…
Replying to dluke@…:
What does:
file /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib
say?What does:
file /usr/lib/libedit.2.dylib
say?
1º question: /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: Mach-O universal binary with 2 architectures /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib (for architecture i386): Mach-O dynamically linked shared library i386
2º question: /usr/lib/libedit.2.dylib: Mach-O dynamically linked shared library i386
comment:6 follow-up: 7 Changed 14 years ago by jmroot (Joshua Root)
Component: | ports → base |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Summary: | Wrong architecture → base fails to run with single-arch /usr/lib/libedit.2.dylib |
On my machine:
% file /usr/lib/libedit.2.dylib /usr/lib/libedit.2.dylib: Mach-O universal binary with 3 architectures /usr/lib/libedit.2.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 /usr/lib/libedit.2.dylib (for architecture i386): Mach-O dynamically linked shared library i386 /usr/lib/libedit.2.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc
So you need to get back the universal libedit that ships with the OS.
comment:7 Changed 14 years ago by jpedro2011@…
Replying to jmr@…:
On my machine:
% file /usr/lib/libedit.2.dylib /usr/lib/libedit.2.dylib: Mach-O universal binary with 3 architectures /usr/lib/libedit.2.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 /usr/lib/libedit.2.dylib (for architecture i386): Mach-O dynamically linked shared library i386 /usr/lib/libedit.2.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppcSo you need to get back the universal libedit that ships with the OS.
Sorry but how can I do it?
comment:8 follow-ups: 9 10 Changed 14 years ago by danielluke (Daniel J. Luke)
You probably need to reinstall Mac OS X from your OS install media. The libedit.2.dylib file you have doesn't appear to be the same one that ships with Mac OS X.
comment:9 Changed 14 years ago by jpedro2011@…
Replying to dluke@…:
You probably need to reinstall Mac OS X from your OS install media. The libedit.2.dylib file you have doesn't appear to be the same one that ships with Mac OS X.
Ok I will do this. Thanks for the support
comment:10 Changed 14 years ago by jpedro2011@…
Replying to dluke@…:
You probably need to reinstall Mac OS X from your OS install media. The libedit.2.dylib file you have doesn't appear to be the same one that ships with Mac OS X.
I used mac osx combo update and it works.
Did you just upgrade?
http://trac.macports.org/wiki/Migration