AF
Asterisk Forum
обсуждения телефонии, VoIP и IP-PBX
12разделов
5 423тем
34 385сообщений
← К списку тем

проблема с pear db!!!помогите

Asterisk IP PBX 4 сообщений -
#1

Добрый вечер, подскажите пожалуйста.
при установке Freepbx 2.8 выдает следующие ошибки:

Код:

freepbx-2.8.0| ./install_amp
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
Checking for PEAR DB..FAILED
[FATAL] PEAR must be installed (requires DB.php). Include path: .:/usr/lib/php/pear:/usr/local/lib/php/pear



при установки PEAR DB:


Код:
freepbx-2.8.0| pear install db
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
WARNING: running in safe mode requires that all files created be the same uid as the current script. PHP reports this script is uid: 0, and current user is: root
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
Skipping package "pear/DB", already installed as version 1.7.13
No valid packages found
install failed



Я уже все перепробовал, ни как не могу понять в чем проблема.(((
#2

может всё-таки стоит ставить стандартными средствами линукса?
#3

У меня такаяже проблема CentOS 5.6 x64
Код:

[root@gateway freepbx-2.8.1]# uname -a
Linux gateway 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

При попытке запустить установку freepbx выдает
Код:

[root@gateway freepbx-2.8.1]# ./install_amp
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
Checking for PEAR DB..FAILED
[FATAL] PEAR must be installed (requires DB.php). Include path: .:/usr/share/pear:/local/PEAR/

При попытке установить pear install db
Код:

[root@gateway freepbx-2.8.1]# pear install db
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
WARNING: running in safe mode requires that all files created be the same uid as the current script. PHP reports this script is uid: 500, and current user is: asterisk
downloading DB-1.7.13.tgz ...
Could not download from "http://pear.php.net/get/DB-1.7.13.tgz", cannot download "pear/db"
Error: cannot download "pear/DB"

Вот часть php.ini
Код:

[root@gateway freepbx-2.8.1]# cat /etc/php.ini | grep 'include'
; file, included in your PHP distribution.
; you can use $_REQUEST["foo"] (includes any variable that arrives through the
; function doesn't include/implement the missing class.
; (directory must also be in include_path or full path must
safe_mode_include_dir =
; E_ALL - All errors and warnings (doesn't include E_STRICT)
; error reporting includes E_WARNING in the allowed list
include_path = ".:/usr/share/pear:/local/PEAR/"
;include_path = ".:/php/includes"
;include_path = ".;c:\php\includes"
; form/fieldset are special; if you include them here, the rewriter will

А вот выдержка из функии phpinfo() Configure Command . Жирным выделил то что меня смущает.

'./configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear'--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/usr/share/file/magic.mime' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'

все ставил из репов
#4

не победили проблему? такая же беда ((