php-install Digest 15 Nov 2001 08:31:27 -0000 Issue 555

Topics (messages 4956 through 4966):

Sybase/MSSQL
        4956 by: Richard Lynch

Re: PHP and Linux performance tweaks
        4957 by: Richard Lynch

Re: Install php4.0.6 with Oracle9i in Linux Redhat7.2(Kernel 2.4.9-13)
        4958 by: Kexiao Liao
        4966 by: Jaeck Stephan

Problem with installing GD
        4959 by: Amiroot

Re: PHP4 with GD on OpenBSD 29
        4960 by: Amiroot

Re: How Java support for php
        4961 by: Yasuo Ohgaki

TUX webserver
        4962 by: Brian

debugger?
        4963 by: sin
        4964 by: sin

Re: PHP not configured with MySQL. How to fix?
        4965 by: Johan Holst Nielsen

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 ---
Mandrake 8.0
PHP 4.0.6

I have tried both Sybase-ct and freetds.
(Current stable versions, whatever those numbers are)

With Sybase-ct, I can actually connect to my local ASE server and do "sp_help" and 
yield a reasonable response (both from isql and from PHP)

But attempting to connect to a remote MS SQLserver (in either isql or PHP) yields:

CT-LIBRARY error:
        ct_connect(): network packet layer: internal net library error: Net-Library 
operation terminated due to disconnect

(Can anybody translate that error message into layman's terms?...)

I am reasonably certain I have the correct IP and port for db1 in interfaces, since I 
can telnet to those settings and get a response.  I'm not sure about the "ether" 
versus "eth0" setting, but neither one works...

Using the domain name rather than IP yields the same results.

db1
        master tcp eth0 192.168.1.20 1433
        query tcp eth0 192.168.1.20 1433
 
lynchux
        master tcp ether windows11 4104
        query tcp ether windows11 4104

Trying FreeTDS, I get an error from make about not finding -lsybtcl.  I can "fix" that 
by editing the Makefile by hand and adding /opt/sybase to the library path, since 
that's the only place I can find any libsybtcl.so file on the entire system, but that 
just makes Apache segfault...  And isql is not at all happy about trying to use the 
FreeTDS directory for its SYBASE setting...  Some error message about a missing 
directory...  Sorry, I got so frustrated at this point with FreeTDS, since Sybase at 
least let me talk to ASE that I gave up on FreeTDS.

Is FreeTDS supposed to make its own libsybtcl or what?

I used the FreeTDS configure line from the PHPBuilder article:
/configure --with-tdsver=4.2 --enable-msdblib --enable-dbmfix --with-gnu-ld 
--enable-shared --enable-static 
http://phpbuilder.com/columns/alberto20000919.php3?page=3

I did not apply the patch because (A) I couldn't find it, and (B) it was for 4.0.2, so 
I was hoping 4.0.6 would already have had it applied...  But I followed all the other 
instructions in the article, almost for sure.  I'm not 100% certain it's SQL 7.0 
Service Pack 2 -- The MS dba just left.  They reassured me very early in this process 
that they were running the latest and greatest MS SQL Server, though.

Please help -- I'm at my wit's end to make PHP talk to SQL Server.  This should not be 
this tricky.

-- 
Like Music?  http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
Rasmus Lerdorf wrote:

>> I have read that one performance tweak for Linux is to mount the
>> filesystem with the "noatime" option (meaning the kernel does not update
>> the timestamp whenever files are accessed).
>>
>> The site relies highly on PHP sessions, and it seems to me that there
>> would be trouble with the /tmp/ session files if I configure Linux to
>> mount the filesystem with the "noatime" option. As I understand it, the
>> PHP session mechanism runs a "stat" operation every time it evaluates
>> whether to delete session files. This being the case, I guess the logical

> But yes, if you use the standard "files" save_handler on a filesystem that
> does not set the atime it will not work.  You can see that for yourself in
> the ext/session/mod_files.c file in the ps_files_cleanup_dir() function:
> 
>                 /* check whether its last access was more than maxlifet
>                 ago */ if (VCWD_STAT(buf, &sbuf) == 0 &&
>                         (now - sbuf.st_atime) > maxlifetime) {

Musings from a naive user who really doesn't know $#!^ about what he's 
saying :-)

Like, if you changed that to sbuf.st_mtime or whatever checks the 
*MODIFIED* time of the file, it would work more or less okay, no?...

I mean, assuming your application actually *CHANGES* session variables with 
some reasonable degree of frequency...

Then old files will get cleaned up when they haven't been *ALTERED* in a 
long time, rather than accessed, but that should work reasonably well for 
most cases, I should think...

Try this at your own risk...

>                     VCWD_UNLINK(buf);
>                     nrdels++;
>                 }
> 
> Of course, you could set the gc to 0 and do your own garbage collection on
> your session files by some other criteria.  Not quite sure how you would
> determine old and non-active sessions without an atime though.

