problem initializing macports

tania habib taniahabib at gmail.com
Mon Nov 26 02:39:13 PST 2007


I have Macbook Pro with mac osx 10.4, I previously installed the
macports on the same machine and it was running perfectly. Then I did
not use it for a while and now when I go to the terminal window, and
type port it gives me this error
no suitable image found.  Did find:
        /opt/local/share/darwinports/Tcl/pextlib1.0/Pextlib.dylib:
mach-o, but wrong architecture
    while executing
"load /opt/local/share/darwinports/Tcl/pextlib1.0/Pextlib.dylib"
    ("package ifneeded" script)
    invoked from within
"package_native require Pextlib 1.0"
    ("eval" body line 1)
    invoked from within
"eval package_native $args"
    (procedure "package" line 14)
    invoked from within
"package require Pextlib 1.0"
    (procedure "dportinit" line 311)
    invoked from within
"dportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize ports system, no
suitable image found.  Did find:
        /opt/local/share/darwinports/Tcl/pextlib1.0/Pextlib.dylib:
mach-o, but wrong architecture

Should I uninstall the whole thing and start from the beginning or is
there any other way?

I have tried this command
>>cd /opt/local/var/db/dports/receipts/
>>find . -name receipt.bz2 | sed -E 's%^\./(.*)/(.*)/receipt\.bz2$%\1 @\2%'
but I do not know what to do next!

Please let me know an easier way out of this mess!

tania



On Nov 25, 2007 10:39 PM, paul beard <paulbeard at gmail.com> wrote:
>
>
>
> On 11/25/07, Ryan Schmidt <ryandesign at macports.org> wrote:
> >
> > On Nov 25, 2007, at 13:29, paul beard wrote:
> >
> > > On 11/25/07, Ryan Schmidt wrote:
> > >
> > >> What Mac do you have? Did you previously have a different Mac, back
> > >> when you originally installed MacPorts? Maybe you used Migration
> > >> Assistant to transfer everything (including MacPorts) from the old
> > >> Mac to the new Mac? IF the old Mac was PowerPC-based and the new one
> > >> is Intel-based, that could explain the error you're seeing, and you
> > >> should really uninstall everything and start over. You can use "port
> > >> installed" to see what ports are installed.
> > >
> > > How will that work if the port command doesn't run?
> >
> > Good question. It might not work then. We might have to dig deeper to
> > see what's installed. Like this:
> >
> > cd /opt/local/var/macports/receipts/
> > find . -name receipt.bz2 | sed -E 's%^\./(.*)/(.*)/receipt\.bz2$%\1 @
> > \2%'
>
> Watch the line-wrap: that \2% should stay on the same line. Same below . . .
> .
>
> > Or, for the user's version of DarwinPorts before the new layout, I
> > hope this is it:
> >
> > cd /opt/local/var/db/dports/receipts/
> > find . -name receipt.bz2 | sed -E 's%^\./(.*)/(.*)/receipt\.bz2$%\1 @\2%'
> >
> >
> > >> It also sounds like your PATH is not correct since it can't find the
> > >> port command.
> > >
> > > Actually, it does seem to find it OK: if the user types 'port
> > > <something>' and the result is
> > >
> > > Error: /opt/local/bin/port: Failed to initialize ports system, no
> > > suitable image found.  Did find:
> > >        /opt/local/share/darwinports/Tcl/pextlib1.0/Pextlib.dylib:
> > > mach-o, but wrong architecture
> > >
> > > it sounds like the command is there but if the error message is
> > > right, that the architecture is wrong.
> >
> > It sounds to me like the user is having to run "/opt/local/bin/port"
> > because when just "port" is run this error was shown:
> >
> > On Nov 25, 2007, at 11:14, tania habib wrote:
> >
> > > On Nov 25, 2007 2:11 PM, William Davis wrote:
> > >>
> > >
> > >> Did you try :
> > >> sudo port -d selfupdate
> > >> ?
> > >
> > > Yes I did, but it comes with the error that "port:command not found".
> > > I feel there is some path problem. Can please guide me through the
> > > procedure of setting the path variable in X11!
> >
> >
> >
>
>
>
>
> --
> Paul Beard / www.paulbeard.org/
> <paulbeard at gmail.com/paulbeard at mac.com>
>


More information about the macports-users mailing list