vage error apache met mysql compilen

Pagina: 1
Acties:

  • Twilight
  • Registratie: December 2000
  • Laatst online: 09-03 21:34
Ik krijg met het installeren van apache echt een vage error:
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0x9a): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
my_compress.o(.text+0x12a): undefined reference to `compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/src/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/src/apache_1.3.20'
make: *** [build] Error 2
Anybody help me?
Zelf google weet geen raad. ;-(

many tnx!

www.nanon.nl


Verwijderd

hmz, vreemd probleem... lijkt erop alsof er iets niet goed gaat met de shared libs van mysql. Heb je al eens in /etc/ld.so.conf gekeken of er een verwijzing staat naar de dir met mysql libs? Draai nog een keer ldconfig om te updaten.

Waarom compileer je mysql eigenlijk in apache, en niet via een php module? Das namelijk een stuk makkelijker :)

  • Twilight
  • Registratie: December 2000
  • Laatst online: 09-03 21:34
Waarom compileer je mysql eigenlijk in apache, en niet via een php module? Das namelijk een stuk makkelijker :)
zo ziet mijn configure voor apache er uit
./configure --prefix=/usr/local --activate-module=src/modules/php4/libphp4.a
Dat is toch goed?

www.nanon.nl


  • Captor
  • Registratie: Juli 2001
  • Laatst online: 12-08 14:00

Captor

Serenity now, insanity later !

die regel op zich klopt volgens mij wel... (tenminste zo gebruik ik hem ook). Maar wat voor configure regels gebruik je nog meer ? Om bv apache en mysql te compilen ?
Ik installeer eerst altijd mySQL, hierna Apache met de volgende regel:
./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars

en hierna pas php met die regel die jij ook gebruikt

  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 14-08 13:49
zelfde probleem hiero, heeft iemand hier al een oplossing voor ?

ik heb het op de volgende manier gecompileerd, vroeger ging dat altijd goed maar wil deze keer absoluut niet lukken.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
QUICK INSTALL (Static)

$ tar xvfz apache_1.3.x.tar.gz
$ cd apache_1.3.x
$ ./configure
$ cd ..

$ tar xvfz php-4.0.x.tar.gz
$ cd php-4.0.x
$ ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.12 --enable-track-vars --with-gd --with-zlib
$ make
$ make install

$ cd ../apache_1.3.x
$ ./configure --prefix=/home/httpd --activate-module=src/modules/php4/libphp4.a
 (The above line is correct!  Yes, we know libphp4.a does not exist at this
  stage.  It isn't supposed to.  It will be created.)
make
make install
 (you should now have an httpd binary which you can copy to your Apache bin dir)
cd ../php-4.0.x
cp php.ini-dist /usr/local/lib/php.ini
You can edit /usr/local/lib/php.ini file to set PHP options.
Edit your httpd.conf or srm.conf file and add:
  AddType application/x-httpd-php .php

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • _JGC_
  • Registratie: Juli 2000
  • Laatst online: 23:32
Ik heb het gewoon zo gedaan als in de PHP readme, maar ik was vergeten eerst MySQL te installeren.

Eerst PHP en apache met elkaar compileren, dan de binary release van MySQL opvissen en installeren, werkt gewoon perfect :)

Ja, waarom nou een binary MySQL? Omdat de source termcap nodig heeft, welke niet aanwezig is in Debian (lullig: heb hem wel geinstalleerd, maar dan zal ie wel anders heten)

  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 14-08 13:49
ik had het trouwens over een RedHat 7.1 systeempje.
Maar heb je dan misschien een idee hoe het opgelost kan worden ipv te vertellen dat het bij jou wel lukt?

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • MAZZA
  • Registratie: Januari 2000
  • Laatst online: 17-08 14:00

MAZZA

Barbie is er weer!

mijn manier:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cd apache_1.3.20/
./configure  --prefix=/www

cd ../php-4.0.6/
./configure  --with-mysql \
         --with-apache=../apache_1.3.20 \
         --with-sablot=/usr/local/lib \
         --enable-track-vars

make && make install

cd ../apache_1.3.20/
./configure --prefix=/www \
        --activate-module=src/modules/php4/libphp4.a

make && make install

cp /usr/src/php-4.0.6/php.ini-dist /usr/local/lib/php.ini

Werkt prima ;)

  • Remenic
  • Registratie: Juni 2001
  • Laatst online: 09-08 20:06
compress is een definitie die binnen zconf.h gedefineerd is. zconf.h is onderdeel van zlib.

Kijk eens of ie in het gcc commando tegen zlib aanlinkt met '-lz'. (zonder quotes, natuurlijk)

Zo niet, edit de Makefile in de src/ dir, en zoek daar naar een LIBS regel ofzo, en plak daar -lz achter.

Zou moeten werken...

  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 14-08 13:49
uhm, ik heb in Configuration achter LIBS -lz neergezet maar ik blijf hetzelfde probleem houden.
Moest het ergens anders achter of in een andere file?

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 14-08 13:49
dan zal ik maar meteen de oplossing geven.
(staat gewoon in INSTALL file van php)
Note 3! If you are on Linux and have installed shared libraries, make
sure the location of these shared libraries are listed in your
/etc/ld.so.conf file. For example, if you have:

/usr/local/lib/mysql/libmysqlclient.so

Make sure /etc/ld.so.conf contains:

/usr/local/lib/mysql

Then run ldconfig.

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • RemcoX
  • Registratie: Mei 2000
  • Laatst online: 14-02 20:05
Op zondag 21 oktober 2001 01:08 schreef a casema user het volgende:
dan zal ik maar meteen de oplossing geven.
(staat gewoon in INSTALL file van php)
[..]
De oplossing die jij meteen geeft was meteen na het openen van de topic ook al gegeven, en wel door pinguin.
Pagina: 1