-- 
Like music?  http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
Dear Stephan,
    I downloaded php-4.0.6-oci8-oracle9i.patch from below web site as you told
me.
Fire the command "patch -p0 < php-4.0.6-oci8-oracle9i.patch" from the php
directory,
and got following message:

patching file ./php-4.0.6/configre
patching file ./php-4.0.6/ext/oci8/config.m4

It seems everything is OK. Then I changed  to php-4.0.6 directory, and fired
following php install commands:
./configure --with-oci8=/opt/app/oracle/product/9.0.1
--with-apxs=/opt/apache/bin/apxs
make
make install

During the installation process, there wer still some error messages. I
attached the  whole script file during the process of
installation. Please see them.

After I installed php, I copy /opt/oracle/php/php4.0.6/php.ini-dist to
/usr/local/lib/php.ini
Then I modified /opt/apache/conf/httpd.conf(AddType application/x-httpd-php
.php).
Restart my apache server (apachectl restart), the server cann't serve PHP
files. Please give
me some suggestions! Thank you!

Kexiao



Jaeck Stephan wrote:

> Hi,
>
> I just installed PHP 4.0.6 on Apache 1.3.19 with Ora 9i (9.0.1.0.0.) on SuSE
> 7.2
>
> The thing that you should use is a patch for the configuire-script of PHP.
> Because the pathnames to Oracle-libs are changed from 8i to 9i.
>
> You can find this patch at:
>
>  http://www.cba.ua.edu/~spaff/
>
> This sent me Brian Mauter [[EMAIL PROTECTED]]
>
> And (of course) use option --with-oci8=/your/oracle/home/lib
>
> HTH
>
> Stephan
>
> -----Original Message-----
> From: Kexiao Liao [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 14, 2001 2:46 AM
> To: Austin Gonyou
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] Install php4.0.6 with Oracle9i in Linux
> Redhat7.2(Ker nel 2.4.9-13)
>
> One thing I would like to mention about:
> If use:
> ./configure --with-oci9=/opt/app/oracle/product/9.0.1
> instead of
> ./configure --with-oci8=/opt/app/oracle/product/9.0.1
> It still can not install php. I just check ./configure --help
> . The message shows it only support --with-oci8!!!
>
> Kexiao
Script started on Wed Nov 14 17:07:49 2001
[oracle@hermes php]$ ll
total 16276
-rwxrwxr-x    1 oracle   oracle         92 Nov 14 15:50 liao
-rw-rw-r--    1 oracle   oracle         20 Nov 14 16:42 liao.php
drwxr-xr-x   15 oracle   oracle       4096 Nov 14 17:11 php-4.0.6
-rw-rw-r--    1 oracle   oracle       1917 Nov 14 14:56 php-4.0.6-oci8-oracle9i.patch
-rw-rw-r--    1 oracle   oracle       1917 Nov 14 15:12 
php-4.0.6-oci8-oracle9i.patch.bak
-rw-rw-r--    1 oracle   oracle   16568320 Nov 13 11:17 php-4.0.6.tar
-rw-rw-r--    1 oracle   oracle      27778 Nov 14 17:12 typescript
[oracle@hermes php]$ 


