php-install Digest 26 Mar 2003 01:03:22 -0000 Issue 1306

Topics (messages 10405 through 10420):

Re: Problems running configure (locks up)
        10405 by: Eli White
        10414 by: Michael Mauch

A newbie question
        10406 by: fa
        10407 by: Bryan Brannigan
        10408 by: fa

Problem on Solaris 8
        10409 by: Guillermo Guill?n Angel
        10415 by: Michael Mauch
        10419 by: Guillermo Guill?n Angel

AIX 4.3.3 php install problem
        10410 by: Stephen Spalding

Re: Problems with PHP 4.3.1 and RH 7.3
        10411 by: Juvenal A. Silva Jr.
        10417 by: Michael Mauch

Problem with Apache-2.0.44
        10412 by: Sebastian Muench

Re: installing cUrl
        10413 by: Michael Mauch

Output line too long error?
        10416 by: Tom Tsongas
        10418 by: Michael Mauch
        10420 by: Tom Tsongas

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 --- Michael Mauch wrote:
Or put a "set -x" on the second line of the configure script and post the last
lines of the output.

Here it is ... It seems to be hanging on shtool: + egrep define.*include/php ./configure + xargs touch + sed s/.*>// php_shtool=./build/shtool + ./build/shtool echo -n -e %B

So, I then tried to run build/shtool by itself, and yup, with the 'echo', it locks. The one that comes with php-4.2.3, works.

The set -x stream for build/shtool shows:
+ sed -e s/\([a-zA-Z0-9]\)\([.:+]\)/opt_MODE_\1=\2;/g
+ eval opt_MODE_h=.;opt_MODE_n=.;opt_MODE_e=.;
opt_MODE_h=.
opt_MODE_n=.
opt_MODE_e=.
+ echo h:help,n:newline,e:expand
+ tr x- x_
+ sed -e s/\([a-zA-Z0-9]\):\([^,]*\),*/opt_ALIAS_\2=\1;/g

Note that this is different from a set -x from the previous (4.2.3) version which in the same area gives:
+ sed -e s/\([a-zA-Z0-9]\)\([.:+]\)/opt_MODE_\1=\2;/g
+ eval opt_MODE_h=.;opt_MODE_n=.;opt_MODE_e=.;
opt_MODE_h=.
opt_MODE_n=.
opt_MODE_e=.
opt_PREV=
+ [ 1 -gt 0 ]
+ [ .blah = .-- ]
opt_ARG_OK=no


This whole sed call with the opt_ALIAS is new, and is what is locking me up.

So, I then followed your advice and added the xpg4 version of sed higher in my path (/ucb was winning currently). And build/shtool worked fine.

As we speak, my configure is running along just fine.

Thanks a million ... and now the 'big question'. Is this considered a 'bug' enough that I should submit it as such? Since, it seems to me, that many/most Solaris installations might have this problem, and the configure script should check for an /xpg4/ version?

Or is this officially a 'stupid user' issue of using a bad version?

Thanks either way.

And "--with-jpeg-d=/opt/X11R5" looks a bit strange, should probably be
"--with-jpeg-dir=/opt/X11R5".

Whoops, bad cut/paste ... thanks for the catch


Eli



--- End Message ---
--- Begin Message ---
Eli White <[EMAIL PROTECTED]> wrote:
> Michael Mauch wrote:
>> Or put a 
>> "set -x" on the second line of the configure script and post the last
>> lines of the output.

> So, I then followed your advice and added the xpg4 version of sed higher 
> in my path (/ucb was winning currently).  And build/shtool worked fine.
> 
> As we speak, my configure is running along just fine.
> 
> Thanks a million ... and now the 'big question'.  Is this considered a 
> 'bug' enough that I should submit it as such?  Since, it seems to me, 
> that many/most Solaris installations might have this problem, and the 
> configure script should check for an /xpg4/ version?

Probably it's already fixed in CVS, see
<http://bugs.php.net/bug.php?id=22074>. Maybe you can check whether the
latest stable snapshot from <http://snaps.php.net/> works for you (with
your original PATH, of course). If not, you could comment on that bug.

> Or is this officially a 'stupid user' issue of using a bad version?

It's not a "stupid user" issue, but perhaps a "stupid Solaris default
install" issue. Reading the user notes on
<http://www.php.net/manual/en/install.solaris.php> might have hinted you
into the right direction, though.

Regards...
                Michael

