[Linux] PHP compiled niet met gettext support

Pagina: 1
Acties:

  • Blubber
  • Registratie: Mei 2000
  • Niet online
Ik wil PHP compilen met gettext support. Maar het lukt niet. Op de ene serveer ging alles perfect, op de andere niet. Dit is mijn configure command:
code:
1
2
3
4
./configure --with-gd --with-png --with-zlib-dir=../zlib \ 
--with-mysql --with-pgsql \
--with- apxs=/usr/local/apache/bin/apxs \
--with-gettext --with-xml --with-mcrypt \

Maar bij het ./configuren zegt ie dit
code:
1
2
3
4
checking for GNU gettext support... yes
checking for bindtextdomain in -lintl... no
checking for bindtextdomain in -lc... no
configure: error: Unable to find required gettext library

Ik gebruik PHP 4.2.0, op Slackware linux 8.0. Ik heb twee gettext versies gebruikt, 0.11 en 0.10.35, allebei hetzelfde. Ik heb ook al env update en updatedb aangeroepen maar dat mocht niet baten. Heeft iemand een oplossing.

  • intoxicated
  • Registratie: Januari 2001
  • Niet online

intoxicated

Haaaai :w | ALT-S

Kijk eens naar mijn bugreport in de Bugtracker van Gentoo.

"Anyone who does not agree with me is mentally sick, and should be shot I'm afraid to say."
- Pastor Richards @ VCPR


  • Blubber
  • Registratie: Mei 2000
  • Niet online
Op dinsdag 14 mei 2002 18:04 schreef intoxicated het volgende:
Kijk eens naar mijn bugreport in de Bugtracker van Gentoo.
Maar ik heb geen gentoo op die bak, die ene vent zegt alle java zut eruit gooien, maarja als je geen portage gebruikt werkt dat niet zomaar :). Kheb inmiddels wel 4.1.2 van php geprobeerd werkt ook niet, oplossing iemand?

Verwijderd

Wat voor error staat er in je config.log?

  • Blubber
  • Registratie: Mei 2000
  • Niet online
code:
1
2
3
4
5
6
7
8
9
10
11
12
collect2: ld returned 1 exit status
configure: failed program was:
#line 22832 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char bindtextdomain();

int main() {
bindtextdomain()
; return 0; }

Verwijderd

Op dinsdag 14 mei 2002 18:40 schreef Blubber iets.
Graag inclusief de (pakweg) 20 regeltjes die hiervoor kwamen. ;).

  • Blubber
  • Registratie: Mei 2000
  • Niet online
Op dinsdag 14 mei 2002 19:25 schreef beelzebubu het volgende:

[..]

Graag inclusief de (pakweg) 20 regeltjes die hiervoor kwamen. ;).
Kan maar de regels ervoor waren allemaal gd errors. Ik heb he,m ff op me webserver gezet:
http://blubber.student.utwente.nl/config.log.html

  • Blubber
  • Registratie: Mei 2000
  • Niet online
Hij werkt inmiddels. Heb gewoon confing.cache weggegooid, en toen een aantal dingen uit me configure gehaald:
code:
1
2
3
./configure --with-zlib-dir=../zlib --with-mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--with-gettext --with-xml --with-mcrypt \


En nu werkt ie wel :)

Verwijderd

Nog ff ter volledigheid:
configure:22726: checking whether to include GNU gettext support
configure:22785: checking for bindtextdomain in -lintl
configure:22804: gcc -o conftest -g -O2 -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -L/usr/lib conftest.c -lintl -lgd -lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt 1>&5
/usr/i386-slackware-linux/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status
configure: failed program was:
#line 22793 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char bindtextdomain();

int main() {
bindtextdomain()
; return 0; }
Je miste dus (volgens dit ding) libintl.so/a, hij kon namelijk -lintl niet vinden. :).
Pagina: 1