php-install Digest 3 May 2001 21:15:48 -0000 Issue 291

Topics (messages 2997 through 3018):

Re: PHP 4.0.5 & gd 2.0.1
        2997 by: James Kapherr
        2998 by: Dave Mariner
        3001 by: B. van Ouwerkerk
        3003 by: Dave Mariner

Re: (take 2) What am I doing wrong?
        2999 by: B. van Ouwerkerk

Re: oracle configuration problem
        3000 by: Benjamin Heckmann
        3012 by: Jimmy Brake
        3013 by: Jim Thome

Seg fault under Solaris
        3002 by: Nigel Gilbert

PHP 4.0.5, PostgreSQL, apxs config failure
        3004 by: Nouvelles Technologies et Enseignement

Re: --with-pdflib... stops on show_boxed
        3005 by: Charles Homan
        3006 by: Jani Taskinen

Re: Install Probs with LInux/Apache/MySQL
        3007 by: Charles Homan
        3008 by: Charles Homan
        3010 by: B. van Ouwerkerk
        3011 by: Charles Homan

installing mysql...
        3009 by: Tara Dirst
        3017 by: B. van Ouwerkerk

PHP 4.0.5 DSO w/Apache 2.0.16 Beta
        3014 by: Devin Atencio
        3016 by: Devin Atencio

Re: pgsql 7.1 build problem...]
        3015 by: Ron Patterson

PHP 4.0.5 & gd
        3018 by: Philip Snyder

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]


----------------------------------------------------------------------



Ack - I always forget where to get GD from - where abouts can I download it
from?

James


________________________________________________________________________
This message has been checked for all known viruses, by Star Internet, 
delivered through the MessageLabs Virus Control Centre. 
For further information visit:
http://www.star.net.uk/stats.asp





www.boutell.com/gd

BTW If anyone gets this working can they post an idiots guide on how to do
it, as I'm an idiot that needs to do it!!
----- Original Message -----
From: "James Kapherr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 03, 2001 9:38 AM
Subject: RE: [PHP-INST] PHP 4.0.5 & gd 2.0.1


>
> Ack - I always forget where to get GD from - where abouts can I download
it
> from?
>
> James
>
>
> ________________________________________________________________________
> This message has been checked for all known viruses, by Star Internet,
> delivered through the MessageLabs Virus Control Centre.
> For further information visit:
> http://www.star.net.uk/stats.asp
>
>
> --
> PHP Install 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]
>






>BTW If anyone gets this working can they post an idiots guide on how to do
>it, as I'm an idiot that needs to do it!!

Is the old syntax invalid?? --with-gd --with-gd-dir=/where/you/put/it

I don't have time to try it myself.. but the syntax above worked for me 
until 4.0.4pl1 (which is the first version in which I include GD).

Bye,


B.





You'll probably find that the gdImageCreateFrom errors are down to your gd
build failing silently - check the errs file in your gd-2.0.1 directory. As
far as the conflicting types message goes, I'm getting the same
thing....I'll be very interested to find out why - if you solve it can you
post the solution.

Dave


----- Original Message -----
From: "Philip Snyder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 03, 2001 7:44 AM
Subject: [PHP-INST] PHP 4.0.5 & gd 2.0.1


> I grabbed PHP 4.0.5 and gd 2.0.1 so I could create JPG thumbnails of files
> as I upload them.
>
> make install for gd went fine and the library is in /usr/lib as expected.
>
> I run configure for PHP and it gets through that without any issues.
> However, when I look back on the output, it says no after every check for
> gdImageCreateFrom<ANYTHING>. Then when I do a make, I get this error:
>
> gd.c:91: conflicting types for `gdIOCtx'
> make[3]: *** [gd.lo] Error 1
> make[3]: Leaving directory `/archive/web_server/php-4.0.5/ext/gd'
> make[3]: *** [gd.lo] Error 1
> make[3]: Leaving directory `/archive/web_server/php-4.0.5/ext/gd'
> make[3]: *** [gd.lo] Error 1
> make[3]: Leaving directory `/archive/web_server/php-4.0.5/ext'
> make: *** [all-recursive] Error 1
>
> Can anyone help?
>
> -Philip
> Home: 310.996.1316
> Work: 310.664.1778
> Web:  http://www.bewley.net/~prsnyder
>
>
>
> --
> PHP Install 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]
>






>I hope I get a slightly less elitist reply eventually.

/me ???? no..

>I'd try to recompile apache, but last time I tried to compile apache, it had
>even more errors then I'm getting now...  This project is worth a good
>fight, but not one that will ~require~ that I recode half the kernel.

Only time you need to recompile a kernel (on a normal distro) is when you 
need IP aliassing. For a normal testingmachine with one domain you 
shouldn't.. at least.. thats my experience..
And even if you would have to recompile your kernel.. it really isn't hard 
to do.

/me would prefer to remove the RPM stuff, download the source and compile 
the lot from source. Thats how I usually install my boxes..

It seems a service exist which can do the configuration for you.. for free.

It's somewhere online.. can't remember where..

Remember.. there seems to be a problem with the mysql rpm which is on your 
CD. Download a new rpm from mysql.com or redhat.com

Bye,


B.





Ok, here we go again:

You need at least a oracle client installation with oci8 support on your
machine, where you are going to compile your php. If you haven't php won't
find the needed include libraries and this is were you are right now.

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im
Auftrag von Patrick Lai
Gesendet: Donnerstag, 3. Mai 2001 04:58
An: [EMAIL PROTECTED]
Betreff: Re: [PHP-INST] oracle configuration problem


