The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



Индекс форумов
Составление сообщения

Исходное сообщение
"Проблема с подключением к MySQL через PHP (Nibs)"
Отправлено Trans, 24-Окт-05 20:00 
Собственно вот такая вот проблема:
При попытке подключения выдаётся вот такая ошибка в браузер
Fatal error: Call to undefined function: session_start() in /stat/include/utils.php on line 22
Вычитал где-то что нужно ставить PHP4-extention чтоб избавится от этого,
но при попытке установки этого дополнения получаю:
0|/usr/ports/lang/php4-extensions#make install
===>  Installing for php4-extensions-1.0
===>   php4-extensions-1.0 depends on file: /usr/local/include/php/main/php.h - found
===>   php4-extensions-1.0 depends on file: /usr/local/lib/php/20020429/ctype.so - found
===>   php4-extensions-1.0 depends on file: /usr/local/lib/php/20020429/mysql.so - not found
===>    Verifying install for /usr/local/lib/php/20020429/mysql.so in /usr/ports/databases/php4-mysql
===>   php4-mysql-4.3.10_2 depends on executable: phpize - found
===>   php4-mysql-4.3.10_2 depends on file: /usr/local/bin/automake15 - found
===>   php4-mysql-4.3.10_2 depends on file: /usr/local/bin/autoconf253 - found
===>   php4-mysql-4.3.10_2 depends on file: /usr/local/bin/libtool13 - found
===>   php4-mysql-4.3.10_2 depends on shared library: mysqlclient.14 - found
===>  PHPizing for php4-mysql-4.3.10_2
autoheader: `config.h.in' is unchanged
You should update your `aclocal.m4' by running aclocal.
Configuring for:
  PHP Api Version:   20020918
  Zend Module Api No:   20020429
  Zend Extension Api No:   20021010
===>  Configuring for php4-mysql-4.3.10_2
configure: WARNING: you should use --build, --host, --target
checking build system type... i386-portbld-freebsd5.4
checking host system type... i386-portbld-freebsd5.4
checking for i386-portbld-freebsd5.4-gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking whether cc understands -c and -o together... yes
checking if compiler supports -R... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... no
checking for the location of libz... /usr
checking for MySQL UNIX socket location... no
checking for char... yes
checking size of char... 1
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for uid_t in sys/types.h... no
checking for type ulong... no
checking for type uchar... no
checking for type uint... yes
checking for type ushort... yes
checking for int8... no
checking base type of last arg to accept... socklen_t
checking return type of qsort... void
checking for mysql_close in -lmysqlclient... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... no
configure: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: dlfcn.h: proceeding with the preprocessor's result
checking for dlfcn.h... no
checking how to run the C++ preprocessor... c++ -E
checking for i386-portbld-freebsd5.4-g77... no
checking for i386-portbld-freebsd5.4-f77... no
checking for i386-portbld-freebsd5.4-xlf... no
checking for i386-portbld-freebsd5.4-cf77... no
checking for i386-portbld-freebsd5.4-cft77... no
checking for i386-portbld-freebsd5.4-frt... no
checking for i386-portbld-freebsd5.4-pgf77... no
checking for i386-portbld-freebsd5.4-fl32... no
checking for i386-portbld-freebsd5.4-af77... no
checking for i386-portbld-freebsd5.4-fort77... no
checking for i386-portbld-freebsd5.4-f90... no
checking for i386-portbld-freebsd5.4-xlf90... no
checking for i386-portbld-freebsd5.4-pgf90... no
checking for i386-portbld-freebsd5.4-epcf90... no
checking for i386-portbld-freebsd5.4-f95... no
checking for i386-portbld-freebsd5.4-fort... no
checking for i386-portbld-freebsd5.4-xlf95... no
checking for i386-portbld-freebsd5.4-lf95... no
checking for i386-portbld-freebsd5.4-g95... no
checking for i386-portbld-freebsd5.4-fc... no
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... (cached) 65536
checking command to parse nm output from cc object... ok
checking for objdir... .libs
checking for i386-portbld-freebsd5.4-ar... no
checking for ar... ar
checking for i386-portbld-freebsd5.4-ranlib... no
checking for ranlib... ranlib
checking for i386-portbld-freebsd5.4-strip... no
checking for strip... strip
checking if cc static flag  works... yes
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... freebsd5.4 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC...
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd5.4 ld.so
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 supports -c -o file.o... yes
checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd5.4 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
configure: error: tag name "CXX" already exists
===>  Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/databases/php4-mysql/work/php-4.3.10/ext/mysql/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/databases/php4-mysql.
*** Error code 1

Stop in /usr/ports/lang/php4-extensions.

Кто нить может объяснить в чём тут дело???? Как это лечить? Может мне не нужен extention? Может стоит поставить какой-то один пакет чтоб избавится от ошибки подключения к БД?
ХЕЛП ПЛИЗ!

 

Ваше сообщение
Имя*:
EMail:
Для отправки новых сообщений в текущей нити на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.

На сайте действует частичное премодерирование - после публикации некоторые сообщения от анонимов могут автоматически скрываться ботом. После проверки модератором ошибочно скрытые сообщения раскрываются. Для ускорения раскрытия можно воспользоваться ссылкой "Сообщить модератору", указав в качестве причины обращения "скрыто по ошибке".



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру