使用 apt-src 在 ubuntu 上编译 php 时遇到问题
having an issue compiling php on ubuntu using apt-src
我一直在尝试使用 apt-src 编译 php,并且在 php 测试之一中大约 20 分钟后尝试连接到 mysql 失败并攻击脚本制作这里的错误是setup-mysql.sh
的错误
150419 17:48:11 [Warning] Can't create test file /home/php-build/php5-5.5.9+dfsg/mysql_db/orangehrm-Inspiron-N5010.lower-test
150419 17:48:11 [Warning] Can't create test file /home/php-build/php5-5.5.9+dfsg/mysql_db/orangehrm-Inspiron-N5010.lower-test
ERROR: 1005 Can't create table 'db' (errno: 13)
150419 17:48:11 [ERROR] Aborting
150419 17:48:11 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/home/php-build/php5-5.5.9+dfsg/mysql_db for more information.
You can try to start the mysqld daemon with:
shell> /usr/sbin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /home/php-build/php5-5.5.9+dfsg/mysql_db 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 submitting a bug report
at http://bugs.mysql.com/
im 运行 根据this编译
我 运行 一切都以 root 身份
请注意,我只编译 php,如果有一种方法可以禁用 php 中的测试,那就太好了。
在源目录中,打开规则文件debian/rules
。
找到行 RUN_TESTS = yes
并将其注释掉 #RUN_TESTS = yes
.
然后,测试将不会在构建期间 运行。
我一直在尝试使用 apt-src 编译 php,并且在 php 测试之一中大约 20 分钟后尝试连接到 mysql 失败并攻击脚本制作这里的错误是setup-mysql.sh
的错误150419 17:48:11 [Warning] Can't create test file /home/php-build/php5-5.5.9+dfsg/mysql_db/orangehrm-Inspiron-N5010.lower-test
150419 17:48:11 [Warning] Can't create test file /home/php-build/php5-5.5.9+dfsg/mysql_db/orangehrm-Inspiron-N5010.lower-test
ERROR: 1005 Can't create table 'db' (errno: 13)
150419 17:48:11 [ERROR] Aborting
150419 17:48:11 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/home/php-build/php5-5.5.9+dfsg/mysql_db for more information.
You can try to start the mysqld daemon with:
shell> /usr/sbin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /home/php-build/php5-5.5.9+dfsg/mysql_db 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 submitting a bug report
at http://bugs.mysql.com/
im 运行 根据this编译 我 运行 一切都以 root 身份 请注意,我只编译 php,如果有一种方法可以禁用 php 中的测试,那就太好了。
在源目录中,打开规则文件debian/rules
。
找到行 RUN_TESTS = yes
并将其注释掉 #RUN_TESTS = yes
.
然后,测试将不会在构建期间 运行。