""Patrick Lai"" <[EMAIL PROTECTED]> wrote in message
9cqh1s$h68$[EMAIL PROTECTED]">news:9cqh1s$h68$[EMAIL PROTECTED]...
> I tried to use install php4.0.5 with the option--with-oci8 without having
> oracle8i installed in my own machine. I get this:
>
checking Oracle version... configure: error: Oracle-OCI8 needed libraries
not found

What is the workaround? Would I be able to install the OCI8 api without
installing oracle in the same machine. Thanks.

>
>
> Patrick
>
>
>
> --
> PHP Install 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 Install 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]






if you compile on one machine and install on another that does not have oracle 
installed, will that work?

Jimmy Brake
Cool Tools and Stuff
Critical Path Inc.

"Making your job easier"

On Thu, 3 May 2001, Benjamin Heckmann wrote:

> Ok, here we go again:
> 
> You need at least a oracle client installation with oci8 support on your
> machine, where you are going to compile your php. If you haven't php won't
> find the needed include libraries and this is were you are right now.
> 
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Im
> Auftrag von Patrick Lai
> Gesendet: Donnerstag, 3. Mai 2001 04:58
> An: [EMAIL PROTECTED]
> Betreff: Re: [PHP-INST] oracle configuration problem
> 
> 
> ""Patrick Lai"" <[EMAIL PROTECTED]> wrote in message
> 9cqh1s$h68$[EMAIL PROTECTED]">news:9cqh1s$h68$[EMAIL PROTECTED]...
> > I tried to use install php4.0.5 with the option--with-oci8 without having
> > oracle8i installed in my own machine. I get this:
> >
> checking Oracle version... configure: error: Oracle-OCI8 needed libraries
> not found
> 
> What is the workaround? Would I be able to install the OCI8 api without
> installing oracle in the same machine. Thanks.
> 
> >
> >
> > Patrick
> >
> >
> >
> > --
> > PHP Install 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 Install 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 Install 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]
> 
> 





Jimmy-

No.  Oracle client (at a minimum) must be installed on the web server.  PHP uses the 
Oracle client to talk to the db; the Oracle listener on the Oracle db will only talk 
to the Oracle client.

Regards,

Jim Thome

>>> Jimmy Brake <[EMAIL PROTECTED]> 05/03 10:46 AM >>>
if you compile on one machine and install on another that does not have oracle 
installed, will that work?

Jimmy Brake
Cool Tools and Stuff
Critical Path Inc.

"Making your job easier"

On Thu, 3 May 2001, Benjamin Heckmann wrote:

> Ok, here we go again:
> 
> You need at least a oracle client installation with oci8 support on your
> machine, where you are going to compile your php. If you haven't php won't
> find the needed include libraries and this is were you are right now.
> 
> -----Ursprnngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]Im 
> Auftrag von Patrick Lai
> Gesendet: Donnerstag, 3. Mai 2001 04:58
> An: [EMAIL PROTECTED] 
> Betreff: Re: [PHP-INST] oracle configuration problem
> 
> 
> ""Patrick Lai"" <[EMAIL PROTECTED]> wrote in message
> 9cqh1s$h68$[EMAIL PROTECTED]">news:9cqh1s$h68$[EMAIL PROTECTED]...
> > I tried to use install php4.0.5 with the option--with-oci8 without having
> > oracle8i installed in my own machine. I get this:
> >
> checking Oracle version... configure: error: Oracle-OCI8 needed libraries
> not found
> 
> What is the workaround? Would I be able to install the OCI8 api without
> installing oracle in the same machine. Thanks.
> 
> >
> >
> > Patrick
> >
> >
> >
> > --
> > PHP Install 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 Install 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 Install 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 Install 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] 






I am getting a segmentation fault after installing PHP.  Before I get 
out gbd to get more data on the problem, may I check with this list 
that there isn't some already well known problem with the combination 
I'm using?

I'm installing on SunOS 5.7 Generic sun4u sparc SUNW,Ultra-4

and have:

Apache 1.3.19
PHP 4.0.5
PostgreSQL 7.0.5

The configure, make, make install runs without problems.  I'm using 
the static module and following the instructions in the PHP INSTALL 
for this.  Both PHP and Apache run OK.  So does PostgreSQL when I 
access it through the psql front end.

But when I use pg-connect("dbname=XXXX") on a PHP page - where XXXX 
is a database name that I can successfully access through psql - the 
browser reports "The attempt to load XXXXXXXXX failed", and the httpd 
error log notes a segmentation fault with a child process.

Any ideas what could be wrong?  As I said, the above description 
won't help much unless you already have encountered a problem like 
this with a similar set up.

Cheers

Nigel Gilbert
-- 
_________________________________________________________________________
Prof Nigel Gilbert, FREng AcSS, Dept. of Sociology, University of Surrey,
  Guildford GU2 7XH, UK.  Tel: +44 (0)1483 259173 Fax: +44 (0)1483 259551




Hi,

On MacOS X 10.0.2, PHP 4.0.5 configure ends with the message:

---------------configure message------------------
|                       *** ATTENTION ***                            |
|                                                                    |
| Something is likely to be messed up here, because the configure    |
| script was not able to detect a simple feature on your platform.   |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages.                         |
|                                                                    |
| If you are unable to fix this, send the file debug.log to the      |
| [EMAIL PROTECTED] mailing list and include appropiate      |
| information about your setup.                                      |
---------------end configure message------------------

