That's crazy because I am doing the same exact thing right now (compile with
PDF on RH 7 and having problems.)

Anyway PDF and everything compiles fine on RH 6.2 but I have had some problems
on 7.

What I did is:
Install mySQL
Configure and install Apache (my configure looks like this):
./configure \
"--with-layout=Apache" \
"--prefix=/www" \
"--with-perl=/usr/bin/perl" \
"--enable-module=so" \
"$@"
Configure and install PdfLib (my configure looks like this):
./configure  --enable-cxx --with-tiffauxlib=-ljpeg --with-tifflib --with-zlib
--with-pnglib=no --enable-shared --enable-static --enable-shared-pdflib


After that point I have been fooling around with the PHP configure.  What works
for me so far is:

./configure --with-mysql=/usr/local/mysql --with-apxs=/www/bin/apxs
--with-sablot

(I have installed Sablot XSLT lib)

This compiles and installs fine.

Then when I try to add the pdflib options, the make dies at:

./configure --with-mysql=/usr/local/mysql --with-apxs=/www/bin/apxs
--with-sablot --with-zlib-dir=/usr/lib --with-jpeg-dir=/usr/lib
--with-tiff-dir=/usr/lib --with-pdflib

./configure --with-mysql=/usr/local/mysql --with-apxs=/www/bin/apxs
--with-sablot --with-zlib-dir=/usr/lib --with-jpeg-dir=/usr/lib
--with-tiff-dir=/usr/lib --with-pdflib

make[1]: Entering directory `/home/blaze/WebServerSources/php-4.0.4pl1'
/bin/sh /home/blaze/WebServerSources/php-4.0.4pl1/libtool --silent --mode=link
gcc  -I. -I/home/blaze/WebServerSources/php-4.0.4pl1/
-I/home/blaze/WebServerSources/php-4.0.4pl1/main
-I/home/blaze/WebServerSources/php-4.0.4pl1 -I/www/include
-I/home/blaze/WebServerSources/php-4.0.4pl1/Zend
-I/usr/local/mysql/include/mysql -I/usr/local/include
-I/home/blaze/WebServerSources/php-4.0.4pl1/ext/xml/expat/xmltok
-I/home/blaze/WebServerSources/php-4.0.4pl1/ext/xml/expat/xmlparse
-I/home/blaze/WebServerSources/php-4.0.4pl1/TSRM  -DLINUX=22 -DUSE_HSREGEX
-DUSE_EXPAT -DXML_BYTE_ORDER=12 -g -O2   -o libphp4.la -rpath
/home/blaze/WebServerSources/php-4.0.4pl1/libs -avoid-version
-L/usr/local/mysql/lib/mysql -L/usr/local/lib  -R /usr/local/mysql/lib/mysql -R
/usr/local/lib stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
regex/libregex.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/pdf/libpdf.la
ext/posix/libposix.la ext/sablot/libsablot.la ext/session/libsession.la
ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl
-lxmltok -lxmlparse -lsablot -lz -ljpeg -lpng -ltiff -lpdf -lmysqlclient
-lresolv -lm -ldl -lcrypt -lnsl -lresolv
/usr/bin/ld: cannot find -lxmltok
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/home/blaze/WebServerSources/php-4.0.4pl1'
make: *** [all-recursive] Error 1


It says it cannot find xmltok, but its installed in /usr/lib where everything
else is.

I don't know either.  This worked no problem on 6.2.  BTW I have the most
recent version of GCC according to Redhat Up2Date

Michael




Mike Tuller wrote:

> I'm at a loss for this one. I can't seem to get PHP 4 on RedHat 7. I can get
> the rpm to install and work, but if I try to configure myself, it never
> works. Everything says to configure with apxs, but there is no apxs. What is
> strange though is if I look at how the rpm configures PHP, it configures it
> with apxs and it works!
>
> I want to configure PHP with PDF support, so I can't just use the rpms. If
> anyone has any suggestions, let me know. That is other that trying to
> configure apache manually. I've been down that road before, and don't want
> to do it again.
>
> Mike
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to