Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#69417 closed defect (invalid)

mysql8 install fails on Sonoma OSX running on m1

Reported by: RayMeadows Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc:
Port: mysql8

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Change History (7)

comment:1 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

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

comment:2 Changed 3 months ago by RayMeadows

I followed the instructions to uninstall and reinstall and that solved the problem so I could install mysql 8. Unfortunately it seems I cannot access it via the preferences pane so I'm giving up and I'll install using the package from MySQL. The preference pane shows the old mysql 5.6 from the intel time machine transfer.

comment:3 Changed 3 months ago by kencu (Ken)

Summary: mysql8 install fails on Sonoma OSX running on m1mysql8: doesn’t install the PrefPane

comment:4 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

It's not a good idea to change tickets to be about a completely different issue.

You're right, I don't think any of the mysql ports install the preference pane. What would you use the preference pane for if we did install it? Looking at screenshots of the preference pane, it looks like it allows you to start and stop MySQL, initialize a database, set configuration parameters, and uninstall MySQL. In MacPorts, all of those tasks would be accomplished on the command line. (The one task not described there—uninstalling MySQL—would be accomplished with sudo port uninstall.)

comment:5 Changed 3 months ago by RayMeadows

I was just letting you know that you can consider this resolved from my point of view. The problem was that I used time machine to move data and applications from an intel based mac to an m1 mac which caused the failure to install mysql8. I'm a relative novice at using Macports (having not used it in at least 5 years). So the preference pane switches are just easier for me to use going forward rather than looking up command line statements. Thank you for the guidance.

comment:6 Changed 3 months ago by kencu (Ken)

Resolution: invalid
Status: newclosed
Summary: mysql8: doesn’t install the PrefPanemysql8 install fails on Sonoma OSX running on m1

OK.

comment:7 Changed 3 months ago by kencu (Ken)

As Ryan suggests, if there is to be a new ticket about the lack of a prefpane, he would like that to be a new different ticket.

I was just tryin' to save a bit of time forcing you to open a new ticket as the resolution of this ticket was so trivial we could repurpose it.

Note: See TracTickets for help on using tickets.