when I try to configure it with PostgreSQL 7.1 installed with Unicode 
option.
postgreSQL configure options:
./configure --enable-locale --enable-multibyte=UNICODE 
--enable-unicode-conversion --enable-syslog

PHP configure options:
./configure --with-xml --with-apxs=/usr/sbin/apxs --with-
pgsql=/usr/local/pgsql --without-mysql

------------PHP debug.log file-------------
CONFIGURE:   './configure' '--with-xml' '--with-apxs=/usr/sbin/apxs' 
'--with-pgsql=/usr/local/pgsql' '--without-mysql'
CC:         cc
CFLAGS:     -g -O2
CPPFLAGS:    -traditional-cpp -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT 
-DSUPPORT_UTF8
CXX:
CXXFLAGS:
INCLUDES:    -I/usr/include/httpd  -I$(top_builddir)/Zend
LDFLAGS:     -L/usr/local/pgsql/lib -L/usr/local/pgsql/lib
LIBS:       -lpq -lm
DLIBS:
SAPI:       apache
PHP_RPATHS:  /usr/local/pgsql/lib
uname -a:   Darwin localhost 1.3.2 Darwin Kernel Version 1.3.2: Fri Apr 
27 22:50:58 PDT 2001; root:xnu/xnu-124.7.obj~1/RELEASE_PPC  Power 
Macintosh powerpc

cc -o conftest -g -O2  -traditional-cpp -DDARWIN -DUSE_HSREGEX 
-DUSE_EXPAT -DSUPPORT_UTF8  -L/usr/local/pgsql/lib 
-L/usr/local/pgsql/lib conftest.c -lpq -lm  1>&5

------------end PHP debug.log file-------------

Regards.

Joël Brogniart <mailto:[EMAIL PROTECTED]>




I have had this same error - EXACTLY!  If someone can help.  Please do.

> From: [EMAIL PROTECTED] (Andrew Apold)
> Newsgroups: php.install
> Date: 24 Apr 2001 10:52:31 -0700
> Subject: [PHP-INST] --with-pdflib... stops on show_boxed
> 
> I've seen in the annotations and other places at least a dozen other
> people have
> this problem.... and about a dozen different solutions from using links,
> using
> a new pdf.c, omitting png support, or even installing an rpm...  none of
> them
> seem to help my situation.
> 
> 
> 
> I'm using php 4.04pl1., the 11 january (latest AFAIK).
> 
> Suse linux distribution, 2.4 kernal
> 
> pdflib 4.0.0.
> 
> Someone suggested using the binary on pdflib's site, tried that,
> also no go.  Weird, though, the pdflib-4.0.0-Linux.tar.gz file
> they have as a binary contains files who go to a pdflib-3.0.0
> directory. Either way, that didn't help.
> 
> Every time configure pdflib with
> 
> ./configure --enable-shared  --enable-shared-pdflib  --enable-php
> 
> when I tried the binary, that version didn't seem to have an
> --enable-php
> configure option.  Regardless, it is supposed to be enabled by default.
> 
> As far as I can tellthe shared stuff goes to /usr/local/lib, which is
> where php looks for it by default.
> 
> I configure, make, make test, as per instructions. Tried a make install
> too to ee fi that would help.
> 
> Run ldconfig, as various accounts of this error claim this will solve
> it.
> 
> then in php directory, using the new pdf.c from cvs places in
> .../ext/pdf,
> do a ./configure --with-mysql --with-apxs  --with-pdflib
> 
> Samne response every time:
> 
> checking whether to include Pdflib 3.x support... yes
> checking for PDF_show_boxed in -lpdf... (cached) no
> 
> earlier ones didn't have the cached I think.  hmmm. maybe it isn't
> rechecking with all my latest attempts?
> 
> configure: error: pdflib extension requires at least pdflib 3.x.  You
> may also need libtiff and libjpeg.  If so
> 
> and it cuts off right there.
> 
> I had this thing working under php3 and an older pdflib about a month or
> two ago (server rebuilt since then).
> Back then I did it without jpeg or tiff libraries, too.  The stuff I'm
> doing doesn't require them.
> 
> Regardless, I have both libtiff and libjpeg installed, following links
> to them from pdflib.com's website.
> Have zlib installed.
> 
> I'm at wits end with this one, been over a week I've not been able to
> get it working.  Half a mind to
> try clibpdf, though it would mean altering all my php files...
> 
> 
> oh, if I try --with-pdflib=/usr/local/lib,  it compiles through without
> error, but
> looking back on the log it says:
> 
> checking whether to include Pdflib 3.x support... no
> 
> so it compiles, but is no  use, no support.
> 
> any help would be greatly appreciated.
> 
> -- 
> PHP Install 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]
> 






Check your config.log for the reason why the compile test fails.
Most likely some library missing..

--Jani



On Thu, 3 May 2001, Charles Homan wrote:

