Closed Stratus3D closed 2 years ago
That's a bug. The script uses pre-built binaries where possible, and it's downloaded one that's not compatible with M1.
M1 (arm64) binaries are only available from 8.0.26 and later, but that check isn't applied properly. I'll fix it now, but if you require an earlier MySQL, it'll need to be built from scratch. I'll work on adding support for that.
Thanks for the quick response. Getting the tools I need setup on this M1 Mac has turned into much more hassle than I expected. I'd love to have this plugin support Arm64 but I'm going to explore other methods for install MySQL 5.7 on this machine. Thanks!
No problem! Welcome to M1 land; I just switched over myself.
The fix for the supported pre-built binaries has been pushed, but it looks like building from source is non-trivial. It's not a rabbit hole I want to run down at the moment, but if anyone out there looking at this issue wants to submit a PR, I'd be happy to merge it.
Homebrew has a mysql@5.7 formula, but it doesn't allow you to choose specific versions.
I'm not sure this is isolated to being an Apple Silicon problem. I'm running into the same issue on an x86-64 2018 Mac Mini running macOS 12.4. It looks like the plugin is installing the Linux binaries as
file ${HOME}/.asdf/installs/mysql/5.7.38/bin/mysql
is reporting the type as
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=2a249cd436a903acbfe7631581e738b69f5e1c9f, with debug_info, not stripped
If I install the mysql@5.7
formula using brew, and check the type of the mysql
binary (file /usr/local/opt/mysql-client@5.7/bin/mysql
), I get
/usr/local/opt/mysql-client@5.7/bin/mysql: Mach-O 64-bit executable x86_64
That's really strange. I don't have an Intel Mac to test on. Can you send me the output of the following commands, please?
uname -s
uname -m
Hi, I am having the same issue with Intel MacOS x64 bit and the commands outputs these:
uname -s
Darwin
uname -m
x86_64
However I notice this is only happening on MySQL 5.7 installation
Yup, I see the issue. There are no binary releases for macs prior to 8.0.27. Building from source seems to be problematic, and typical of MySQL there's no solution or easily applied work around.
I've updated the plugin to throw an error when trying to install an earlier version on OSX.
If someone would like to submit a PR to support builds, I've started the work on the osx_build
branch, but got stuck on the above bug. The section of code that needs work is install:95.
I tried executing
/Users/~/.asdf/installs/mysql/5.7.38/bin/mysql_install_db
directly but got the same error.Output from
asdf info
:Any idea what might be causing this?