FreeBSD 9, PHP5 не устанавливается.

Простые/общие вопросы по UNIX системам. Спросите здесь, если вы новичок

Модераторы: vadim64, terminus

Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Charlz_Klug_
проходил мимо

FreeBSD 9, PHP5 не устанавливается.

Непрочитанное сообщение Charlz_Klug_ » 2012-01-23 10:28:47

Задумал обновить FreeBSD 8.2 amd64 до FreeBSD 9.0. Обновление сделал, обновление прошло гладко. После make delete-old-libs перестали работать многие порты. Начал по очереди пересобирать порты. Тоже гладко проходило, после пересборки программы начинали работать. И тут дошёл до php. А вот php ни в какую не хочет пересобраться. Выдаёт сообщение:
[Charlz_Klug@Meleena /usr/ports/lang/php5]$ sudo make reinstall
[Много букв]
Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/local
checking for xml2-config path... /usr/local/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.
===> Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/lang/php5/work/php-5.3.9/config.log" including the output of the
failure of your make command. Also, it might be a good idea to provide an
overview of all packages installed on your system (e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.
Почитал config.log, примечательные строки:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was

$ ./configure --with-layout=GNU --localstatedir=/var --with-config-file-scan-dir=/usr/local/etc/php --disable-all --enable-libxml --enable-mysqlnd --with-libxml-dir=/usr/local --with-pcre-regex=/usr/local --with-zlib-dir=/usr --program-prefix= --with-apxs2=/usr/local/sbin/apxs --with-regex=php --with-zend-vm=CALL --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=amd64-portbld-freebsd9.0
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:4456: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:4753: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
Выборка по ошибкам:
[Charlz_Klug@Meleena /usr/ports/lang/php5]$ cat /usr/ports/lang/php5/work/php-5.3.9/config.log |grep error
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
conftest.c:52:26: error: minix/config.h: No such file or directory
conftest.c:19:26: error: minix/config.h: No such file or directory
conftest.c:62:53: error: ApplicationServices/ApplicationServices.h: No such file or directory
conftest.c:66:20: error: alloca.h: No such file or directory
conftest.c:69:19: error: crypt.h: No such file or directory
conftest.c:69:17: error: dns.h: No such file or directory
conftest.c:94:24: error: sys/statfs.h: No such file or directory
conftest.c:95:21: error: sys/vfs.h: No such file or directory
conftest.c:95:26: error: sys/sysexits.h: No such file or directory
conftest.c:95:25: error: sys/varargs.h: No such file or directory
conftest.c:96:25: error: sys/loadavg.h: No such file or directory
conftest.c:98:18: error: unix.h: No such file or directory
| /* Override any GCC internal prototype to avoid an error.
conftest.c:144: error: expected expression before ')' token
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
configure:19816: checking for gai_strerror
| /* Override any GCC internal prototype to avoid an error.
configure:19816: checking for perror
| /* Override any GCC internal prototype to avoid an error.
configure:19816: checking for strerror
conftest.c:197:20: error: alloca.h: No such file or directory
conftest.c:209: error: too many arguments to function 'asctime_r'
conftest.c:207: error: too many arguments to function 'asctime_r'
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
configure:23683: error: build test failed. Please check the config.log for details.
ac_cv_func_gai_strerror=yes
ac_cv_func_perror=yes
ac_cv_func_strerror=yes
В конце файла:
[Charlz_Klug@Meleena /usr/ports/lang/php5]$ tail -n 20 /usr/ports/lang/php5/work/php-5.3.9/config.log
#define MAGIC_QUOTES 0
#define DEFAULT_SHORT_OPEN_TAG "1"
#define HAVE_IPV6 1
#define SIZEOF_LONG 8
#define SIZEOF_INT 4
#define HAVE_INT32_T 1
#define HAVE_UINT32_T 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRING_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRTOLL 1
#define HAVE_ATOLL 1
#define HAVE_STRFTIME 1
#define HAVE_REGEX_T_RE_MAGIC 1
#define HSREGEX 1
#define REGEX 1

configure: exit 1
Ближе к концу файла нашёл записи в логе:
configure:23643: checking whether libxml build works
configure:23670: cc -o conftest -O2 -pipe -fno-strict-aliasing -fvisibility=hidden -R/usr/local/lib -L/usr/local/lib confte

-lcrypt -lm -pthread -lcrypt -lxml2 -lz -liconv -lm >&5
/usr/bin/ld: warning: libz.so.5, needed by /usr/local/lib/libxml2.so, not found (try using -rpath or -rpath-link)
configure:23670: $? = 0
configure:23670: ./conftest
Shared object "libz.so.5" not found, required by "libxml2.so.5"configure:23670: $? = 1
configure: program exited with status 1
Как починить?

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Charlz_Klug_
проходил мимо

Re: FreeBSD 9, PHP5 не устанавливается.

Непрочитанное сообщение Charlz_Klug_ » 2012-01-23 10:34:13

[Charlz_Klug@Meleena /lib]$ locate libz.so.5
/lib/libz.so.5
[Charlz_Klug@Meleena /lib]$ ls|grep libz
libz.so.6
libzfs.so.2
libzpool.so.2
Это интересно.

Charlz_Klug_
проходил мимо

Re: FreeBSD 9, PHP5 не устанавливается.

Непрочитанное сообщение Charlz_Klug_ » 2012-01-23 10:40:07

Настройки portsnap'а:
[Charlz_Klug@Meleena /etc]$ cat portsnap.conf|grep -v "#"



SERVERNAME=portsnap.FreeBSD.org

KEYPRINT=9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330


INDEX INDEX-7 DESCRIBE.7
INDEX INDEX-8 DESCRIBE.8
INDEX INDEX-9 DESCRIBE.9
[Charlz_Klug@Meleena /etc]$

Charlz_Klug_
проходил мимо

Re: FreeBSD 9, PHP5 не устанавливается.

Непрочитанное сообщение Charlz_Klug_ » 2012-01-23 10:45:17

weec подсказывает:

Код: Выделить всё

> 1. cd /usr/src
> 2. make build32
> 3. make install32
> 4. ldconfig -32 /usr/lib32
Прокатит такой финт? Или нет? Мне что-то как-то боязно.

Charlz_Klug_
проходил мимо

Re: FreeBSD 9, PHP5 не устанавливается.

Непрочитанное сообщение Charlz_Klug_ » 2012-01-23 11:34:08

Лечением оказалась установка /usr/ports/misc/compat8x . Нашёл здесь. А чтобы совсем всё стало кошерно, думаю поступить так.

Аватара пользователя
Spook1680
лейтенант
Сообщения: 994
Зарегистрирован: 2009-07-28 12:26:09

Re: FreeBSD 9, PHP5 не устанавливается.

Непрочитанное сообщение Spook1680 » 2012-01-27 22:17:25

Charlz_Klug_ писал(а):Лечением оказалась установка /usr/ports/misc/compat8x . Нашёл здесь. А чтобы совсем всё стало кошерно, думаю поступить так.
Доброго всем.
На тестовом серваке пробовал с 8.2 на 9.0 перейти ... (все ок. обновлени прошло на ура, обновлялся по ssh)
НО).. использовал утилиту mergemaster.. где можно было накасячить)? После перезагрузки в самом завершении... система загружается и все хорошо... НО зайти по ssh уже не получается ... ... пароли пользователя и root .. тю-тю слетели.. нет таких. Естественно по ssh уже не пустит.
Где накосячил?
Вроде где-то в ханбуке про файл профайл .. читал.. Может его обновил и такая бяка полезла? Кто рулит, подскажите!
"Гента вообще форкLFS в свою очередь мутант Скалвари
которая BSD с ядром Линя BSD - мутировал-AT&T UNIX
а там был UNICS - MULTICS, счёты, глиняные таблички, палочки,
большой взрыв, сингулярность, пиз...ц. Вывод: RedHat использует пиз..ц. "

Charlz_Klug_
проходил мимо

Re: FreeBSD 9, PHP5 не устанавливается.

Непрочитанное сообщение Charlz_Klug_ » 2012-01-28 11:54:40

Spook1680 писал(а): На тестовом серваке пробовал с 8.2 на 9.0 перейти ... (все ок. обновлени прошло на ура, обновлялся по ssh)
НО).. использовал утилиту mergemaster.. где можно было накасячить)? После перезагрузки в самом завершении... система загружается и все хорошо... НО зайти по ssh уже не получается ... ... пароли пользователя и root .. тю-тю слетели.. нет таких. Естественно по ssh уже не пустит.
Где накосячил?
Вообще, Я при работе с серверами веду файл, куда записываю все свои действия, которые произвёл на машине и по какой причине произвёл. Так мне удобно потом смотреть в случае факапа что Я натворил. Скорее всего Вы накосячили где-то здесь (пример взят с моего бортового журнала):
*** Displaying differences between ./etc/master.passwd and installed version:

--- /etc/master.passwd 2012-01-07 11:36:36.000000000 +0500
+++ ./etc/master.passwd 2012-01-20 21:53:55.000000000 +0500
@@ -1,6 +1,6 @@
-# $FreeBSD: src/etc/master.passwd,v 1.40.22.1.6.1 2010/12/21 17:09:25 kensmith Exp $
+# $FreeBSD: src/etc/master.passwd,v 1.42.2.1.2.1 2011/11/11 04:20:22 kensmith Exp $
#
-root:$1$FzK.CSuT$/a34jJQ7AXIUnZBRVNk/W1:0:0::0:0:Charlie &:/root:/bin/csh
+root::0:0::0:0:Charlie &:/root:/bin/csh
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
@@ -20,12 +20,5 @@
uucp:*:66:66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin
www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
+hast:*:845:845::0:0:HAST unprivileged user:/var/empty:/usr/sbin/nologin
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
-Charlz_Klug:$1$niOLa7cG$h8OdfyWDmfC5teJ6DnR8S0:1001:0:russian:0:0:Ametov Imil Ilimdarovich:/home/Charlz_Klug:/usr/local/bin/bash
-squid:*:100:100::0:0:Squid caching-proxy pseudo user:/var/squid:/usr/sbin/nologin
-mysql:*:88:88::0:0:MySQL Daemon:/var/db/mysql:/usr/sbin/nologin
-dhcpd:*:136:136::0:0:ISC DHCP daemon:/nonexistent:/usr/sbin/nologin
-nod32update:$1$gXq2Ve0I$/zDRzC8KdFlUuljEH9kGJ1:1002:14::0:0:NOD32 Update viewer:/home/nod32update:/bin/sh
-FreeBSD:$1$EmLfijN8$FDMdJfog76fn9Ag6g3Aks1:1003:0::0:0:Bekpulatov Baxtiyar Yuldashevich:/home/FreeBSD:/usr/local/bin/bash
-messagebus:*:556:556::0:0:D-BUS Daemon User:/nonexistent:/usr/sbin/nologin
-transmission:*:921:921::0:0:Transmission Daemon User:/usr/local/etc/transmission/home:/usr/sbin/nologin

Use 'd' to delete the temporary ./etc/master.passwd
Use 'i' to install the temporary ./etc/master.passwd
Use 'm' to merge the temporary and installed versions
Use 'v' to view the diff results again

Default is to leave the temporary file to deal with by hand

How should I deal with this? [Leave it for later]

Charlz_Klug_
проходил мимо

Re: FreeBSD 9, PHP5 не устанавливается.

Непрочитанное сообщение Charlz_Klug_ » 2012-01-28 11:56:14

Charlz_Klug_ писал(а):Лечением оказалась установка /usr/ports/misc/compat8x . Нашёл здесь. А чтобы совсем всё стало кошерно, думаю поступить так.
Пересобрал весь софт portupgrade'ом и удалил /usr/ports/misc/compat8x, всё работает в штатном режиме))