>I have had this same error - EXACTLY!  If someone can help.  Please do.
>
>> From: [EMAIL PROTECTED] (Andrew Apold)
>> Newsgroups: php.install
>> Date: 24 Apr 2001 10:52:31 -0700
>> Subject: [PHP-INST] --with-pdflib... stops on show_boxed
>>
>> I've seen in the annotations and other places at least a dozen other
>> people have
>> this problem.... and about a dozen different solutions from using links,
>> using
>> a new pdf.c, omitting png support, or even installing an rpm...  none of
>> them
>> seem to help my situation.
>>
>>
>>
>> I'm using php 4.04pl1., the 11 january (latest AFAIK).
>>
>> Suse linux distribution, 2.4 kernal
>>
>> pdflib 4.0.0.
>>
>> Someone suggested using the binary on pdflib's site, tried that,
>> also no go.  Weird, though, the pdflib-4.0.0-Linux.tar.gz file
>> they have as a binary contains files who go to a pdflib-3.0.0
>> directory. Either way, that didn't help.
>>
>> Every time configure pdflib with
>>
>> ./configure --enable-shared  --enable-shared-pdflib  --enable-php
>>
>> when I tried the binary, that version didn't seem to have an
>> --enable-php
>> configure option.  Regardless, it is supposed to be enabled by default.
>>
>> As far as I can tellthe shared stuff goes to /usr/local/lib, which is
>> where php looks for it by default.
>>
>> I configure, make, make test, as per instructions. Tried a make install
>> too to ee fi that would help.
>>
>> Run ldconfig, as various accounts of this error claim this will solve
>> it.
>>
>> then in php directory, using the new pdf.c from cvs places in
>> .../ext/pdf,
>> do a ./configure --with-mysql --with-apxs  --with-pdflib
>>
>> Samne response every time:
>>
>> checking whether to include Pdflib 3.x support... yes
>> checking for PDF_show_boxed in -lpdf... (cached) no
>>
>> earlier ones didn't have the cached I think.  hmmm. maybe it isn't
>> rechecking with all my latest attempts?
>>
>> configure: error: pdflib extension requires at least pdflib 3.x.  You
>> may also need libtiff and libjpeg.  If so
>>
>> and it cuts off right there.
>>
>> I had this thing working under php3 and an older pdflib about a month or
>> two ago (server rebuilt since then).
>> Back then I did it without jpeg or tiff libraries, too.  The stuff I'm
>> doing doesn't require them.
>>
>> Regardless, I have both libtiff and libjpeg installed, following links
>> to them from pdflib.com's website.
>> Have zlib installed.
>>
>> I'm at wits end with this one, been over a week I've not been able to
>> get it working.  Half a mind to
>> try clibpdf, though it would mean altering all my php files...
>>
>>
>> oh, if I try --with-pdflib=/usr/local/lib,  it compiles through without
>> error, but
>> looking back on the log it says:
>>
>> checking whether to include Pdflib 3.x support... no
>>
>> so it compiles, but is no  use, no support.
>>
>> any help would be greatly appreciated.
>>
>> --
>> PHP Install 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]
>>
>
>
>





See comments in message below..

> 
> If you have ld.so.conf configured and have shared lib some where.
> 
Here ld.so.conf;

verona:/usr/local/src# cat /etc/ld.so.conf
/usr/X11R6/lib
/usr/i486-linuxaout/lib
/usr/local/mysql
/usr/local/Hughes
/usr/X11R6.3.3/lib
/usr/local/lib
/usr/lib

Have tried with /usr/local/mysql/lib and /usr/local/mysql/lib/mysql in there
as well - this above is the way file was originally (before I started trying
to get PHP 4.05 and PDFlib to work)

Here's directory of /usr/local/mysql
verona:/usr/local/mysql# ls
bin/         info/        libexec/     mysql.h      share/       var/
include/     lib/         man/         mysql.sock|  sql-bench/

Here's directory of /usr/local/mysql/lib:
verona:/usr/local/mysql/lib# ls
libmysqlclient.a      libmysqlclient.so.6*
libmysqlclient.so*    mysql/

Here's directory of /usr/local/mysql/lib/mysql:
verona:/usr/local/mysql/lib/mysql# ls
libdbug.a                 libmysqlclient.la*        libmysys.a
libheap.a                 libmysqlclient.so.6@      libnisam.a
libmerge.a                libmysqlclient.so.6.0.0*
libmysqlclient.a          libmystrings.a


> Try
> 
> ./configure --with-mysql

done.  Here's debug log:

verona:/usr/local/src/php-4.0.5# cat debug.log
CONFIGURE:   './configure' '--with-apxs=/www/bin/apxs' '--with-mysql'
'--with-pd
flib=/usr/local/src/pdflib-4.0.0' '--enable-track-vars' '--with-gnu-ld'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=2 -DMOD_PERL -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
CXX:
CXXFLAGS:
INCLUDES:     -I$(top_builddir)/Zend
LDFLAGS:
LIBS:       -lresolv -lm -ldl  -lresolv
DLIBS:
SAPI:       apache
PHP_RPATHS:
uname -a:   Linux verona.mysitestation.com 2.0.36 #24 Thu May 18 22:53:18
PDT 20
00 i586

gcc -o conftest -g -O2  -DLINUX=2 -DMOD_PERL -DUSE_HSREGEX -DUSE_EXPAT
-DSUPPORT
_UTF8  conftest.c -lresolv -lm -ldl  -lresolv 1>&5

> 
> instead of
> 
> ./configure --with-mysql=directory
> 
> Are you sure your MySQL lib is OK?
> 

No.  I am on a co-located server built by my service provider - Colossus,
Inc.  Do you think it could be the compiler? I thought that it may be MySQL
too and was going to reinstall it suggested I upgrade to "Thread" something.
I have gcc 2.7.2.1 now.

Was going to try to do all this with RPM but no go there.  I have 2.0 and it
refuses to let me install the rpm.  Went to get higher version of rpm and
couldn't unpack cpio to upgrade rpm!!!

