Jump to content

HippoMan

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

HippoMan's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [NOTE: I'm not sure if this thread should be here or in the Mysql forum; if it needs to be moved, please accept my apology] I'm trying to build PHP 5.2.6 under a debian system (see the http://www.phpfreaks.com/forums/index.php/topic,221413.msg1017436.html#msg1017436 topic for a discussion as to why I have to build this from source and not use the debian package system). Although I'm properly specifying --with-mysqli=/usr/bin/mysql_config to configure, and although there are no configure or compile errors, no mysqli.so ends up in my modules subdirectory after the build. I'm puzzled by this, and I'm hoping that someone here might shed some light on this problem. Here are some specifics: /usr/bin/mysql_config exists and is properly runnable. The installed version of the mysql-client, mysql-server, mysql-common, libmysqlclient15-dev, and libmysqlclient15off packages is 5.0.32 for all of them. The following lines appear during configure: checking for MySQL support... yes, shared checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/run/mysqld/mysqld.sock checking for mysql_close in -lmysqlclient... yes checking for MySQLi support... yes checking whether to enable embedded MySQLi support... no checking for mysql_set_server_option in -lmysqlclient... yes checking for mysql_stmt_field_count in -lmysqlclient... yes The following lines appear during the build (note that some of these lines got split during copy-and-paste from my typescript file): bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/ php-5.2.6/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo /bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/ php-5.2.6/ext/mysqli/mysqli_api.c -o ext/mysqli/mysqli_api.lo /bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/ php-5.2.6/ext/mysqli/mysqli_prop.c -o ext/mysqli/mysqli_prop.lo /bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/ php-5.2.6/ext/mysqli/mysqli_nonapi.c -o ext/mysqli/mysqli_nonapi.lo /bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/ php-5.2.6/ext/mysqli/mysqli_fe.c -o ext/mysqli/mysqli_fe.lo /bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/ php-5.2.6/ext/mysqli/mysqli_report.c -o ext/mysqli/mysqli_report.lo /bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/ php-5.2.6/ext/mysqli/mysqli_repl.c -o ext/mysqli/mysqli_repl.lo /bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/ php-5.2.6/ext/mysqli/mysqli_driver.c -o ext/mysqli/mysqli_driver.lo /bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/ php-5.2.6/ext/mysqli/mysqli_warning.c -o ext/mysqli/mysqli_warning.lo /bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/ php-5.2.6/ext/mysqli/mysqli_exception.c -o ext/mysqli/mysqli_exception.lo /bin/sh /usr/local/src/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysq li/ -I/usr/local/src/php-5.2.6/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.6/include -I/usr/ local/src/php-5.2.6/main -I/usr/local/src/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.2. 6/ext/date/lib -I/usr/include/freetype2 -I/usr/local/imap-2006f/include -I/usr/local/src/php-5.2.6/e xt/mbstring/oniguruma -I/usr/local/src/php-5.2.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.2.6/ext /mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/usr/l ocal/src/php-5.2.6/TSRM -I/usr/local/src/php-5.2.6/Zend -I/usr/include -g -O2 -c /usr/local/src/php-5.2.6/ext/mysqli/mysqli_embedded.c -o ext/mysqli/mysqli_embedded.lo The following lines exist in config.log: configure:59313: checking for MySQL support configure:59360: checking for specified location of the MySQL UNIX socket configure:59418: checking for MySQL UNIX socket location configure:59609: checking for mysql_close in -lmysqlclient configure:59628: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -L/usr/lib/mysql -L/usr/local/ima p-2006f/lib conftest.c -lmysqlclient -lcrypt -lpam -lgmp -lfreetype -lpng -lz -ljpeg -ldb-4.4 -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lssl -lcrypto -lxml2 -lssl -lcrypto -lssl -lcrypto 1>&5 configure:60526: checking for MySQLi support configure:60573: checking whether to enable embedded MySQLi support configure:60724: checking for mysql_set_server_option in -lmysqlclient configure:60743: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib/mysql -L/usr/lib -L/usr/lib/mysql -L/usr/local/imap-2006f/lib -lmysqlclient conftest.c -lmysqlclient -lcrypt -lpam -lgmp -lfreetype -lpng -lz -ljpeg -ldb-4.4 -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lssl -lcrypto -lxml2 -lssl -lcr ypto -lssl -lcrypto 1>&5 configure:60991: checking for mysql_stmt_field_count in -lmysqlclient configure:61010: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib/mysql -L/usr/lib -L/usr/lib/mysql -L/usr/local/imap-2006f/lib -L/usr/lib/mysql -lmysqlclient conftest.c -lmysqlclient -lcrypt -lpam -lgmp -lfreetype -lpng -lz -ljpeg -ldb-4.4 -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lssl -lcrypto -lxml2 -lssl -lcrypto -lssl -lcrypto -lmysqlclient 1>&5 The mysql.so and mysql.a files do properly get created in the modules subdirectory during the build. Because mysqli.so doesn't get created in the modules subdirectory, it obviously doesn't get copied to /usr/local/lib/20060613, which is the value of extensions_dir in my php.ini . I tried the build both with and without --disable-embedded-mysqli, but this doesn't have any effect, either way. So can anyone think of why mysqli.so doesn't get built under these conditions? Thanks in advance.
  2. PS: On the system in question, I can't do any PHP upgrades from unstable, and for that matter, not even from testing. This is because one of the dependencies for both of these upgrades is that the kernel also be upgraded from the one that's currently in use, and this is impossible on the system in question. It's running under a VPN and the kernel can never be changed by a customer. This just gives another illustration of why it's sometimes unavoidable to have to build PHP from source, and why I'd like configure to work more conveniently. Thanks again to everyone.
  3. Of course we want configure to exit with an error if dependencies aren't met. However, it would be helpful and quite useful if it could optionally list all the unmet dependencies before exiting, instead of just the first one it finds. I'll find a forum or mailing list for the developers of gnu configure, and I'll ask them about this. And yes, I made a mistake in my /etc/apt/sources.list, and after correcting it, I see now that I can get 5.2.6 from unstable ... and actually, from testing, as well.
  4. Of course we want configure to exit with an error if dependencies aren't met. However, it would be helpful and quite useful if it could optionally list all the unmet dependencies before exiting, instead of just the first one it finds. I'll find a forum or mailing list for the developers of gnu configure, and I'll ask them about this. And yes, I made a mistake in my /etc/apt/sources.list, and after correcting it, I see now that I can get 5.2.6 from unstable.
  5. You can't move it, It was moved here becuase he belongs here and not in PHP Help, Oh ... I was wondering how I could have gotten it into the "wrong" forum. I see that this the right forum, after all. I'm sorry for my confusion about this.
  6. Yes, I know that. But I sometimes hit cases where there isn't already an up-to-date extension for something that I want or need. There are also other version-related issues. For one example out of many, I just recently came across some software that requires PHP 5.2.3 or later, and I need to install this in a debian environment. However, the latest version of PHP that debian supports is 5.2.0, even in its "unstable" repository. I install PHP on a myriad of different systems and configurations, and this kind of thing comes up sometimes, and when it does, I always end up having to go back to building from source. This is what prompted my question here about gnu configure.
  7. OOPS ... I wanted this to go into the "PHP Help" section. How can I move this thread? Actually, on Debian-based systems I do exactly what you have suggested. But there are still a bunch of *-dev packages that don't get installed. And in any case, sometimes I am on Fedora or Centos systems and use YUM, and sometimes I am on Gentoo or even MacOSX systems. I'm just wondering if there's a way to run configure in the way I suggested. I'm now guessing that the answer is "no" ...
  8. I've been building PHP for years, and although I've always been able to get it running under a variety of OS's and enviroments, it always is painful to initially configure it. This is not a problem with PHP per se, but rather, with the gnu configure script and the way PHP uses it. I'd like to describe my issue in case any of you have already solved it and can suggest a course of action. Modern Linux systems have package managers such as YUM, APT, and others. These do a good job of keeping the various libraries and header files in sync, but they never seem to give me a PHP version that I can use. There always is at least one missing feature or library. Therefore, I always end up building my own version of PHP from the source code. In doing so, I start out with the gnu configure script, and my normal procedure goes like this: 1. run ./configure [OPTIONS] 2. it runs several minutes and then fails due to a missing dependency 3. install the dependency (usually some sort of *-dev package) 4. go back to step 1 If I'm installing PHP on a fresh system for the first time, I often have to repeat this sequence a dozen or more times until all the dependencies are satisfied and the configure program finally completes. So this brings up my question: do any of you know of a way to run configure so that it doesn't terminate after the first unmet dependency, but rather, so it goes to the end of its tests and then tells me all of the dependencies that were unfulfilled? If I could run configure in this way, I could then go to my package manager and install all of the appropriate *-dev packages in one swell foop, thereby cutting 2 or more hours off of the time necessary to get PHP built on my system. Thanks in advance for any tips or pointers you can give me concerning this issue.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.