Я пытаюсь запустить скрипт Zend Framework в командной строке.Это работает хорошо, но каждый раз, когда я выполняю скрипт php, он возвращает мне много предупреждений и ошибок, в чем проблема?и как я могу решить эту проблему?
Я положил zend php.ini в / etc /, потому что этот каталог используется по умолчанию моей командной строкой, когда я пытаюсь использовать 'php -c / usr / local / zend/ etc / script.php 'Это дает мне те же ошибки.
ошибки из командной строки;
leny-pc:scripts nickyklaasse$ php -i | grep php.ini
Failed loading /usr/local/zend/lib/ZendExtensionManager.so: dlopen(/usr/local/zend/lib/ZendExtensionManager.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/ZendExtensionManager.so: mach-o, but wrong architecture
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/bcmath.so' - dlopen(/usr/local/zend/lib/php_extensions/bcmath.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/bcmath.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/calendar.so' - dlopen(/usr/local/zend/lib/php_extensions/calendar.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/calendar.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/curl.so' - dlopen(/usr/local/zend/lib/php_extensions/curl.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/curl.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/exif.so' - dlopen(/usr/local/zend/lib/php_extensions/exif.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/exif.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/ftp.so' - dlopen(/usr/local/zend/lib/php_extensions/ftp.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/ftp.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/gettext.so' - dlopen(/usr/local/zend/lib/php_extensions/gettext.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/gettext.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/posix.so' - dlopen(/usr/local/zend/lib/php_extensions/posix.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/posix.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/soap.so' - dlopen(/usr/local/zend/lib/php_extensions/soap.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/soap.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/sqlite.so' - dlopen(/usr/local/zend/lib/php_extensions/sqlite.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/sqlite.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/tokenizer.so' - dlopen(/usr/local/zend/lib/php_extensions/tokenizer.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/tokenizer.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/xmlreader.so' - dlopen(/usr/local/zend/lib/php_extensions/xmlreader.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/xmlreader.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/xsl.so' - dlopen(/usr/local/zend/lib/php_extensions/xsl.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/xsl.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/zip.so' - dlopen(/usr/local/zend/lib/php_extensions/zip.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/zip.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/imap.so' - dlopen(/usr/local/zend/lib/php_extensions/imap.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/imap.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/ldap.so' - dlopen(/usr/local/zend/lib/php_extensions/ldap.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/ldap.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/mysql.so' - dlopen(/usr/local/zend/lib/php_extensions/mysql.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/mysql.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/mysqli.so' - dlopen(/usr/local/zend/lib/php_extensions/mysqli.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/mysqli.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/json.so' - dlopen(/usr/local/zend/lib/php_extensions/json.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/json.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/tidy.so' - dlopen(/usr/local/zend/lib/php_extensions/tidy.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/tidy.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/pgsql.so' - dlopen(/usr/local/zend/lib/php_extensions/pgsql.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/pgsql.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/gd.so' - dlopen(/usr/local/zend/lib/php_extensions/gd.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/gd.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/mcrypt.so' - dlopen(/usr/local/zend/lib/php_extensions/mcrypt.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/mcrypt.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/ctype.so' - dlopen(/usr/local/zend/lib/php_extensions/ctype.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/ctype.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/sockets.so' - dlopen(/usr/local/zend/lib/php_extensions/sockets.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/sockets.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/bz2.so' - dlopen(/usr/local/zend/lib/php_extensions/bz2.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/bz2.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/mbstring.so' - dlopen(/usr/local/zend/lib/php_extensions/mbstring.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/mbstring.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/intl.so' - dlopen(/usr/local/zend/lib/php_extensions/intl.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/intl.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/fileinfo.so' - dlopen(/usr/local/zend/lib/php_extensions/fileinfo.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/fileinfo.so: mach-o, but wrong architecture in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/phar.so' - dlopen(/usr/local/zend/lib/php_extensions/phar.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/phar.so: mach-o, but wrong architecture in Unknown on line 0
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /private/etc/php.ini
Спасибо за совет,
Ники