Needless to say, I am having a bear of a time.

Finally -- go to http://www.mysitestation.com/phpinfo.php to see how the
current version of PHP is configured.  One thing I notice that may be a
problem is that the system shows calcite.colossus.net and not
verona.mysitestation.com -- Could that be a problem?

> --
> Yasuo Ohgaki
> 
> 
> "Charles Homan" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Have tried a thousand suggestions from lists all over.  Please help me.  I
>> am begging.  Here's my debug.log;
>> 
>> verona:/usr/local/src/php-4.0.4pl1# cat debug.log
>> CONFIGURE:   './configure' '--with-apxs=/www/bin/apxs'
>> '--with-mysql=/usr/local/mysql' '--with-pdflib=/usr/local/src/pdflib-4.0.0'
>> '--enable-track-vars'
>> CC:         gcc
>> CFLAGS:     -g -O2
>> CPPFLAGS:    -DLINUX=2 -DMOD_PERL -DUSE_HSREGEX -DUSE_EXPAT
>> CXX:
>> CXXFLAGS:
>> INCLUDES:     -I$(top_builddir)/Zend
>> LDFLAGS:
>> LIBS:       -lmysqlclient -lresolv -lm -ldl  -lresolv
>> DLIBS:
>> SAPI:       apache
>> PHP_RPATHS:
>> uname -a:   Linux verona.mysitestation.com 2.0.36 #24 Thu May 18 22:53:18
>> PDT 20
>> 00 i586
>> 
>> gcc -o conftest -g -O2  -DLINUX=2 -DMOD_PERL -DUSE_HSREGEX -DUSE_EXPAT
>> conftest
>> .c -lmysqlclient -lresolv -lm -ldl  -lresolv 1>&5
>> ld: cannot open -lmysqlclient: No such file or directory
>> 
>> I get the infamouse attention message after I try to configure.  I have the
>> right paths to mysql.  I have the libmysqlclient files in
>> /usr/local/mysql/lib/mysql and symbolic linked to /usr/local/mysql
>> ld.so.conf is correct.  Please before I loose the rest of my hair.... help!
>> --
>> Charles Homan
>> Group Creative Director
>> GodwinGroup
>> Oxford, Mississippi
>> 662.236.4442
>> 
>> 
>> --
>> PHP Install 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 Install 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]
> 






>> I get the infamouse attention message after I try to configure.  I have the
>> right paths to mysql.  I have the libmysqlclient files in
>> /usr/local/mysql/lib/mysql and symbolic linked to /usr/local/mysql
>> ld.so.conf is correct.  Please before I loose the rest of my hair.... help!
> 
> Think I remember something like not having zlib installed.. I never seen
> the error above.. perhaps because I'm always installing quite a few libs..
> Seen a question almost simular to yours on another list and it seems zlib
> caused it..

zlib is installed already.

> ld.so.conf should contain /usr/local/mysql/lib/mysql DO NOT FORGET to run
> ldconfig after changing ld.so.conf

Did this before and got same errors, and I didn't forget to ldconfig

> 
> Also.. check www.devshed.com a nice tutorial can be found there..
> 
> uhm, being a creative guy does NOT mean you know how to install/maintain a
> server. 

Glad you can make such judgements based on my sig line -- You're are right,
but that was kind of a knee jerk assumption that you should shy away from
doing in the future.

> I wonder.. why don't you hire someone to do the job for you.. costs
> you less then trying it yourself..

Let's sum it up by saying I like to learn new things.  Plus, if I know this
I don't have to be held hostage by ignorance when I need something like this
on another server.

> Anyway, the tutorial on devshed.com should get you up and running.. is not
> going to cost you to much time.
> 

Couldn't find it. Sorry.

> Bye,
> 
> 
> B.
> 
> 
> -- 
> PHP Install 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]
> 






> > ld.so.conf should contain /usr/local/mysql/lib/mysql DO NOT FORGET to run
> > ldconfig after changing ld.so.conf
>
>Did this before and got same errors, and I didn't forget to ldconfig

I know an experienced sysadmin who forgot.

> > uhm, being a creative guy does NOT mean you know how to install/maintain a
> > server.
>
>Glad you can make such judgements based on my sig line -- You're are right,
>but that was kind of a knee jerk assumption that you should shy away from
>doing in the future.

I don't know many (0) creative guys who know much about the servers they're 
using. Perhaps I'm jumping to conclusions..

> > I wonder.. why don't you hire someone to do the job for you.. costs
> > you less then trying it yourself..
>
>Let's sum it up by saying I like to learn new things.  Plus, if I know this
>I don't have to be held hostage by ignorance when I need something like this
>on another server.

I can understand that.. but why not play with an offline machine until you 
know what you're doing.. screwing up an offline machine is not such a 
problem..

You could ask your ISP to do it this time.. next time you'll have enough 
knowledge to do it yourself. /me doesn't like to admin boxes installed by 
someone else..

> > Anyway, the tutorial on devshed.com should get you up and running.. is not
> > going to cost you to much time.
> >
>
>Couldn't find it. Sorry.

Then you didn't look very hard:
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/

All I needed to do was to type www.devshed.com CLICK PHP and scroll down.

Bye,


B.





>>> ld.so.conf should contain /usr/local/mysql/lib/mysql DO NOT FORGET to run
>>> ldconfig after changing ld.so.conf
>> 
>> Did this before and got same errors, and I didn't forget to ldconfig
> 
> I know an experienced sysadmin who forgot.