[oracle@hermes php]$ patch p0<php-4.0.6-oci8-oracle9i.patch
patching file ./php-4.0.6/configure
patching file ./php-4.0.6/ext/oci8/config.m4
[oracle@hermes php]$ cd php-4.0.6
[oracle@hermes php-4.0.6]$ pwd
/opt/oracle/php/php-4.0.6
[oracle@hermes php-4.0.6]$ ./configure --with-oci8=/opt/app/oracle/product/9.0.1 
--with-apxs=/opt/apache/bin/apxs
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
Updated php_version.h
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.28 (ok)
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for working const... no
checking for pthreads_cflags... -pthread
checking for pthreads_lib... 

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... 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

Running system checks
checking for missing declarations of reentrant functions... done
checking whether compiler supports -R... no
checking whether compiler supports -Wl,-rpath,... yes
checking for sendmail... /usr/sbin/sendmail
checking whether system uses EBCDIC... no
checking for socket in -lsocket... no
checking for htonl in -lsocket... no
checking for yp_get_default_domain... no
checking for gethostname in -lnsl... yes
checking for dlopen in -ldl... yes
checking for sin in -lm... yes
checking for inet_aton in -lresolv... yes
checking for res_search in -lsocket... no
checking for res_search in -lresolv... yes
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for fclose declaration... ok
checking for alloca.h... yes
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for crypt.h... yes
checking for fcntl.h... yes
checking for grp.h... yes
checking for ieeefp.h... no
checking for limits.h... yes
checking for locale.h... yes
checking for netinet/in.h... yes
checking for pwd.h... yes
checking for resolv.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for syslog.h... yes
checking for sysexits.h... yes
checking for sys/file.h... yes
checking for sys/mman.h... yes
checking for sys/mount.h... yes
checking for sys/resource.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/statfs.h... yes
checking for sys/statvfs.h... yes
checking for sys/sysexits.h... no
checking for sys/time.h... yes
checking for sys/types.h... yes
checking for sys/varargs.h... no
checking for sys/wait.h... yes
checking for unistd.h... yes
checking for unix.h... no
checking for utime.h... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... yes
checking for tm_gmtoff in struct tm... yes
checking for struct flock... yes
checking for socklen_t... yes
checking size of long... 0
checking size of int... 0
checking for st_blksize in struct stat... yes
checking for st_blocks in struct stat... yes
checking for st_rdev in struct stat... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for IPv6 support... yes
checking for vprintf... yes
checking for asctime_r... yes
checking for chroot... yes
checking for ctime_r... yes
checking for cuserid... yes
checking for flock... yes
checking for gai_strerror... yes
checking for gcvt... yes
checking for getlogin... yes
checking for gethostbyaddr... yes
checking for getprotobyname... yes
checking for getprotobynumber... yes
checking for getservbyname... yes
checking for getservbyport... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for inet_aton... yes
checking for isascii... yes
checking for link... yes
checking for localtime_r... yes
checking for lockf... yes
checking for lrand48... yes
checking for memcpy... yes
checking for memmove... yes
checking for mkstemp... yes
checking for mmap... yes
checking for putenv... yes
checking for random... yes
checking for rand_r... yes
checking for regcomp... yes
checking for res_search... yes
checking for setitimer... yes
checking for setlocale... yes
checking for localeconv... yes
checking for setsockopt... yes
checking for setvbuf... yes
checking for shutdown... yes
checking for sin... yes
checking for snprintf... yes
checking for srand48... yes
checking for srandom... yes
checking for statfs... yes
checking for statvfs... yes
checking for std_syslog... no
checking for strcasecmp... yes
checking for strcoll... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strstr... yes
checking for strtok_r... yes
checking for symlink... yes
checking for tempnam... yes
checking for tzset... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utime... yes
checking for vsnprintf... yes
checking for getaddrinfo... no
checking for strlcat... no
checking for strlcpy... no
checking for getopt... yes
checking whether utime accepts a null argument... no
checking for working alloca.h... (cached) yes
checking for alloca... yes
checking whether sprintf is broken... yes
checking for declared timezone... yes
checking for type of reentrant time-related functions... POSIX
checking for readdir_r... yes
checking for type of readdir_r... old-style
checking whether to include debugging symbols... no
checking layout of installed files... yes
checking path to configuration file... yes
checking whether to install PEAR... yes
checking whether to enable safe mode by default... no
checking for safe mode exec dir... /usr/local/php/bin
checking for OpenSSL support... no
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to enable magic quotes by default... no
checking whether to enable runpaths... yes
checking whether to explicitly link against libgcc... no
checking whether to enable short tags by default... yes
checking whether to enable PIC for shared objects... yes
checking whether to enable dmalloc... no
checking whether to enable php streams... no
checking for crypt in -lcrypt... yes

