intero Posted May 2, 2006 Report Share Posted May 2, 2006 Sveicināti .. Man ir radusies liela problēma .... Instalēju PHP 5.1.2 uz Slackware 10.2. 1. atarhivēju 5.1....tar.gz 2. copmilēju ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql-dir=/usr/local/mysql --with-zlib-dir=/usr 3. make && make install Uzmetu uz web servera phpMyAdmin un tas izmet paziņojumu: Cannot load mysql extension. Please check your PHP configuration. - Documentation dokomentācijaa: To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed. Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar. Interesanti tas ka Peec instalācijas visaa failusystēmā nav atrodams "mysql.so", php modulis... Vai kaadam ir kaadas idejas ??? Paldies :| PS. Apache 2.0 Mysql 5 Link to comment Share on other sites More sharing options...
v3rb0 Posted May 2, 2006 Report Share Posted May 2, 2006 vai php 5.1 nevajadzēja mysqli.so? Link to comment Share on other sites More sharing options...
intero Posted May 2, 2006 Author Report Share Posted May 2, 2006 Kaa nevajadzeeja ???? Man shkiet ka vajag, bet kaadeel vina nav ? php.ini ie jaapieliek extension = mysql.so Link to comment Share on other sites More sharing options...
intero Posted May 3, 2006 Author Report Share Posted May 3, 2006 (edited) Vai kaads var paliidzeet ????? :( Edited May 3, 2006 by intero Link to comment Share on other sites More sharing options...
Roze Posted May 3, 2006 Report Share Posted May 3, 2006 Kas ir '--with-mysql-dir' ??? Idejiski tāda konfigurācijas parametra nav.. Ieliec pie configures --with-mysql=/usr .. un nē php5 nevajag obligāti mysqli viņu var likt opcionāli ja gribās izmantot advanced fīčas Link to comment Share on other sites More sharing options...
intero Posted May 8, 2006 Author Report Share Posted May 8, 2006 # ps -ef mysql 7209 7191 0 Apr27 ? 00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --pid-file mysql 7210 7209 0 Apr27 ? 00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --pid-file mysql 7211 7210 0 Apr27 ? 00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --pid-file ........... >>> Ar --with-mysql=/usr #./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql-dir=/usr/local/mysql --with-mysql=/usr --with-zlib-dir=/usr ..... checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no configure: error: Cannot find MySQL header files under /usr. Note that the MySQL client library is not bundled anymore! >>> Ar --with-mysql=/usr/local/mysql #./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql-dir=/usr/local/mysql --with-mysql=/usr/local/mysql --with-zlib-dir=/usr ..... checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. Link to comment Share on other sites More sharing options...
Roze Posted May 8, 2006 Report Share Posted May 8, 2006 Nejau tev mysql procesu vajag bet gan kur tev ir mysql.h un libmysqlclient.(so|a) ... tā kā skaties vai tev ir mysql-devel, mysql-shared un mysql-client packages.. kas arī skaidri rakstīts configure: error: Cannot find MySQL header files under /usr. Ja taisiji no sources mysqlu tad tam vajadzētu būt (turpat zem /usr/local/mysql/includes) .. un šito --with-mysql-dir=/usr/local/mysql var vākt napig.. Welcome to *ix :) Link to comment Share on other sites More sharing options...
intero Posted May 8, 2006 Author Report Share Posted May 8, 2006 (edited) mysql-devel, mysql-shared un mysql-client packages.. kur lai taaas pakas izrauj ??? visuur ir pilns ar tiem RPM prieksh redhat, bet source un tgz pakas nav. varbuut es kaut ko nesaprotu ... :) PS. es saprotu ka Slackware 10.2 jau saaak palikt par veesturi, bet ko lai dara ? Edited May 8, 2006 by intero Link to comment Share on other sites More sharing options...
v3rb0 Posted May 8, 2006 Report Share Posted May 8, 2006 (edited) no mysql.com novelc sourci un ieliec zem /usr/src (vai vienalga kur labāk patīk) un slackware nepaliek par vēsturi - tā ir mūžīga vērtība ;) Edited May 8, 2006 by v3rb0 Link to comment Share on other sites More sharing options...
intero Posted May 9, 2006 Author Report Share Posted May 9, 2006 nu bet man nav vajadziigs mysql 5 source.. Man ir vajadziigas mysql libi: mysql-devel, mysql-shared un mysql-client .... mysql man jau ir uzlikts un tiiri labi straadaa :) tikai PHP nekompileejaas un met aaraaa checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no Link to comment Share on other sites More sharing options...
intero Posted May 11, 2006 Author Report Share Posted May 11, 2006 no mysql.com novelc sourci un ieliec zem /usr/src (vai vienalga kur labāk patīk) Novilku un uzliku MYSQL Source viss uzlikās loti smuki ... Liku PHP un tagad nokompilējās, tomēr bez rezultātiem. :( uztaisu php ar Select no mysql tomeer liidz selectam netiek :P Fatal error: Call to undefined function mysql_connect() in /usr/local/apache2/htdocs/test/index.php on line 8 Link to comment Share on other sites More sharing options...
Recommended Posts