I'm trying to install this mysql package (v5.7.20-1) in Antergos linux and kept failed with this error message:
...
CMakeFiles/mysqltest_embedded.dir/__/__/client/mysqltest.cc.o: In function `main':
/tmp/pamac-build-user1/mysql/src/mysql-5.7.20/client/mysqltest.cc:9251: undefined reference to `mysql_options'
/tmp/pamac-build-user1/mysql/src/mysql-5.7.20/client/mysqltest.cc:9248: undefined reference to `mysql_options'
/tmp/pamac-build-user1/mysql/src/mysql-5.7.20/client/mysqltest.cc:9524: undefined reference to `strmake'
/tmp/pamac-build-user1/mysql/src/mysql-5.7.20/client/mysqltest.cc:9519: undefined reference to `strmake'
CMakeFiles/mysqltest_embedded.dir/__/__/client/mysqltest.cc.o:(.data.rel+0x13e0): undefined reference to `my_charset_latin1'
collect2: error: ld returned 1 exit status
make[2]: *** [libmysqld/examples/CMakeFiles/mysqltest_embedded.dir/build.make:99: libmysqld/examples/mysqltest_embedded] Error 1
make[1]: *** [CMakeFiles/Makefile2:8309: libmysqld/examples/CMakeFiles/mysqltest_embedded.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I have made sure my system is up-to-date and I don't have mariadb and libmariasbclient installed.
Fed up with many retries which takes a lot of time to compile, I finally gave up and installed mariadb instead.
Pinned Comments
Muflone commented on 2023-08-16 17:21 (UTC) (edited on 2023-08-16 20:41 (UTC) by Muflone)
Warning
https://dev.mysql.com/doc/refman/8.1/en/downgrading.html
Downgrade from MySQL 8.1 to MySQL 8.0 or earlier is not supported. The only supported alternative is to restore a backup taken before upgrading. It is therefore imperative that you back up your data before starting the upgrade process.
MySQL 8.0 is available in https://aur.archlinux.org/packages/mysql80