Configuring extensions
checking if the location of ZLIB install directory is defined... no
checking whether to include ZLIB support... no
checking for ASPELL support... no
checking for bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking CCVS Support... no
checking whether to include cpdflib support... no
checking whether to include crack support... no
checking whether to enable ctype support... no
checking for CURL support... no
checking for CyberCash support... no
checking for cybermut support... no
checking whether to include old xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB2 support... no
checking for Berkeley DB3 support... no
checking for DBM support... no
checking for CDB support... no
checking whether to enable DBA interface... no
checking whether to enable the bundled dbase library... no
checking whether to enable dbx support... no
checking for DOM support... no
checking whether to enable exif support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for fdftk support... no
checking whether to enable the bundled filePro support... no
checking whether to add fribidi support... no
checking whether to enable FTP support... no
checking whether to include GD support... no
checking whether to include GNU gettext support... no
checking for gmp support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for iconv support... no
checking for IMAP support... no
checking for Informix support... no
checking for Ingres II support... no
checking for InterBase support... no
checking for ircg support... no
checking for Java support... no
checking whether to include LDAP support... no
checking whether to enable multibyte string support... no
checking whether to enable japanese encoding translation... no
checking for MCAL support... no
checking for mcrypt support... no
checking for mhash support... no
checking whether to include ming support... no
checking for mnoGoSearch support... no
checking for mSQL support... no
checking for Muscat support... no
checking for MySQL support... yes
checking for MySQL UNIX socket... /tmp/mysql.sock
checking for inline... inline
checking return type of signal handlers... void
checking for ANSI C header files... (cached) yes
checking for sgtty.h... yes
checking for sys/ioctl.h... yes
checking for fcntl.h... (cached) yes
checking for float.h... yes
checking for floatingpoint.h... no
checking for ieeefp.h... (cached) no
checking for limits.h... (cached) yes
checking for memory.h... yes
checking for pwd.h... (cached) yes
checking for select.h... no
checking for stdlib.h... (cached) yes
checking for stddef.h... yes
checking for strings.h... yes
checking for string.h... (cached) yes
checking for synch.h... no
checking for sys/mman.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking for sys/un.h... yes
checking for sys/vadvise.h... no
checking for sys/wait.h... (cached) yes
checking for term.h... yes
checking for unistd.h... (cached) yes
checking for utime.h... (cached) yes
checking for sys/utime.h... no
checking for termio.h... yes
checking for termios.h... yes
checking for sched.h... yes
checking for crypt.h... (cached) yes
checking for alloca.h... (cached) yes
checking size of char... 0
checking size of int... (cached) 0
checking size of long... (cached) 0
checking size of long long... 0
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for uid_t in sys/types.h... (cached) yes
checking for type ulong... yes
checking for type uchar... no
checking for type uint... yes
checking for int8... no
checking base type of last arg to accept... socklen_t
checking return type of qsort... int
checking for alarm... yes
checking for bmove... no
checking for chsize... no
checking for ftruncate... yes
checking for rint... yes
checking for finite... yes
checking for fpsetmask... no
checking for fpresetsticky... no
checking for cuserid... (cached) yes
checking for fcntl... yes
checking for fconvert... no
checking for getrusage... (cached) yes
checking for getpwuid... yes
checking for getcwd... yes
checking for getrlimit... yes
checking for getwd... yes
checking for index... yes
checking for locking... no
checking for longjmp... yes
checking for perror... yes
checking for pread... yes
checking for realpath... yes
checking for rename... yes
checking for socket... yes
checking for strnlen... yes
checking for madvise... yes
checking for strtoul... yes
checking for strtoull... yes
checking for snprintf... (cached) yes
checking for tempnam... (cached) yes
checking for thr_setconcurrency... no
checking for gethostbyaddr_r... yes
checking for gethostbyname_r... yes
checking for getpwnam... yes
checking for bfill... no
checking for bzero... yes
checking for bcmp... yes
checking for strstr... (cached) yes
checking for strpbrk... yes
checking for strerror... (cached) yes
checking for tell... no
checking for atod... no
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for setupterm... no
checking for strcasecmp... (cached) yes
checking for sighold... yes
checking for vidattr... no
checking for setupterm... (cached) no
checking for lrand48... (cached) yes
checking for localtime_r... (cached) yes
checking for sigset... yes
checking for sigthreadmask... no
checking for pthread_sigmask... no
checking for pthread_setprio... no
checking for pthread_setprio_np... no
checking for pthread_setschedparam... yes
checking for pthread_attr_setprio... no
checking for pthread_attr_setschedparam... yes
checking for pthread_attr_create... no
checking for pthread_getsequence_np... no
checking for pthread_attr_setstacksize... no
checking for pthread_condattr_create... no
checking for rwlock_init... no
checking for crypt... yes
checking for dlopen... yes
checking for dlerror... yes
checking for fchmod... yes
checking for getpass... yes
checking for getpassphrase... no
checking for strtok_r... (cached) yes
checking style of gethostname_r routines... glibc2
checking 3 argument to gethostname_r routines... char
checking args to pthread_getspecific... POSIX
checking args to pthread_mutex_init... POSIX
checking args to readdir_r... POSIX
checking style of sigwait... POSIX
checking for Oracle-OCI8 support... yes
checking Oracle Install-Dir... /opt/app/oracle/product/9.0.1
+--------------------------------------------------------------------+
| Notice:                                                            |
| If you encounter <defunc> processes when using a local Oracle-DB   |
| please recompile PHP and specify --enable-sigchild when configuring|
| (This problem has been reported un Linux using Oracle >= 8.1.5)    |
+--------------------------------------------------------------------+
checking Oracle version... 9.0
checking for Adabas support... no
checking for SAP DB support... no
checking for Solid support... no
checking for IBM DB2 support... no
checking for Empress support... no
checking for Empress local access support... no
checking for Velocis support... no
checking for a custom ODBC support... no
checking for iODBC support... no
checking for Easysoft ODBC-ODBC Bridge support... no
checking for unixODBC support... no
checking for OpenLink ODBC support... no
checking for DBMaker support... no
checking for Oracle-ORACLE support... no
checking for Ovrimos SQL Server support... no
checking whether to include PCRE support... yes
checking for memmove... (cached) yes
checking whether to include PDFlib support... no
checking whether to include Verisign Payflow Pro support... no
checking for PostgreSQL support... no
checking whether to include POSIX-like functions... yes
checking for seteuid... yes
checking for setegid... yes
checking for setsid... yes
checking for getsid... yes
checking for setpgid... yes
checking for ctermid... yes
checking for mkfifo... yes
checking for getrlimit... (cached) yes
checking whether to include pspell support... no
checking whether to include QDOM support... no
checking for libedit readline replacement... no
checking for readline support... no
checking for recode support... no
checking for Sablotron XSL support... no
checking libexpat dir for Sablotron 0.50... no
checking whether to enable CORBA support via Satellite... no
checking for mm support... no
checking whether to enable transparent session id propagation... no
checking whether to enable session support... yes
checking whether to enable shmop support... no
checking for SNMP support... no
checking whether to enable UCD SNMP hack... no
checking whether to enable sockets support... no
checking for dlopen... (cached) yes
checking for pam_start in -lpam... yes
checking for getcwd... (cached) yes
checking for getwd... (cached) yes
checking for standard DES crypt... no
checking for extended DES crypt... no
checking for MD5 crypt... no
checking for Blowfish crypt... no
checking whether flush should be called explicitly after a bufferered io... yes
checking for libswf support... no
checking for Sybase support... no
checking for Sybase-CT support... no
checking whether to enable System V semaphore support... no
checking whether to enable System V shared memory support... no
checking for vpopmail support... no
checking for WDDX support... no
checking whether byte ordering is bigendian... no
checking for XML support... yes
checking external libexpat install dir... no
checking whether to enable xslt support... no
checking whether to enable the XSLT Sablotron backend... no
checking libexpat dir for Sablotron XSL support... no
checking for YAZ support... no
checking whether to include YP support... no
checking whether to include zziplib support... no
checking whether to enable versioning... no
checking which regex library to use... php

