[MacPorts] #69417: mysql8 install fails on Sonoma OSX running on m1

MacPorts noreply at macports.org
Wed Feb 28 21:01:17 UTC 2024


#69417: mysql8 install fails on Sonoma OSX running on m1
-------------------------+--------------------
  Reporter:  RayMeadows  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.9.1
Resolution:              |   Keywords:
      Port:  mysql8      |
-------------------------+--------------------

Old description:

> I used MacPorts to try to install mysql 8 on a Mac with M1 chip.  I got
> this error:Cannot install mysql8 for the arch 'arm64' because its
> dependency libedit is only installed for the arch 'x86_64' and the
> configured universal_archs 'x86_64 i386' are not sufficient. How can I
> fix this and install mysql 8?
> I tried a workaround suggested by ChatGPT - adding arm64 to the
> universal_archs line in the configuration file and then installing
> libedit for arm64 architecture.
> This did not solve the problem. the most relevant error message seems to
> be this: Failed to activate gettext-runtime: Image error:
> /opt/local/bin/envsubst is being used by the active gettext port.  Please
> deactivate this port first, or use 'port -f activate gettext-runtime' to
> force the activation.

New description:

 I used MacPorts to try to install mysql 8 on a Mac with M1 chip.  I got
 this error:
 {{{
 Cannot install mysql8 for the arch 'arm64' because its dependency libedit
 is only installed for the arch 'x86_64' and the configured universal_archs
 'x86_64 i386' are not sufficient.
 }}}
 How can I fix this and install mysql 8?
 I tried a workaround suggested by ChatGPT - adding arm64 to the
 universal_archs line in the configuration file and then installing libedit
 for arm64 architecture.
 This did not solve the problem. the most relevant error message seems to
 be this:
 {{{
 Failed to activate gettext-runtime: Image error: /opt/local/bin/envsubst
 is being used by the active gettext port.  Please deactivate this port
 first, or use 'port -f activate gettext-runtime' to force the activation.
 }}}

--

Comment (by ryandesign):

 Sounds like you copied an old MacPorts installation from an Intel Mac to
 your Apple Silicon Mac. Check out the [wiki:Migration migration
 instructions] for all the steps you should perform in that case.

-- 
Ticket URL: <https://trac.macports.org/ticket/69417#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list