php-install Digest 23 Apr 2002 11:10:36 -0000 Issue 802
Topics (messages 6719 through 6722):
Re: FreeBSD + gd + PHP4.1.2
6719 by: Adam Voigt
4.2.0 install error
6720 by: Michael
4.2.0 wont compile
6721 by: Mefistofeles
FreeBSD configure "--with-vpopmail" problem
6722 by: Dan Caescu
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Just out of curiosity, change /usr/local/lib/gd to /usr/local, you don't have to
specify the lib
path, like if you do --with-mysql=/usr/local/mysql it will know the libs are in the
path you specified
with lib at the end, which would be /usr/local/mysql/lib, so give just /usr/local a
try.
Adam Voigt
[EMAIL PROTECTED]
On Mon, 22 Apr 2002 14:33:54 -0700, Jonathan Hilgeman <[EMAIL PROTECTED]> wrote:
> Why don't you just use the ports system on FreeBSD to set up PHP? It would
> be much cleaner and a lot faster.
>
> To address your problem, it seems as though it can't find your gd.h file in
> the include paths. What happens when you run "locate gd.h" ?
>
> - Jonathan
>
> -----Original Message-----
> From: Batch [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 2:01 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] Re: FreeBSD + gd + PHP4.1.2
>
>
> Anyone know what this problem is? I am getting the exact same problem under
> RedHat 7.2
>
> Thanks.
>
> "Kasper" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I have some problems with GD and php4.1.2.
> >
> > I have FreeBSD and i have gd zlib freetype jpeg and all that is required
> > installed.
> >
> > My line is like this,
> >
> >
> /configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs --with-gd-dir
> >
> =/usr/local/lib/gd --with-zlib --with-png-dir=/usr/local/lib --with-jpeg-dir
> > =/usr/local/lib --with-freetype-dir=/usr/local/lib
> >
> > I have also tried
> >
> >
> /configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs --with-gd --w
> > ith-zlib --with-png --with-jpeg
> >
> > --with-freetype
> >
> > And the error i get is this one,
> >
> > In file included from internal_functions.c:33:
> >
> > /home/miffo/php/ext/gd/php_gd.h:33: gd.h: No such file or directory
> >
> > *** Error code 1
> >
> > Stop in /home/miffo/php/main.
> >
> > *** Error code 1
> >
> > Stop in /home/miffo/php/main.
> >
> > *** Error code 1
> >
> > Stop in /home/miffo/php.
> >
> > And when configuring php says,
> >
> > checking whether to include GD support... yes
> >
> > checking whether to enable truetype string function in gd... no
> >
> > checking for the location of libjpeg... yes
> >
> > checking for jpeg_read_header in -ljpeg... (cached) yes
> >
> > checking for the location of libpng... yes
> >
> > checking for png_info_init in -lpng... (cached) yes
> >
> > checking for the location of libXpm... no
> >
> > If configure fails try --with-xpm-dir=<DIR>
> >
> > checking for freetype(2)... yes
> >
> > checking whether to include include FreeType 1.x support... no
> >
> > checking whether to include T1lib support... no
> >
> > checking for gdImageString16 in -lgd... (cached) yes
> >
> > checking for gdImagePaletteCopy in -lgd... (cached) yes
> >
> > checking for gdImageCreateFromPng in -lgd... (cached) yes
> >
> > checking for gdImageCreateFromGif in -lgd... (cached) yes
> >
> > checking for gdImageGif in -lgd... (cached) no
> >
> > checking for gdImageWBMP in -lgd... (cached) yes
> >
> > checking for gdImageCreateFromJpeg in -lgd... (cached) yes
> >
> > checking for gdImageCreateFromXpm in -lgd... (cached) yes
> >
> > checking for gdImageCreateFromGd2 in -lgd... (cached) yes
> >
> > checking for gdImageCreateTrueColor in -lgd... (cached) no
> >
> > checking for gdImageSetTile in -lgd... (cached) yes
> >
> > checking for gdImageSetBrush in -lgd... (cached) yes
> >
> > checking for gdImageStringTTF in -lgd... (cached) yes
> >
> > checking for gdImageStringFT in -lgd... (cached) yes
> >
> > checking for gdImageStringFTEx in -lgd... (cached) no
> >
> > checking for gdImageColorClosestHWB in -lgd... (cached) yes
> >
> > checking for gdImageColorResolve in -lgd... (cached) yes
> >
> > checking for gdImageGifCtx in -lgd... (cached) no
> >
> >
> >
> > Whats wrong ??
> >
> > /K
> >
> >
> >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I get this error when trying to restart apache after install.
OS: Redhat 7.2
Line 237 is the loadmodule line
Anyone else experiencing this problem?
[root@www php-4.2.0]# apachectl start
Syntax error on line 237 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: undefined symbol: PQescapeBytea
/usr/bin/apachectl start: httpd could not be started
I have it configured with:
configured by ./configure, generated by GNU Autoconf 2.52,
with options \"--with-apxs=/usr/local/apache/bin/apxs --with-mysql
--with-xml --enable-bcmath --enable-calendar --enable-ftp --with-jpeg
--with-png --enable-magic-quotes --enable-yp --enable-track-vars
--enable-sockets --enable-inline-optimization --with-gettext
--enable-trans-sid --enable-versioning --enable-discard-path
--enable-safe-mode --disable-rpath --with-zlib
--with-imap=/usr/local/src/imap-2002 --with-pgsql --enable-pic
--enable-inline-optimization --with-regex=system --with-gettext
--with-gd --with-png --with-zlib --without-db2 --without-db3 --with-gdbm
--enable-safe-mode --enable-sysvsem --enable-sysvshm --enable-yp
--without-oracle --without-oci8 --with-openssl --enable-sockets
--enable-memory-limit --with-ldap\"
Michael
--- End Message ---
--- Begin Message ---
I've compile Apache 2.0.35 with --enable-so then
in the php directory done
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs
and make
which gives me
In file included from libmysql.c:5:
global.h:256: warning: redefinition of `uint'
/usr/include/sys/types.h:152: warning: `uint' previously declared here
global.h:257: warning: redefinition of `ushort'
/usr/include/sys/types.h:151: warning: `ushort' previously declared here
global.h:258: warning: redefinition of `ulong'
/usr/include/sys/types.h:150: warning: `ulong' previously declared here
In file included from libmysql.c:5:
global.h:498:22: operator 'EOL' has no left operand
In file included from libmysql.c:12:
m_string.h:205:36: operator '==' has no right operand
make[4]: *** [libmysql.lo] Error 1
make[4]: Leaving directory `/usr/local/src/php-4.2.0/ext/mysql/libmysql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.2.0/ext/mysql/libmysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.2.0/ext/mysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.0/ext'
make: *** [all-recursive] Error 1
[root@h28n2fls31o826 php-4.2.0]#
I'm obviously missing something vital. Any ideas what?
/Mef.
--- End Message ---
--- Begin Message ---
Hi! I'm using FreeBSD 4.5 and i wanted to install php4.1.2 with vpopmail
support.
My configure line was:
'./configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc'\
'--enable-versioning' '--with-regex=system' '--without-gd'
'--without-mysql' '--with-gd=/usr/local'\
'--enable-gd-native-ttf' '--with-freetype-dir=/usr/local'
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'\
'--with-zlib' '--with-bz2=/usr' '--with-mcrypt=/usr/local'
'--with-mhash=/usr/local' '--with-imap=/usr/local'\
'--with-mysql=/usr/local' '--with-snmp=/usr/local' '--enable-ucd-snmp-hack'
'--with-openssl=/usr' '--enable-ftp'\
'--with-iconv=/usr/local' '--enable-mbregex' '--enable-mbstring'
'--enable-sockets' '--enable-trans-sid'\
'--prefix=/usr/local'
'i386-portbld-freebsd4.5' --with-vpopmail=/usr/local/vpopmail
And the error I got was:
<snip>
/bin/sh
/usr/ports/www/mod_php4/work/php-4.1.2/libtool --silent --mode=compile
c -I. -I/usr/ports/www/mod_php4/work/php-4.1.2/ext/vpopmail -I/usr/ports/ww
w/mod_php4/work/php-4.1.2/main -I/usr/ports/www/mod_php4/work/php-4.1.2 -I/u
sr/local/include/apache -I/usr/ports/www/mod_php4/work/php-4.1.2/Zend -I/usr
/local/include/freetype2/freetype -I/usr/local/include -I/usr/local/include/
c-client -I/usr/local/include/mysql -I/usr/local/include/ucd-snmp -I/usr/loc
al/vpopmail/include -I/usr/ports/www/mod_php4/work/php-4.1.2/ext/xml/expat
-DHARD_SERVER_LIMIT=512 -DDOCUMENT_LOCATION="/usr/local/www/data/" -DDEFAULT
_PATH="/bin:/usr/bin:/usr/local/bin" -DACCEPT_FILTER_NAME="httpready" -DUSE_
EXPAT -I/usr/ports/www/mod_php4/work/php-4.1.2/TSRM -g -O2 -prefer-pic -c
php_vpopmail.c
php_vpopmail.c: In function `zif_vpopmail_add_alias_domain':
php_vpopmail.c:288: warning: passing arg 3 of `add_domain_assign' makes
pointer from integer without a cast
php_vpopmail.c:288: too few arguments to function `add_domain_assign'
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.1.2/ext/vpopmail.
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.1.2/ext/vpopmail.
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.1.2/ext.
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.1.2.
Any ideea where i'm wrong?
Dan
--- End Message ---