Configuring Zend
checking bison version... 1.28 (ok)
checking for limits.h... (cached) yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for signal.h... (cached) yes
checking for unix.h... (cached) no
checking for dlfcn.h... yes
checking for size_t... (cached) yes
checking return type of signal handlers... (cached) void
checking for dlopen in -ldl... (cached) yes
checking for dlopen... (cached) yes
checking for uint... yes
checking for ulong... yes
checking for vprintf... (cached) yes
checking for 8-bit clean memcmp... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for memcpy... (cached) yes
checking for strdup... (cached) yes
checking for getpid... yes
checking for kill... yes
checking for strtod... yes
checking for strtol... yes
checking for finite... (cached) yes
checking for fpclass... no
checking whether sprintf is broken... (cached) yes
checking for finite... (cached) yes
checking for isfinite... no
checking for isinf... yes
checking for isnan... yes
checking whether fp_except is defined... no
checking whether to enable experimental ZTS... no
checking whether to enable inline optimization for GCC... no
checking whether to enable a memory limit... no
checking whether to enable Zend debugging... no
checking for inline... (cached) inline

Configuring TSRM
checking for stdarg.h... (cached) yes

Configuring libtool
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... failed
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache

Generating files
checking for working mkdir -p... yes
creating config_vars.mk
updating cache ./config.cache
creating ./config.status
creating php4.spec
creating Zend/Makefile
creating main/build-defs.h
creating pear/scripts/pear
creating pear/scripts/phpize
creating pear/scripts/php-config
creating TSRM/Makefile
creating main/php_config.h
creating sapi/Makefile
creating ext/Makefile
creating Makefile
creating pear/Makefile
creating main/Makefile
creating ext/mysql/Makefile
creating ext/mysql/libmysql/Makefile
creating ext/oci8/Makefile
creating ext/pcre/Makefile
creating ext/pcre/pcrelib/Makefile
creating ext/posix/Makefile
creating ext/session/Makefile
creating ext/standard/Makefile
creating ext/xml/Makefile
creating ext/xml/expat/Makefile
creating ext/xml/expat/xmlparse/Makefile
creating ext/xml/expat/xmltok/Makefile
creating sapi/apache/Makefile
creating regex/Makefile
creating number.c
creating number.h
creating main/internal_functions.c
+--------------------------------------------------------------------+
|                       *** 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.                                      |
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
|                                                                    |
| You chose to compile PHP with the built-in MySQL support.  If you  |
| are compiling a server module, and intend to use other server      |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0,         |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and   |
| instead build it with your local MySQL support files, by adding    |
| --with-mysql=/path/to/mysql to your configure line.                |
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

