01. Wget
ftp://ftp.gnu.org/pub/gnu/gettext/gettext...t-0.12.1.tar.gz
02. Untar file as tar -zxvf gettext-0.12.1.tar.gz
03. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
04. Type `make' to compile the package.
05. Optionally, type `make check' to run any self-tests that come with
the package.
06. Type `make install' to install the programs and any data files and
documentation.
07. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
Steps to compile gettext
====================
01. Edit -- pico /root/buildapache/buildscript
02. add the text -- --with-gettext=/usr to the paths below
*******
rm -f config.cache
echo ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-bcmath --enable-calendar --enable-ftp $WITHGD --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes $WITHMYSQL --with-pear --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-zlib --with-gettext=/usr
if [ "0" = "1" ]; then
EXTRA_LDFLAGS="-lstdc++" ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-bcmath --enable-calendar --enable-ftp $WITHGD --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes $WITHMYSQL --with-pear --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-zlib --with-gettext=/usr
else
./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-bcmath --enable-calendar --enable-ftp $WITHGD --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes $WITHMYSQL --with-pear --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-zlib --with-gettext=/usr
fi
echo "#undef COMPILE_DL_ZLIB" >> main/php_config.h
echo "#define HAVE_SENDMAIL 1" >> main/php_config.h
make
make install
echo ./configure --prefix=/usr --with-xml --enable-bcmath --enable-calendar --enable-ftp $WITHGD --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes $WITHMYSQL --with-pear --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-zlib --with-gettext=/usr
if [ "0" = "1" ]; then
EXTRA_LDFLAGS="-lstdc++" ./configure --prefix=/usr --with-xml --enable-bcmath --enable-calendar --enable-ftp $WITHGD --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes $WITHMYSQL --with-pear --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-zlib --with-gettext=/usr
else
./configure --prefix=/usr --with-xml --enable-bcmath --enable-calendar --enable-ftp $WITHGD --with-mcrypt --with-ming=../ming-0.2a --enable-magic-quotes $WITHMYSQL --with-pear --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-zlib --with-gettext=/usr
************************************************** ************************************
now complie the buildscript as under:
bash$ # cd /root/buildapache
bash$ # ./buildscript
************************************************** ************************************
Before that Compile the apache with standard set (Option 5) or advanced option (option 6), if the latest buildapache is not installed already by downloading the source.
$>wget
http://layer1.cpanel.net/buildapache.sea
$>chmod 0755 buildapache.sea
$>./buildapache.sea
Now once the compilation is complete. Proceed to the solution for gettext . (compile gettext and edit buildscript of buildapache )
This can be done on
linux cPanel web server only.