Jon Nelson on Fri, 5 Sep 2003 22:12:26 -0400 |
I am trying to get gettext working with php and I am not having any luck. php was installed via rpms on RH 7.3: php-imap-4.1.2-7.3.6 php-4.1.2-7.3.6 php-ldap-4.1.2-7.3.6 php-pgsql-4.1.2-7.3.6 php-mysql-4.1.2-7.3.6 gettext was also: gettext-0.11.1-2 phpinfo() shows the configure command to be: './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring' '--enable-mbstr-enc-trans' '--with-apxs=/usr/sbin/apxs' I uncommented the extension=gettext.so line in php.ini. When I try to view a page translated I get these errors: PHP Warning: Unable to load dynamic library '/usr/lib/php4/gettext.so' - /usr/lib/php4/gettext.so: cannot open shared object file: No such file or directory in Unknown on line 0 The only instance of gettext.so on my system is in: /usr/libexec/rep/0.15.1/i386-redhat-linux/rep/i18n/gettext.so /usr/libexec/rep/0.15.1/i386-redhat-linux/gettext.so One is a symlink to the other. I tried to symlink it to /usr/lib/php4/gettext.so, but then I got the error: PHP Warning: Unable to load dynamic library '/usr/lib/php4/gettext.so' - /usr/lib/php4/gettext.so: undefined symbol: Qnil in Unknown on line 0 I looked for a package that provides /usr/lib/php4/gettext.so and found a php-gettext rpm, but not for my version. Any ideas? TIA, Jon -- Trooper Jon S. Nelson, Linux Certified Admin., CCNA Pa. State Police, Bureau of Criminal Investigation Computer Crimes Unit Work: 610.344.4471 Cell/Page: 866.284.1603 jonelson@state.pa.us _________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
|
|