[oracle@hermes php-4.0.6]$ make
Making all in Zend
make[1]: Entering directory `/opt/oracle/php/php-4.0.6/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12  -g -O2 -c 
zend_language_scanner.c
zend_language_scanner.c:5441: conflicting types for `zend_scan_string'
zend_language_scanner.c:256: previous declaration of `zend_scan_string'
zend_language_scanner.c:5459: conflicting types for `zend_scan_bytes'
zend_language_scanner.c:257: previous declaration of `zend_scan_bytes'
zend_language_scanner.c:5552: conflicting types for `yy_fatal_error'
zend_language_scanner.c:293: previous declaration of `yy_fatal_error'
make[1]: *** [zend_language_scanner.lo] Error 1
make[1]: Leaving directory `/opt/oracle/php/php-4.0.6/Zend'
make: *** [all-recursive] Error 1
]0;oracle@hermes:~/php/php-4.0.6[oracle@hermes php-4.0.6]$ make install
Making install in Zend
make[1]: Entering directory `/opt/oracle/php/php-4.0.6/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12  -g -O2 -c 
zend_language_scanner.c
zend_language_scanner.c:5441: conflicting types for `zend_scan_string'
zend_language_scanner.c:256: previous declaration of `zend_scan_string'
zend_language_scanner.c:5459: conflicting types for `zend_scan_bytes'
zend_language_scanner.c:257: previous declaration of `zend_scan_bytes'
zend_language_scanner.c:5552: conflicting types for `yy_fatal_error'
zend_language_scanner.c:293: previous declaration of `yy_fatal_error'
make[1]: *** [zend_language_scanner.lo] Error 1
make[1]: Leaving directory `/opt/oracle/php/php-4.0.6/Zend'
make: *** [install-recursive] Error 1
[oracle@hermes php-4.0.6]$ /opt/apache/bin/httpd -l
Compiled-in modules:
  http_core.c
  mod_so.c
