我尝试将mysql advanced 5.7.19安装到Solaris SPARC 64bit上的非默认位置
非默认位置:/opt/app/mysql
但面临以下错误:
在pkgadd期间: ld.so.1:mysqld:fatal:libstdc ++。so.6:找不到版本'GLIBCXX_3.4.20'(文件bin / mysqld需要)
在mysql_install_db期间:ld.so.1:mysql_install_db:致命:libstdc ++。so.6:找不到版本'GLIBCXX_3.4.20'(文件mysql_install_db需要)
以下是我的步骤:
# working directory: /export/home/admin
root@host:/export/home/admin# cat /var/sadm/install/admin/custom
basedir=/opt/app/$PKGINST
root@host:/export/home/admin# pkgadd -a custom -d mysql-advanced-5.7.19-solaris11-sparc-64bit.pkg
...
Executing postinstall script.
ld.so.1: mysqld: fatal: libstdc++.so.6: version 'GLIBCXX_3.4.20' not found (required by file bin/mysqld)
ld.so.1: mysqld: fatal: libstdc++.so.6: open failed: No such file or directory
/var/sadm/pkg/mysql/install/postinstall: line 89: 7487: Killed
...
Installation of <mysql> was successful.
You have mail in /var/mail/root
# Change permission on /opt/app/mysql
root@host:/opt/app# chown -R mysql:mysql /opt/app/mysql
# Change to user: mysql
root@host:/opt/app# su - mysql
mysql@host:~$ cd /opt/app/mysql/mysql/bin
mysql@host:/opt/app/mysql/mysql/bin$ ./mysql_install_db --user=mysql --ldata=/opt/app/mysql/mysql/data
ld.so.1: mysql_install_db: fatal: libstdc++.so.6: version 'GLIBCXX_3.4.20' not found (required by file mysql_install_db)
ld.so.1: mysql_install_db: fatal: libstdc++.so.6: open failed: No such file or directory
Killed
问题: