П.С. Сразу скажу что я далеко не "гуру" во фре, поэтому некоторые мои выражения/удвтерждения могут показаться смешными.Итак, на решил установить Cacti на сервак.
# cd /usr/ports/net-mgmt/cacti
после долгого компилирования выдает такую ошибку:
===> Installing for cacti-0.8.8a1
===> cacti-0.8.8a1 depends on executable: rrdtool - found
===> cacti-0.8.8a1 depends on file: /usr/local/include/php/main/php.h - found
===> cacti-0.8.8a1 depends on file: /usr/local/lib/php/20090626/mysql.so - not found
===> Verifying install for /usr/local/lib/php/20090626/mysql.so in /usr/ports/databases/php5-mysql
===> Building for php5-mysql-5.4.5
/bin/sh /usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/libtool --mode=compile cc -I. -I/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/include -I/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/main -I/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c -o php_mysql.lo
cc -I. -I/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/include -I/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/main -I/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c -fPIC -DPIC -o .libs/php_mysql.o
/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c:533:45: error: ext/mysqlnd/mysqlnd_reverse_api.h: No such file or directory
/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c:552: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mysql_reverse_api'
/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c: In function 'zm_startup_mysql':
/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c:587: error: 'mysql_reverse_api' undeclared (first use in this function)
/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c:587: error: (Each undeclared identifier is reported only once
/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c:587: error: for each function it appears in.)
/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c: In function 'zif_mysql_fetch_field':
/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c:2419: warning: passing argument 4 of 'add_property_string_ex' discards qualifiers from pointer target type
/usr/ports/databases/php5-mysql/work/php-5.4.5/ext/mysql/php_mysql.c:2420: warning: passing argument 4 of 'add_property_string_ex' discards qualifiers from pointer target type
*** Error code 1
1 error
*** Error code 1Stop in /usr/ports/databases/php5-mysql.
*** Error code 1Stop in /usr/ports/databases/php5-mysql.
*** Error code 1Stop in /usr/ports/net-mgmt/cacti.
помогите что с ней делать.. как избежать.
Кстати, на сервере успешно работает апач22+пхп5.
+ передустановкой какти установил майсклю, которая так же успешно запустилась.
Обновить порты?
> Обновить порты?Обновлял
pkg_version -v
> pkg_version -vСтранно, вроде обновлял, но посмотрев версию...
Щас обновлю , и отпишусь
#pkg_version -v | greep needsapache-2.2.21 < needs updating (port has 2.2.22_6)
autoconf-2.68 < needs updating (port has 2.69)
automake-1.11.1 < needs updating (port has 1.12.3)
gio-fam-backend-2.28.8 < needs updating (port has 2.28.8_1)
glib-2.28.8_2 < needs updating (port has 2.28.8_4)
help2man-1.40.4 < needs updating (port has 1.40.11)
libiconv-1.13.1_1 < needs updating (port has 1.14)
libslang2-2.2.4 < needs updating (port has 2.2.4_3)
libtool-2.4_1 < needs updating (port has 2.4.2)
libxml2-2.7.8_1 < needs updating (port has 2.7.8_3)
lua-5.1.4_6 < needs updating (port has 5.1.5_4)
m4-1.4.16,1 < needs updating (port has 1.4.16_1,1)
mc-4.7.5.5_1 < needs updating (port has 4.8.1.1_1)
net-snmp-5.7.1_2 < needs updating (port has 5.7.1_7)
nmap-5.61.t2 < needs updating (port has 6.01)
pcre-8.20 < needs updating (port has 8.31)
perl-5.12.4_3 < needs updating (port has 5.12.4_4)
php5-5.3.8 < needs updating (port has 5.4.5)
php5-ctype-5.3.8 < needs updating (port has 5.4.5)
php5-dom-5.3.8 < needs updating (port has 5.4.5)
php5-extensions-1.6 < needs updating (port has 1.7)
php5-filter-5.3.8 < needs updating (port has 5.4.5)
php5-hash-5.3.8 < needs updating (port has 5.4.5)
php5-iconv-5.3.8 < needs updating (port has 5.4.5)
php5-json-5.3.8 < needs updating (port has 5.4.5)
php5-pdo-5.3.8 < needs updating (port has 5.4.5)
php5-pdo_sqlite-5.3.8 < needs updating (port has 5.4.5)
php5-phar-5.3.8 < needs updating (port has 5.4.5)
php5-posix-5.3.8 < needs updating (port has 5.4.5)
php5-session-5.3.8 < needs updating (port has 5.4.5)
php5-simplexml-5.3.8 < needs updating (port has 5.4.5)
php5-snmp-5.3.8 < needs updating (port has 5.4.5)
php5-sqlite-5.3.8 < needs updating (port has 5.4.5)
php5-sqlite3-5.3.8 < needs updating (port has 5.4.5)
php5-tokenizer-5.3.8 < needs updating (port has 5.4.5)
php5-xml-5.3.8 < needs updating (port has 5.4.5)
php5-xmlreader-5.3.8 < needs updating (port has 5.4.5)
php5-xmlwriter-5.3.8 < needs updating (port has 5.4.5)
phpmailer-5.1 < needs updating (port has 5.2.1)
python27-2.7.2_3 < needs updating (port has 2.7.3_3)
sqlite3-3.7.9 < needs updating (port has 3.7.13)
tcl-8.5.11 < needs updating (port has 8.5.12)
tcl-modules-8.5.11 < needs updating (port has 8.5.12)
Дальше сам или не понял?
> Дальше сам или не понял?Я чайник, но простые азы понял.
Нагуглил утилиту portupgrade , и щас обновлю php-mysql 5.3.8
... и другие порты заодно)
Спасиб. Как будет какойнибудь результат - напишу.
>> Дальше сам или не понял?
> Я чайник, но простые азы понял.
> Нагуглил утилиту portupgrade , и щас обновлю php-mysql 5.3.8
> ... и другие порты заодно)
> Спасиб. Как будет какойнибудь результат - напишу.portsnap fetch
portsnap extractничего ставить не надо.
А можно ли, в разных терминалах обновлять разные порты? всё зависит от возможности проца или лучше по очереди обновлять/компилировать?
make -C /usr/ports/databases/php5-mysql config
[ ] MYSQLND Use MySQL Native Drivermake -C /usr/ports/net-mgmt/cacti install clean
Помогло полное обновление портов. Большое спасибо за помощь.
Закрывайте тему =)