suexec: disabled; invalid wrapper /opt/apache/bin/suexec
[oracle@hermes php-4.0.6]$ ps -ef|grep httpd
root      1136     1  0 17:05 ?        00:00:00 /opt/apache/bin/httpd
nobody    1160  1136  0 17:05 ?        00:00:00 /opt/apache/bin/httpd
nobody    1161  1136  0 17:05 ?        00:00:00 /opt/apache/bin/httpd
nobody    1162  1136  0 17:05 ?        00:00:00 /opt/apache/bin/httpd
nobody    1163  1136  0 17:05 ?        00:00:00 /opt/apache/bin/httpd
nobody    1164  1136  0 17:05 ?        00:00:00 /opt/apache/bin/httpd
nobody    1494  1136  0 17:06 ?        00:00:00 /opt/apache/bin/httpd
oracle    8352  1533  0 17:12 pts/1    00:00:00 grep httpd
]0;oracle@hermes:~/php/php-4.0.6[oracle@hermes php-4.0.6]$ exit
Script done on Wed Nov 14 17:12:17 2001


----------------------------------------
Install php in oracle account
--- End Message ---
--- Begin Message ---
Hmmmm, did you install/compile with Oracle account?
You must be root!

Stephan

-----Original Message-----
From: Kexiao Liao [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 2:58 AM
To: Jaeck Stephan
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] Install php4.0.6 with Oracle9i in Linux
Redhat7.2(Kernel 2.4.9-13)


Dear Stephan,
    I downloaded php-4.0.6-oci8-oracle9i.patch from below web site as you
told
me.
...
--- End Message ---
--- Begin Message ---
hihi all~

I've got a problem about compile the php module. I'd installed the apache
and php module with the packages. However, the default module does not
include the gd library. Then, I d/l the php source and recompile it with the
following options:

./configure --with-apxs=/usr/local/sbin/apxs --with-config-file-path=/usr/lo
cal/etc --enable-versioning --enable-ftp --enable-sockets --with-system-rege
x --disable-debug --enable-track-vars --with-cpdflib=/usr/local --with-jpeg-
dir=/usr/local --with-tiff-dir=/usr/local --with-gd=/usr/local --with-zlib -
-with-gdbm --with-mysql=/usr/local --prefix=/usr/local i386--freebsd4.4