--- End Message ---
--- Begin Message ---
Hi, list.
I'm a newbie in UNIX, so this might be a stupid question.
Anyway, I've installed php-4.3.1 as a loadable module for
apache-1.3.27. (apache configured: ./configure --enable-so; php
configured: ./configure --with-apxs=/usr/local/apache/bin/apxs
--with-mysql).
Installation of both goes fine. Then I copy php.ini-dist to
/usr/local/lib/php.ini. After that I've modified httpd.conf: AddType
Application/x-httpd-php .php. I didn't modify anything else.
Apache starts ok, but when I try to execute some php script, it gives
me "Internal server error 500".
I use FreeBSD-4.6.2.
Please, tell me what am I doing wrong.


--- End Message ---
--- Begin Message ---
try using this as a test script

--snip--

<?php

phpinfo()

?>

--snip--

if this works then your PHP installation is ready to fly.

----- Original Message ----- 
From: "fa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 9:26 AM
Subject: [PHP-INST] A newbie question


Hi, list.
I'm a newbie in UNIX, so this might be a stupid question.
Anyway, I've installed php-4.3.1 as a loadable module for
apache-1.3.27. (apache configured: ./configure --enable-so; php
configured: ./configure --with-apxs=/usr/local/apache/bin/apxs
--with-mysql).
Installation of both goes fine. Then I copy php.ini-dist to
/usr/local/lib/php.ini. After that I've modified httpd.conf: AddType
Application/x-httpd-php .php. I didn't modify anything else.
Apache starts ok, but when I try to execute some php script, it gives
me "Internal server error 500".
I use FreeBSD-4.6.2.
Please, tell me what am I doing wrong.


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
BB> try using this as a test script

BB> --snip--

BB> <?php

BB> phpinfo()

?>>

BB> --snip--

BB> if this works then your PHP installation is ready to fly.

BB> ----- Original Message ----- 
BB> From: "fa" <[EMAIL PROTECTED]>
BB> To: <[EMAIL PROTECTED]>
BB> Sent: Tuesday, March 25, 2003 9:26 AM
BB> Subject: [PHP-INST] A newbie question


BB> Hi, list.
BB> I'm a newbie in UNIX, so this might be a stupid question.
BB> Anyway, I've installed php-4.3.1 as a loadable module for
BB> apache-1.3.27. (apache configured: ./configure --enable-so; php
BB> configured: ./configure --with-apxs=/usr/local/apache/bin/apxs
BB> --with-mysql).
BB> Installation of both goes fine. Then I copy php.ini-dist to
BB> /usr/local/lib/php.ini. After that I've modified httpd.conf:
BB> AddType
BB> Application/x-httpd-php .php. I didn't modify anything else.
BB> Apache starts ok, but when I try to execute some php script,
BB> it gives
BB> me "Internal server error 500".
BB> I use FreeBSD-4.6.2.
BB> Please, tell me what am I doing wrong.