I don't doubt that.

>>> uhm, being a creative guy does NOT mean you know how to install/maintain a
>>> server.
>> 
>> Glad you can make such judgements based on my sig line -- You're are right,
>> but that was kind of a knee jerk assumption that you should shy away from
>> doing in the future.
> 
> I don't know many (0) creative guys who know much about the servers they're
> using. Perhaps I'm jumping to conclusions..

You're right...  BUT - count me a (1) that wants to lean.

> 
>>> I wonder.. why don't you hire someone to do the job for you.. costs
>>> you less then trying it yourself..
>> 
>> Let's sum it up by saying I like to learn new things.  Plus, if I know this
>> I don't have to be held hostage by ignorance when I need something like this
>> on another server.
> 
> I can understand that.. but why not play with an offline machine until you
> know what you're doing.. screwing up an offline machine is not such a
> problem..

Right again -- got an old P100 machine here that I am going to try this on..

> 
> You could ask your ISP to do it this time.. next time you'll have enough
> knowledge to do it yourself. /me doesn't like to admin boxes installed by
> someone else..
> 

Sending them a message right now because I am going mad trying to figure out
what tools they have installed and if they are correct.

>>> Anyway, the tutorial on devshed.com should get you up and running.. is not
>>> going to cost you to much time.
>>> 
>> 
>> Couldn't find it. Sorry.
> 
> Then you didn't look very hard:
> http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/
> 
> All I needed to do was to type www.devshed.com CLICK PHP and scroll down.
> 
> Bye,
> 
> 
> B.

Found it right after I posted the previous message.  Bet you're saying 'Yeah
Right' :)   It does look like a very good tutorial. Thanks.

Hey, can we fuss like this more often!  It's fun, and I learn a lot.
Seriously, thanks for the direction.
> 
> 
> -- 
> PHP Install 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]
> 





Before I install Apache and PHP, I'm trying to install mysql. I'm
running Solaris 8...and it doesn't appear to be working correctly.

When I did the install from the free sun site, it didn't seem to be
installing everything that it should (a var directory?) and I couldn't
get it started. 

So I downloaded it from www.mysql.com and got a message when it was
trying to do some of the mysql_bench files that there were unknown file
types. (If I remember correctly the same thing happened when I did it
with the pkgadd of the version from the free sun site).