It config properly. However, I can't compile and prompt that some varible in
"gd.c" is undefined. I'd installed the gd, libpng, zlib, freetype by
packages. I don't know what's wrong!!! However, if I get rid of
the --with-gd, it works fine.

Anyone can give me some idea????????????????? Thx a lot!!!!!!!!!!!!!!!


Rgds,
AMI



--- End Message ---
--- Begin Message ---
did you use --with-jpeg-dir=<jpgdir> ???

"Lance Spitzner" <[EMAIL PROTECTED]>
???????:[EMAIL PROTECTED]
> Attempting to install PHP4 with GD support on
> OpenBSD 2.9.  I installed gd_1.8.3 using OpenBSD
> ports.
>
> During the make an error is logged to debug.log,
> included below.  PHP4 compiles as DSO, but apache
> will not start, it bombs with the same error listed
> below.
>
> Words of wisdom on how to get PHP/Apache to work?
>
> Thanks!
>
>              --- snip snip ---
>
> CONFIGURE:   './configure' '--with-mysql' '--with-apxs' '--with-gd'
'--enable-sockets' '--with-config-file-path=/var/www/conf'
'--enable-track-vars'
> CC:         gcc
> CFLAGS:     -g -O2
>
CPPFLAGS:    -DDEV_RANDOM=/dev/arandom -DMOD_SSL=208102 -DEAPI -DUSE_EXPAT -
DSUPPORT_UTF8
> CXX:
> CXXFLAGS:
>
INCLUDES:    -I/usr/lib/apache/include  -I$(top_builddir)/Zend -I/home/lance
/php-4.0.6/ext/mysql/libmysql
> LDFLAGS:
> LIBS:       -lgd -lresolv -lm  -lresolv
> DLIBS:
> SAPI:       apache
> PHP_RPATHS:
> uname -a:   OpenBSD mozart 2.9 GENERIC#653 i386
>
> gcc -o
conftest -g -O2  -DDEV_RANDOM=/dev/arandom -DMOD_SSL=208102 -DEAPI -DUSE_EXP
AT -DSUPPORT_UTF8  conftest.c -lgd -lresolv -lm  -lresolv 1>&5
> /usr/libexec/ld.so: Undefined symbol "_jpeg_resync_to_restart" in
conftest:/usr/local/lib/libgd.so.18.3
>
>             --- snip snip ---
>
> --
> Lance Spitzner
> http://project.honeynet.org
>


--- End Message ---
--- Begin Message ---
Gianni wrote:

> How can I install java support for php?
> 
> Gianni from Italy
> 


Read README file in Java extension directory in source.
or/and
Try servlet SAPI.

--
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
any clue as to installing php with tux -- it does have cgi support -- Didn't
see to much for instructions on either site ~

Brian


--- End Message ---
--- Begin Message ---
Is there a debugger i can download someplace? i think i may have a script
error because it does simple php commands but if it tries to go through more
complex ones it shows the html up to the <?php and then the file stops being
sent. so even </html> doesn't show up.


--- End Message ---
--- Begin Message ---
oh, If i failed to install with --with-mySQl and am trying to use the built
in mySQL commands to connect to another server with mySQL installed would
this cause the script to stop output?

> Is there a debugger i can download someplace? i think i may have a script
> error because it does simple php commands but if it tries to go through
more
> complex ones it shows the html up to the <?php and then the file stops
being
> sent. so even </html> doesn't show up.
>
>


--- End Message ---
--- Begin Message ---
> which has "--without-mysql" in there towards the end.
> 
> I assume this is why I can't use php to connect to mysql databases. I got
> the following error with my first connect function:
> Fatal error: Call to undefined function: mysql_pconnect() in
> /var/www/html/ushl/index.php on line 8
> 
> Do I have to reconfigure PHP with mysql? Since I installed everything
> using RPM, I'm not sure what directory I have to be in to restate the
> ./configure command.
> 

Try the function dl()
http://www.php.net/dl

Regards,
Johan
--- End Message ---

Reply via email to