mysql — проблема с компиляцией php в ubuntu с использованием apt-src

я пытался скомпилировать php с помощью apt-src, и примерно через 20 минут в одном из тестов php не удается подключиться к 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 completeInstallation 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/

я запускаю компиляцию в соответствии с этот
я запускаю все как root
Заметьте, я собираю только php, и если есть способ отключить тесты в php, это было бы здорово.

1

Решение

В исходном каталоге откройте файл правил debian/rules,

Найти строку RUN_TESTS = yes и закомментируйте это как #RUN_TESTS = yes ,

Тогда тесты не будут выполняться во время сборки.

3

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector