Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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 Changed 13 years ago by danielluke (Daniel J. Luke)

comment:2 Changed 13 years ago by danielluke (Daniel J. Luke)

Priority: HighNot set

comment:3 in reply to:  1 Changed 13 years ago by jpedro2011@…

Replying to dluke@…:

Did you just upgrade?

http://trac.macports.org/wiki/Migration

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 Changed 13 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 in reply to:  4 Changed 13 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 Changed 13 years ago by jmroot (Joshua Root)

Component: portsbase
Resolution: invalid
Status: newclosed
Summary: Wrong architecturebase 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 in reply to:  6 Changed 13 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 ppc

So you need to get back the universal libedit that ships with the OS.

Sorry but how can I do it?

comment:8 Changed 13 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 in reply to:  8 Changed 13 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 in reply to:  8 Changed 13 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.

Note: See TracTickets for help on using tickets.