On Nov 26, 2007, at 5:39 AM, tania habib wrote:
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
Tania, I think Paul wanted you to copy the results of that command (or
the other one he gave you) and tell it to us.
However looking at error output above shows a reference to /opt/local/
share/darwinports/ ............
There is no darwinports directory in my own installation (version
1.52) and I dont think the term "darwinports" has been used anywhere
in a very long time since the Project is now called MacPorts. This
suggests you have a [b] very [/b] old version of the Macports system.
Others can tell you if its updatable.
If you bash shell told you command not found when you tried to do sudo
port -d selfupdate then your path is surely wrong. So you have two
problems. Were you in an xterm window or a Terminal window? were you
logged in?
if you try the command env you will see yor environment values printed
on screen. PATH should START:
PATH=/opt/local/bin:/opt/local/sbin:bunch_of_other_stuff
Does it?
On Nov 25, 2007 10:39 PM, paul beard <[EMAIL PROTECTED]> wrote:
On 11/25/07, Ryan Schmidt <[EMAIL PROTECTED]> 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/
<[EMAIL PROTECTED]/[EMAIL PROTECTED]>
_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users
William Davis
frstanATbellsouthDOTnet
Mac OS X.5.1 Darwin 9.1.0
Xquartz-1.2a11
Mac Mini Intel Duo @ 1.86 GHz
Mundus vult decepi, ego non
_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users