Then it wouldn't let me start it with ./bin/safe_mysqld --user=mysql &
but I could start it without naming a user (./bin/safe_mysqld) and
create new dbs and stuff. So is that running as root then? It also won't
let me change the password (or I'm doing it wrong---using ./mysqladmin
-u root -p password 'new-password'; then it prompts me for a password?!
What should I do there? What is the password?

It won't let me do the sql-bench/run-all-tests. It says the file is not
found...but it is there and is an executable.

I don't have a clue what to do, or what is going wrong...any help would
be appreciated.

Tara





>Then it wouldn't let me start it with ./bin/safe_mysqld --user=mysql &
>but I could start it without naming a user (./bin/safe_mysqld) and
>create new dbs and stuff. So is that running as root then? It also won't
>let me change the password (or I'm doing it wrong---using ./mysqladmin
>-u root -p password 'new-password'; then it prompts me for a password?!
>What should I do there? What is the password?

Did you install according to the instructions found in the MySQL manual?

After installing you should set the root password. Failing this will leave 
your server open to anyone who likes it.. thats bad. You tried to solve 
it.. but you just need to retype the password again.. (if I remember it 
correctly).

You try to run mysql as root.. thats bad.. read the manual (www.mysql.com) 
or.. if you compile from source you can find it in /path/where/source/is/Doc

You should also change the rights according to the info in the manual..

Bye,


B.






I got Apache 2.0 installed I believe just fine with DSO Support. I am now
trying
to get PHP 4.0.5 to install with APXS and it doesn't seem to work. My
configure
line for PHP is:

./configure --with-mysql=/usr/local --with-apxs=/usr/local/apache2/bin/apxs 
--with-gd=/usr/local
--enable-ftp --enable-trans-sid --with-gettext --with-imap=/home/devin/imap-
4.4 --without-pear
--disable-debug

During the Configure i see:


                                               /'^'\
                                              ( o o )
------------------------------------------oOOO--(_)--OOOo----
    Devin Atencio
    ArosNet Systems Administration         .oooO
    EMail: [EMAIL PROTECTED]               (   )   Oooo.
--------------------------------------------\ (----(   )-----
                                             \_)    ) /
                                                   (_/







I got Apache 2.0 installed I believe just fine with DSO Support. I am now
trying to get PHP 4.0.5 to install with APXS and it doesn't seem to work. My
configure line for PHP is:

./configure --with-mysql=/usr/local --with-apxs=/usr/local/apache2/bin/apxs
--with-gd=/usr/local --enable-ftp --enable-trans-sid --with-gettext
--with-imap=/home/devin/imap-4.4 --without-pear --disable-debug

During the Configure i see:

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... Global symbol
"$CFG_LD_SHLIB" requires explicit package name at (eval 2) line 2.
yes
checking for mod_charset compatibility option... no
checking for Apache 2.0 module support via DSO through APXS... no
checking for Caudium support... no
checking for fhttpd module support... no
checking for FastCGI support... no
checking for Zeus ISAPI support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web Support... no
checking for Roxen/Pike support... no
checking for Servlet support... no
checking for thttpd... no
checking for chosen SAPI module... apache

So it doesn't seem to accept Apache 2.0 for some reason. My configure script
I ran for Apache 2.0 is as follows:

./configure --prefix=/usr/local/apache2 --enable-modules=so --enable-headers
 --enable-expires --enable-mime-magic --with-suexec-caller=nobody
 --with-suexec-userdir=public_html --with-suexec-uidmin=100 --with-suexec-gi
dmin=100

Apache compiled and seemed to install just fine.

Any ideas why PHP is freaking out?

                                               /'^'\
                                              ( o o )
------------------------------------------oOOO--(_)--OOOo----
    Devin Atencio
    ArosNet Systems Administration         .oooO
    EMail: [EMAIL PROTECTED]               (   )   Oooo.
--------------------------------------------\ (----(   )-----
                                             \_)    ) /
                                                   (_/






Got it working. I added PGLS_FETCH(); to the _rollback_transactions function
as follows:

static int _rollback_transactions(zend_rsrc_list_entry *rsrc)
{
    PGconn *link = (PGconn *)rsrc->ptr;
    PGLS_FETCH();

    PGG(ignore_notices) = 1;
    PQexec(link,"BEGIN;ROLLBACK;");
    PGG(ignore_notices) = 0;

    return 0;
}

Seems to work ok now with this configure:

./configure \
  --with-aolserver=/net/clear1/home/rpatters/as3 \
  --disable-short-tags \
  --disable-mysql \
  --enable-bcmath \
  --enable-ftp \
  --enable-shmop \
  --enable-sysvsem \
  --enable-sysvshm \
  --enable-socket \
  --enable-mbstring \
  --without-mysql \
  --enable-inline-optimization \
  --with-pgsql=/net/clear1/home/rpatters/pgsql \
  --without-gd

Note that this is for Solaris 2.6 on UltraSparc

Thanks,
Ron

"Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote:
> Some thing must be broken in 4.0.5. I could compile w/o error around RC5 or
RC6,
> I think.
> 
> I compiled CVS source with PostgreSQL7.1's libpq. It compiles and seems
working.
> (There were warning regarding notice handler, though)
> 
> Regards,
> --
> Yasuo Ohgaki
> 
> 
> "Ron Patterson" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there,
> 
> I'm building the new PHP-4.0.5 with support for PostgreSQL 7.1 database and
> get the following build error:
> 
> gmake[3]: Entering directory
`/net/clear1/home/rpatters/php-4.0.5/ext/pgsql'
> /bin/sh /net/clear1/home/rpatters/php-4.0.5/libtool --silent --mode=compile
> gcc
> -I. -I/net/clear1/home/rpatters/php-4.0.5/ext/pgsql
> -I/net/clear1/home/rpatters/php-4.0.5/main
> -I/net/clear1/home/rpatters/php-4.0.5
-I/net/clear1/home/rpatters/as3/include
> -I/net/clear1/home/rpatters/php-4.0.5/Zend
> -I/net/clear1/home/rpatters/php-4.0.5/ext/xml/expat/xmltok
> -I/net/clear1/home/rpatters/php-4.0.5/ext/xml/expat/xmlparse
> -I/net/clear1/home/rpatters/php-4.0.5/TSRM
> -I/net/clear1/home/rpatters/pgsql/include -D_POSIX_PTHREAD_SEMANTICS
> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DSUPPORT_UTF8
> -DXML_BYTE_ORDER=21
> -I../TSRM -g -O2 -c pgsql.c
> pgsql.c: In function `_notice_handler':
> pgsql.c:158: warning: passing arg 1 of `php_log_err' discards `const' from
> pointer target type
> pgsql.c: In function `_rollback_transactions':
> pgsql.c:167: `pgsql_globals' undeclared (first use this function)
> pgsql.c:167: (Each undeclared identifier is reported only once
> pgsql.c:167: for each function it appears in.)
> gmake[3]: *** [pgsql.lo] Error 1
> gmake[3]: Leaving directory /net/clear1/home/rpatters/php-4.0.5/ext/pgsql'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/net/clear1/home/rpatters/php-4.0.5/ext/pgsql'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/net/clear1/home/rpatters/php-4.0.5/ext'
> gmake: *** [all-recursive] Error 1
> 
> Worked ok with PostgreSQL 7.0.3
> 
> Any ideas?
> 
> Thanks,
> Ron Patterson
> USA.NET
> 
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
> 
> --
> PHP Install 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 Install 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]
> 


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1




Well, I've got a nice howto for you all. I ended up giving up on gd 2.0.1
altogether and grabbed gd 1.8.4 which seems to work great. SO. Here's a step
by step how to do it (and the libraries you'll need as well). Hope everyone
who was having problems is a much happier person in about an hour. I know I
am. :)

This SHOULD work on anyone's system, however I did this on a RedHat 6.2
setup - and before you rip me about using RedHat, just remember that I got
it working and am helping you. heheh Now all I have to do is resurrect RPM.
Tried to upgrade it and killed it. Oh well. :)

-Philip
Home: 310.996.1316
Work: 310.664.1778
Web:  http://www.bewley.net/~prsnyder
 
 <<howto-apache-php4-gd.txt>> 
