Mac ports installment of gcc46 falling short as a result of style troubles

When attempting to install gcc46 on OS X 10.6.4 making use of port (MacPorts 1.9.1) i get the list below mistakes:

artemis:foo$ sudo port install gcc46
Error: Cannot install gcc46 for the arch(s) 'x86_64' because
Error: its dependency gmp is only installed for the arch 'i386'
Error: and the configured universal_archs 'ppc i386' are not sufficient.
Error: Unable to execute port: architecture mismatch

MacPorts was fresh mounted on the 10.6 system.

Any kind of pointers on just how to settle this or just how to install gcc46 for i386?

(Formerly asked and also already unanswered on SuperUser.)

0
2019-05-04 09:59:08
Source Share
Answers: 2

For some factor the universal_archs arrangements was incorrect. A solution on SuperUser currently functioned :

  • in /opt/local/etc/macports/ duplicate macports.conf.default to macports.conf
  • see to it universal_archs in it is readied to x86_64 i386
  • currently go with tidy installs, as an example by adhering to the migration instructions
0
2019-05-08 11:06:01
Source

Try mounting first gmp just with the universal alternative :

sudo port install gmp +global

Then re-install gcc46.

0
2019-05-07 23:57:07
Source