所以,我是计算机科学专业的新生,我从车库里挖了一台旧计算机,用作各种服务(电子邮件、网站、颠覆等)的个人托管服务器,部分原因是我实际上需要这些东西部分是为了学习体验。
WOPR(道具,如果您有参考资料)是一台已有 10 年以上历史的 Dell Dimension,配备 256 MB RAM 和 500MHz Intel Pentium III 处理器。它运行Arch Linux 2010.05(内核2.6.33);我下载了 MySQL 二进制文件从这里刚才尝试安装。
我按照 MySQL 文档中的此过程进行操作:
shell> groupadd mysql
shell> useradd -r -g mysql mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> bin/mysqld_safe --user=mysql &
shell> cp support-files/mysql.server /etc/init.d/mysql.server
我收到以下消息:
WARNING: The host 'WOPR' could not be looked up with resolveip. This probably means that your libc libraries are not 100 %
与此二进制 MySQL 版本兼容。 MySQL 守护进程 mysqld 应该正常工作,但主机名解析不起作用。这意味着在指定 MySQL 权限时应该使用 IP 地址而不是主机名!正在安装 MySQL 系统表..../bin/mysqld: 加载共享库时出错: libaio.so.1: 无法打开共享对象文件: 没有这样的文件或目录
Installation of system tables failed! Examine the logs in ./data for more information. You can try to start the mysqld daemon with: shell> ./bin/mysqld --skip-grant & and use the command line tool ./bin/mysql to connect to the mysql database and look at the grant tables: shell> ./bin/mysql -u root mysql mysql> show tables Try 'mysqld --help' if you have problems with paths. Using --log gives you a log in ./data that may be helpful. Please consult the MySQL manual section 'Problems running mysql_install_db', and the manual section that describes problems on your OS. Another information source are the MySQL email archives available at http://lists.mysql.com/. Please check all of the above before mailing us! And remember, if you do mail us, you MUST use the ./bin/mysqlbug script!
我已经从最新版本的 Arch 安装了 glibc。有谁知道 libaio.so.1 是什么,它来自哪个包,以及它的依赖项可能是什么?
答案1
尝试从 AUR 安装 libaio:
aurbuild -s libaio