Opened 10 years ago

Closed 10 years ago

#41715 closed defect (invalid)

gawk @ 2.2.1 architecture mismatch

Reported by: ruberman@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description

Mac OS 10.7.5; XCode 4.5 with Command Line Tools installed; MacPorts 2.2.1. Computer is a MacBook Pro; uname -a produces: Darwin Macbook.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64

Preparing to install some software using Macports, I typed in the command

sudo port install readline +universal ncurses +universal gawk wget xorg-libX11 xorg-libXaw

All went well until it got to gawk, which produced the following error message: Error: Cannot install gawk for the arch(s) 'x86_64' because Error: its dependency readline is only installed for the archs 'i386 ppc'. Error: Unable to execute port: architecture mismatch

Can you advise me on how to proceed?

Attachments (1)

macports.conf (6.4 KB) - added by ruberman@… 10 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 10 years ago by ruberman@…

Cc: ruberman@… added

Cc Me!

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

You should not have anything installed for ppc on Lion or later (how did you accomplish that?); Snow Leopard is the last OS X version that could run PowerPC software. Did you forget to follow the migration instructions after you upgraded the computer to Lion? Specifically, the section about updating your macports.conf, but the other sections as well.

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added; ruberman@… removed
Keywords: dependency mismatch removed
Port: readline +universal ncurses +universal gawk wget xorg-libX11 xorg-libXaw removed

Also, I meant to ask, are you sure you need universal versions of readline and ncurses?

Changed 10 years ago by ruberman@…

Attachment: macports.conf added

comment:4 Changed 10 years ago by ruberman@…

First, thanks for your quick response. As I'm sure you have already figured out, I'm a rank amateur, and am just trying to get some software packages working.

I thought I'd migrated everything properly, but evidently not. My IT department migrated from a previous computer; I reinstalled the developer tools, etc.

Following the instructions on the migration page, I examined my list of ports with

port -qv installed > myports.txt

and find many that are installed for the i386 architecture. I assume that the smart thing to do is to uninstall all of those and reinstall. But I want to ensure that these are installed with the proper architecture.

I attached my macports.conf file to my original ticket; I'm not quite sure what needs to be updated. The only place where i386 architecture is specified (but not commented out) is in the line

# CPU architectures to use for Universal Binaries (+universal variant)
universal_archs		x86_64 i386

Should I delete that i386?

Finally, I specified the universal versions per the instructions on the page http://neunhoef.github.io/bob/#install for installing "bob" which itself installs and checks dependencies for the program GAP, which is what I really want to use. It seems I could do without the universal versions.

Thanks again.

comment:5 in reply to:  4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ruberman@…:

First, thanks for your quick response. As I'm sure you have already figured out, I'm a rank amateur, and am just trying to get some software packages working.

I thought I'd migrated everything properly, but evidently not. My IT department migrated from a previous computer; I reinstalled the developer tools, etc.

Following the instructions on the migration page, I examined my list of ports with

port -qv installed > myports.txt

and find many that are installed for the i386 architecture. I assume that the smart thing to do is to uninstall all of those and reinstall. But I want to ensure that these are installed with the proper architecture.

I attached my macports.conf file to my original ticket; I'm not quite sure what needs to be updated. The only place where i386 architecture is specified (but not commented out) is in the line

# CPU architectures to use for Universal Binaries (+universal variant)
universal_archs		x86_64 i386

Should I delete that i386?

No, that would make your "universal" builds the same as your non-universal builds. The line is correct as written.

I was worried you had brought a macports.conf from Leopard or earlier where universal_archs was "ppc i386". But that doesn't appear to be the case. Instead, it appears to be the case that you installed some ports universal back when you were on Leopard or Tiger, then migrated to this machine and did update your macports.conf but didn't uninstall the ports that were already installed.

Yes, I'd uninstall and reinstall all ports, just to be sure they're built properly for Lion.

Finally, I specified the universal versions per the instructions on the page http://neunhoef.github.io/bob/#install for installing "bob" which itself installs and checks dependencies for the program GAP, which is what I really want to use. It seems I could do without the universal versions.

Hmm, that page doesn't explain very well why they're suggesting building those two dependencies universal (and not the others). Also their Fink instructions don't involve universal builds (though I'm actually not sure whether Fink supports universal builds). There's no harm in installing them universal, so you may as well do it the way they say to.

comment:6 Changed 10 years ago by ruberman@…

All set now; thanks again for your help.

comment:7 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Glad you got it working.

Note: See TracTickets for help on using tickets.