BB> -- 
BB> PHP Install Mailing List (http://www.php.net/)
BB> To unsubscribe, visit: http://www.php.net/unsub.php




I've tried
<html>
<body>
<?php
phpinfo();
?>
</body>
</htm>
It gave me an error.
Even this:
<html>
<body>
some text
</body>
</htm>
if saved with a .php extension doesn't work.


--- End Message ---
--- Begin Message --- Hello
I've been trying to install PHP 4.3.1 on my Solaris 8 server, but when I try to run the configure script it just freezes
this is what I get:


root en robin# ./configure --with-mysql --with-apache=/usr/local/apache_1.3.27
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for working sed... sed
checking host system type... sparc-sun-solaris2.8
Updated php_version.h


and that's all. it doesn't do anything else.
What can I do to get it to work.

thanks for the help



--
+----------------------------------------------------------------------+

L.I. Guillermo Guill?n Angel                 tels. 36503680   ext. 117
Jefe del                                           36196910
Centro de Computo de Investigaci?n y Posgrado      36192379
CUCEI                                              36196017
Universidad de Guadalajara                         36194028

+----------------------------------------------------------------------+




--- End Message ---
--- Begin Message ---
Guillermo guill?n angel <[EMAIL PROTECTED]> wrote:

> I've been trying to install PHP 4.3.1 on my Solaris 8 server, but when I 
> try to run the configure script it just freezes

See the thread starting with
<news:[EMAIL PROTECTED]>, subject
"Problems running configure (locks up)", from yesterday.

Regards...
                Michael

--- End Message ---
--- Begin Message --- Thanks Michael.

I had no problem in configuring php after the advice you gave me.
I compiled it but when I tryed tod install it I recieved this message


root en zeus# make install
Installing PHP CLI binary: /usr/local/bin/
Installing PHP SAPI module
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
ld.so.1: /usr/local/php-4.3.0/sapi/cli/php: fatal: libucb.so.1: open failed: No such file or directory
*** Error code 137
The following command caused the error:
/usr/local/php-4.3.0/sapi/cli/php -n -dsafe_mode=0 /usr/local/php-4.3.0/pear/install-pear.php /usr/local/php-4.3.0/pear/package-*.xml
make: Fatal error: Command failed for target `install-pear-installer'
Current working directory /usr/local/php-4.3.0
*** Error code 1
make: Fatal error: Command failed for target `install-pear'


I checked and there is no missing file.
all the files listed in this message exists
what can I do?

thanks for your help



Michael Mauch wrote:

Guillermo guill?n angel <[EMAIL PROTECTED]> wrote:



I've been trying to install PHP 4.3.1 on my Solaris 8 server, but when I try to run the configure script it just freezes



See the thread starting with <news:[EMAIL PROTECTED]>, subject "Problems running configure (locks up)", from yesterday.

Regards...
                Michael




-- +----------------------------------------------------------------------+

L.I. Guillermo Guill?n Angel                 tels. 36503680   ext. 117
Jefe del                                           36196910
Centro de Computo de Investigaci?n y Posgrado      36192379
CUCEI                                              36196017
Universidad de Guadalajara                         36194028

+----------------------------------------------------------------------+




--- End Message ---
--- Begin Message ---
Hello all,

I'm installing php for the first time on an IBM b50
running AIX 4.3.3. I'm trying to install php 4.3.1 for
use with Oracle 8.1.7, and it's crapping out at the
make command. Here is error that I'm receiving:

ld: 0706-006 Cannot find or open library file: -l
ocijdbc8
        ld:open(): No such file or directory
make: 1254-004 The error code from the last command is
255.

Here are the relevant env vars that I have set:

CLASSPATH=/oracle/app/oracle/product/8.1.7/jdbc/lib:/oracle/app/oracle/product/8.1.7/lib
LDFLAGS=-lC
LD_LIBRARY_PATH=/usr/lib:/oracle/app/oracle/product/8.1.7/lib:/oracle/app/oracle/product/8.1.7/jdbc/lib
LIBPATH=/oracle/app/oracle/product/8.1.7/lib:/usr/lib:/oracle/app/oracle/product/8.1.7/jdbc/lib
ORACLE_BASE=/oracle/app/oracle
ORACLE_HOME=/oracle/app/oracle/product/8.1.7
ORACLE_SID=TEST
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/sbin/cluster:.:/home/tools:/usr/local/bin:/oracle/app/oracle/product/8.1.7/bin:/oracle/app/oracle/product/8.1.7/bin:/oracle/app/oracle/product/8.1.7/bin:/oracle/app/oracle/product/8.1.7/bin

Here is the configure command that I'm using:
./configure --with-apxs=/usr/HTTPServer/bin/apxs
--enable-force-cgi-redirect --enable-safe-mode
--enable-magic-quotes --without-mysql
--with-oci8=/oracle/app/oracle/product/8.1.7 --enable
sigchild --enable-shared

I saw one similar message to this in the archives, but
there was no answer as to how to fix it. Can anyone
help me out?

Thanks!

-Stephen Spalding

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

--- End Message ---
--- Begin Message ---
Folks,

Can anyone respond about this, please...
I already changed the glibc to the latest one (2.2.5-43) and to the latest
apache (1.3.27-2) available at RHN (RPM packages). I keep the kernel the
same.
Even after these changes I still get the same error (Segmentation Fault) on
session_start().
Please help... I'm becoming desperate....

Cheers,

Juvenal A. Silva Jr.

"Juvenal A. Silva Jr." <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> Hi,
>
> I had installed the PHP 4.1.2 that I modified slightly from the RH 7.3
SRPM
> to include informix (as a module) and dbase support (not active in the
> original RPM from RH 7.3). It worked OK for a long time, but I found some
> bugs in the Informix handle of blobs, and when I got to post a bug on
> php.net, I saw there that I can only post bugs for the latest version of
PHP
> (4.3.1 at the moment).
>
> I grab this version from php.net (tarball) and generate another RPM (based
> on the previous one) with all the modules that I need. It compiled fine
> (even a patch that I created to compile the informix module cleanly wasn't
> needed), but at execution time I got the following error on error_log when
I
> call session_start():
>
> [Mon Mar 24 00:54:23 2003] [notice] child pid 24016 exit signal
Segmentation
> fault (11)
> [Mon Mar 24 00:54:26 2003] [notice] child pid 24013 exit signal
Segmentation
> fault (11)
>
> Here is my configure directive:
>
> ./configure
>         --prefix=/usr \
>         --with-config-file-path=/etc \
>         --disable-debug \
>         --enable-pic \
>         --disable-rpath \
>         --enable-safe-mode \
>         --enable-inline-optimization \
>         --enable-memory-limit \
>         --enable-zend-multibyte \
>         --enable-shared \
>         --enable-libgcc \
>         --enable-sigchild \
>         --with-tsrm-pthreads \
>         --with-layout=GNU \
>         --enable-dbase \
>         --enable-bcmath \
>         --enable-debugger \
>         --enable-exif \
>         --enable-ftp \
>         --enable-magic-quotes \
>         --enable-safe-mode \
>         --enable-sockets \
>         --enable-sysvmsg \
>         --enable-sysvsem \
>         --enable-sysvshm \
>         --enable-discard-path \
>         --enable-track-vars \
>         --enable-trans-sid \
>         --enable-yp \
>         --enable-wddx \
>         --enable-bcmath \
>         --enable-shmop \
>         --enable-versioning \
>         --enable-calendar \
>         --enable-dbx \
>         --disable-dio \
>         --enable-mbstring \
>         --enable-mbregex \
>         --enable-thread-safety \
>         --with-openssl \
>         --with-qtdom \
>         --with-readline \
>         --with-zlib \
>         --with-bz2 \
>         --with-db2 \
>         --with-db3 \
>         --with-flatfile \
>         --with-curl \
>         --with-dom=/usr \
>         --with-exec-dir=/usr/bin \
>         --with-freetype-dir=/usr \
>         --with-png-dir=/usr \
>         --with-gd=/usr \
>         --enable-gd-native-ttf \
>         --with-ttf \
>         --with-gdbm \
>         --with-gettext \
>         --with-ncurses \
>         --with-gmp \
>         --with-iconv \
>         --with-jpeg-dir=/usr \
>         --with-mm \
>         --with-png \
>         --with-pspell \
>         --with-regex=system \
>         --with-xml \
>         --with-expat-dir=/usr \
>         --with-imap=shared \
>         --with-imap-ssl \
>         --with-kerberos=/usr/kerberos \
>         --with-ldap=shared \
>         --with-snmp=shared \
>         --enable-ucd-snmp-hack \
>         --with-mysql=shared,/usr \
>         --with-pgsql=shared \
>         --with-unixODBC=shared \
>         --with-informix=shared,/opt/informix \
>         --with-apxs=/usr/sbin/apxs
>
> And here is my kernel and glibc info:
> Linux <machine-name> 2.4.18-4SGI_XFS_1.1 #1 Tue May 28 08:42:00 CDT 2002
> i686 unknown (stock SRPM from RH 7.3 with SGI XFS patches applied by me
> manually)
> glibc-2.2.5-40 (stock RPM RH 7.3)
>
> Can any of you have any idea of what was wrong...???
>
> Thanks for your wise support. Any additional information that you need to
> help me, just ask.
>
> Cheers,
>
> Juvenal A. Silva Jr.
> TR&D - Technology, Research & Development
>
>



--- End Message ---
--- Begin Message ---
Juvenal A. Silva Jr. <[EMAIL PROTECTED]> wrote:

> Can anyone respond about this, please...
> I already changed the glibc to the latest one (2.2.5-43) and to the latest
> apache (1.3.27-2) available at RHN (RPM packages). I keep the kernel the
> same.
> Even after these changes I still get the same error (Segmentation Fault) on
> session_start().
> Please help... I'm becoming desperate....

See <http://bugs.php.net/bug.php?id=22459> and
<http://bugs.php.net/bug.php?id=22425>.

Can you also reproduce that problem with the php executable?

If you can generate a backtrace
<http://bugs.php.net/bugs-generating-backtrace.php>, that would be
helpful.

Regards...
                Michael

--- End Message ---
--- Begin Message --- Hi all,

I'm running a redhat 8.
I want to install a php-4.3.1 as a sapi module for apache-2.0.44. I worked as 
recommended in the php -docs.

Typed Commands:

1. tar xvfz httpd-2.0.44.tar.gz
2. tar xvfz php-4.3.1.tar.gz
3. cd httpd-2.0.44
4. ./configure --enable-so
5. make
6. make install
7. cd ../php-4.3.1
8. ./configure --with-apxs2=/usr/local/apache2/bin/apxs
9. make
10. make install
11. cp php.ini-dist /usr/local/lib/php.ini
12. I added in the httpd.conf:
LoadModule php4_module /usr/local/apache2/modules/libphp4.so
AddType application/x-httpd-php .php



I get the message
httpd: module "/usr/local/src/php-4.3.1/sapi/apachefilter/sapi_apache2.c" is not
compatible with this version of Apache. <<<
as running
apachectl start <<<

According to the php-manual it should work out with apache-2.0.40 or later versions.


Are there any other changes in the httpd.conf or php.ini to do?
Why do I find two httpd.conf files at my system. One is located at /etc/httpd/conf, the other one in the /usr/local/apache2/conf.


Thanks for help,
Sebastian



--- End Message ---
--- Begin Message ---
Diana Castillo <[EMAIL PROTECTED]> wrote:

> Hi, I am running windows XP and I am looking for a way to install Curl, cant
> seem to find a version that I can easily install just by clicking on
> Setup.exe , does anyone know how to install it on XP?

I don't know anything about XP, but did you have a look at the fine
manual? <http://www.php.net/manual/en/ref.curl.php>

That page also has a link to the CURL homepage, where you can find a
couple of different Win32 packages.

Regards...
                Michael

--- End Message ---
--- Begin Message --- Hi gang.

I am running into a bizarre error when attempting to build the PHP 4.3.1 package. I run the following configuration:

./configure --with-oci8=/oracle/product/9.0.1 --with-oracle=/oracle/product/9.0.1 --with-apache=../httpd-2.0.44 --enable-track-vars

I can configure ok but when I run 'make', after a while I get the following error:
Output line too long.
Output line too long.
Output line too long.
gcc: main/fopen_w: No such file or directory
make: *** [sapi/cgi/php] Error 1


I thought that perhaps I was encountering this problem because of an old gcc or SED. So I installed the latest libtools and that latest version of gcc (3.2.2) and I STILL see this error?

Help!
- Tom


--- End Message ---
--- Begin Message ---
Tom Tsongas <[EMAIL PROTECTED]> wrote:

> I am running into a bizarre error when attempting to build the PHP 4.3.1 
> package. I run the following configuration:
> 
> ./configure --with-oci8=/oracle/product/9.0.1 
> --with-oracle=/oracle/product/9.0.1 --with-apache=../httpd-2.0.44 
> --enable-track-vars
> 
> I can configure ok but when I run 'make', after a while I get the 
> following error:
> Output line too long.
> Output line too long.
> Output line too long.
> gcc: main/fopen_w: No such file or directory
> make: *** [sapi/cgi/php] Error 1
> 
> I thought that perhaps I was encountering this problem because of an old 
> gcc or SED.

So this is Solaris, too?

> So I installed the latest libtools and that latest version of gcc
> (3.2.2) and I STILL see this error?

Did you make sure that the GNU sed (or /usr/xpg4/bin/sed) is in your
PATH _before_ your old, broken sed? Does "which sed" or "type sed" find
the right one?

Regards...
                Michael

--- End Message ---
--- Begin Message --- You were absolutely right Michael. Had another SED sitting in /usr/local that I didn't even realize was there. My UNIX skills have atrophied.

Thanks! Works now.
:-)


Michael Mauch wrote:


Tom Tsongas <[EMAIL PROTECTED]> wrote:



I am running into a bizarre error when attempting to build the PHP 4.3.1 package. I run the following configuration:

./configure --with-oci8=/oracle/product/9.0.1 --with-oracle=/oracle/product/9.0.1 --with-apache=../httpd-2.0.44 --enable-track-vars

I can configure ok but when I run 'make', after a while I get the following error:
Output line too long.
Output line too long.
Output line too long.
gcc: main/fopen_w: No such file or directory
make: *** [sapi/cgi/php] Error 1


I thought that perhaps I was encountering this problem because of an old gcc or SED.



So this is Solaris, too?




So I installed the latest libtools and that latest version of gcc
(3.2.2) and I STILL see this error?



Did you make sure that the GNU sed (or /usr/xpg4/bin/sed) is in your PATH _before_ your old, broken sed? Does "which sed" or "type sed" find the right one?

Regards...
Michael




--- End Message ---

Reply via email to