Compiling php with gettext

I am trying to install Zenphoto for the first time on my linux openSUSE box.
In install.php, I am getting this error
[code]
PHP gettext() support [is not present]
Warning!
Localization of Zenphoto currently requires native PHP gettext() support
[/code]
I first used YAST to install gettext with
[code]
yast -t gettext
[/code]
it seems that installed some weird GPL version and not the GNU version PHP was looking for, so I downloaded and built the latest GNU gettext and then tried to configure it with PHP and every time I reconfigure PHP, it doesn't seem to find it.
The configure statement I use is
[code]
--with-gettext=/usr/local/shared/gettext
[/code]
but when I configure php with and grep for gettext I get
[code]
checking for GNU gettext support... no
[/code]
I am using PHP 5.2.9, any ideas on how to get PHP compiled with gettext?

PHP reference: http://www.php.net/manual/en/gettext.installation.php

Comments

  • Don't know about openSUSE, but for WAMP there is a PHP control panel that lets you check off modules to include. gettext() is normally not checked, but checking does solve the problem.
  • Yeah, with openSUSE (linux) there are no tic boxes, I only have a CLI available to me and thus PHP must be compiled with GNU gettext
  • Straight from my ./configure

    `
    checking for the location of libjpeg... yes
    checking for jpeg_read_header in -ljpeg... (cached) yes
    `
  • acrylian Administrator, Developer
    Sorry, at least I can't help. I never compiled anything on a server since my host does that naturally and my local server setup uses MAMP that is also preconfigured.
Sign In or Register to comment.