I started a complete rebuild of my web server so I could gain access to the
new gd functionality in PHP4. This is a fairly detailed log of the steps I
took to get my gd working and then incorporating it with PHP4 / Apache. I
spent the better part of 2 days trying to get this to work with gd 2.0.1
and to no avail. It is my recommendation that you should just stick with
gd 1.8.4 as it works great and has all the functionality you probably
need. Hope this helps all those out there who have been struggling with
this setup. ;) I'd love to hear from anyone who finds this useful or
perhaps something that needs to be changed. Thanks!

-Philip
Web:   http://www.bewley.net/~prsnyder
Email: [EMAIL PROTECTED]

---------------------------------------------------------------------------
Setting up gd

Libraries Used:

  o freetype-2.0.1.tar.gz   -  http://freetype.sourceforge.net/
  o gd-1.8.4.tar.gz         -  http://www.boutell.com/gd/#getgd
  o jpegsrc.v6b.tar.gz      -  ftp://ftp.uu.net/graphics/jpeg/
  o libpng-1.0.11.tar.gz    -  http://www.libpng.org/pub/png/libpng.html
  o zlib.tar.gz             -  http://www.info-zip.org/pub/infozip/zlib/

zlib:
  1. tar zxvf zlib.tar.gz
  2. cd zlib-1.1.3/
  3. ./configure --shared
  4. make test
  5. make install

  This places zlib in /usr/local, with libraries in /usr/local/lib
  and includes in /usr/local/include.

jpeg:
  1. tar zxvf jpegsrc.v6b.tar.gz
  2. cd jpeg-6b/
  3. ./configure --enable-shared
  4. make
  5. make test
  6. make install

  This places jpeg-v6 in /usr/local, with libraries in /usr/local/lib
  and includes in /usr/local/include.

libpng:
  1. tar zxvf libpng-1.0.11.tar.gz
  2. cd libpng-1.0.11/
  3. cp scripts/makefile.linux makefile
  4. Edit makefile

       Lines 11 - 15:
       # Where the zlib library and include files are located
       ZLIBLIB=/usr/local/lib
       ZLIBINC=/usr/local/include
       #ZLIBLIB=../zlib
       #ZLIBINC=../zlib

  5. make test
  6. make install

  This places libpng in /usr/local, with libraries in /usr/local/lib
  and includes in /usr/local/include.

freetype:
  1. tar zxvf freetype-2.0.1.tar.gz
  2. cd freetype-2.0.1
  3. make setup
  4. make
  5. make install

  This places freetyp in /usr/local, with libraries in /usr/local/lib
  and includes in /usr/local/include.

gd:
  1. tar zxvf gd-1.8.4.tar.gz
  2. cd gd-1.8.4
  3. make
  4. make install

  This places gd in /usr, with libraries in /usr/lib and includes
  in /usr/include.


Yay! Now if all has gone well (and it seemed fairly easy to get this
far) then we're ready for setting up PHP4 & Apache. I've got a bunch
of extra stuff on my web server such as mod_ssl, OpenLDAP, MySQL,
etc. I don't touch on the setup of those packages, but I trust you
will do just fine on your own.



---------------------------------------------------------------------------
And now my web server setup:

  Packages Used:
    o apache_1.3.19.tar.gz
    o php-4.0.5.tar.gz
    o mod_ssl-2.8.2-1.3.19.tar.gz
  
  Prerequisites:
    o MySQL is already installed to /usr/local/mysql
    o OpenSSL is already installed to /usr/local/openssl
    o I also have OpenLDAP installed, but I trust you can
      figure out how to add that in here.

  1. Extract the sources:

       % tar zxvf apache_1.3.19.tar.gz
       % tar zxvf mod_ssl-2.8.2-1.3.19.tar.gz
       % tar zxvf php-4.0.5.tar.gz

  2. Configure mod_ssl
       % cd mod_ssl-2.8.2-1.3.19/
       % ./configure --with-apache=../apache_1.3.19
       % cd ..

  3. Pre-configure apache
       % cd apache_1.3.19/
       % ./configure --prefix=/usr/local/apache
       % cd ..

  4. Configure & build PHP
       % cd php-4.0.5/
       % ./configure \
       > --with-apache=../apache_1.3.19 \
       > --with-mysql=/usr/local/mysql \
       > --with-ldap=/usr/local \     # <---- If you don't have OpenLDAP, remove this.
       > --with-xml \
       > --with-gd \
       > --with-gd-dir=/usr \
       > --with-jpeg-dir=/usr/local \
       > --enable-track-vars \
       > --enable-shared
       % make
       % make install
       % cd ..

  5. Configure Apache
       % cd apache_1.3.19/
       % SSL_BASE=/usr/local/openssl \
       > RSA_BASE=../rsaref-2.0/local \  # <---- You may or may not have RSARef... its 
a US requirement
       > ./configure \
       > --with-layout=Apache \
       > --prefix=/usr/local/apache \
       > --activate-module=src/modules/php4/libphp4.a \
       > --enable-module=expires \
       > --enable-module=headers \
       > --enable-module=php4 \
       > --enable-module=so \
       > --enable-module=ssl \
       > --enable-module=usertrack \
       > --enable-module=vhost_alias \
       > --enable-shared=php4 \
       > --enable-shared=ssl \
       > --enable-rule=SHARED_CHAIN \
       > --enable-rule=SHARED_CORE \
       > --enable-rule=EAPI
       % make
       % make certificate TYPE=custom
       % make install



And that should be it! Mine appears to be working, so I'm
pretty happy. Hope you are able to get this far as well!

-Philip
Web:   http://www.bewley.net/~prsnyder
Email: [EMAIL PROTECTED]






Reply via email to