Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing Apache, MySQL, PHP, Mod_SSL

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello all..
I am trying to install all of these packages and have the work together. I'm running Mandrake 7.2 and they came pre-installed but MySQL did not work with PHP so I uninstalled Apache, MySQL and PHP. Downloaded the source for each package and followed the instructions at to the T. MySQL setup and PHP setup went fine but when I goto make apache i get ...

modules/php4/libphp4.a(php_mysql.o): In function `php_mysql_field_info':
/downloads/php-4.0.6/ext/mysql/php_mysql.c:1852: undefined reference to `mysql_num_fields'
/downloads/php-4.0.6/ext/mysql/php_mysql.c:1856: undefined reference to `mysql_field_seek'
/downloads/php-4.0.6/ext/mysql/php_mysql.c:1857: undefined reference to `mysql_fetch_field'
modules/php4/libphp4.a(dns.o): In function `php_if_checkdnsrr':
/downloads/php-4.0.6/ext/standard/dns.c:212: undefined reference to `res_search'modules/php4/libphp4.a(dns.o): In function `php_if_getmxrr':
/downloads/php-4.0.6/ext/standard/dns.c:281: undefined reference to `res_search'/downloads/php-4.0.6/ext/standard/dns.c:290: undefined reference to `__dn_skipname'
/downloads/php-4.0.6/ext/standard/dns.c:296: undefined reference to `__dn_skipname'
/downloads/php-4.0.6/ext/standard/dns.c:308: undefined reference to `dn_expand'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/downloads/apache_1.3.19/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/downloads/apache_1.3.19'
make: *** [build] Error 2

That is just the last part of the errors. It says basically the same thing about undefined references to a BUNCH of other things related to MySQL and PHP.

Any ideas?

Thanks very much in advance!

Adam
 
I don't know specifically what the problem is, but often these things happen because a system doesn't have all the right development libraries on it. Try running your RPM utility, and install all the packages for anything relating to GNU, gcc, automake, GNU Make, etc...

When you uninstalled Apache and MySQL, did you uninstall them from the RPM utility, or did you just remove the binaries from your system? It might be that PHP is looking for the default directories for those libs and binaries on a Mandrake/RedHat system, and when you installed from source, they ended up in different directories. When you ./configured PHP, did you specify where MySQL is? (./configure --mysql=/usr/local/mysql, or something like that)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top