php-install Digest 25 Apr 2001 17:06:05 -0000 Issue 278

Topics (messages 2877 through 2884):

Re: --with-pdflib... stops on show_boxed
        2877 by: Taylor, Stewart

Mcrypt query & note about mnogosearch
        2878 by: Alan Lord

Re: undefined symbol
        2879 by: Yasuo Ohgaki

PHP FTP
        2880 by: ryan.barnett1

snmp func
        2881 by: Jürgen Immel

OCI support
        2882 by: Oracle Software Owner
        2884 by: Benjamin Heckmann

Distinguishing Red Hat 7.0
        2883 by: Jonathan Hilgeman

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]


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


Following is how I installed pdflib4.0
Unzip it

del php-4.0.4pl1/ext/pdf/*

cd to pdflib-4.0.0/bind/php/ext/pdf

copy * php-4.0.4pl1/ext/pdf

cd to pdflib-4.0.0
configure --enable-php
make
make install

A few errors occurred when I ran make, but it installed ok.

Link the installed libraries
ln -s /usr/local/lib/libpdf* /usr/lib

Then build php adding just --with-pdflib to your other options.

-Stewart


-----Original Message-----
From: Andrew Apold [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2001 14:56
To: [EMAIL PROTECTED]
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]




Hi all,

2 things:

First a question.
I have just installed the latest src tarball from snaps.php.net 23/4/01 and 
everything seems fine - I am installing with pretty much every option as 
this is a development server.

I am using libmcrypt-2.4.10 and when I build php it compiles fine, phpinfo() 
displays that I have mcrypt enabled _BUT_ it does not show any algorithms as 
being available and has shows two settings like "mcrypt.algorithms_dir" 
which are unset/blank. I haven't yet tried to actually use mcrypt but I 
guess that it won't work as it can't find any algorithms... Any clues please 
anyone?

Second a useful (I hope) comment about mnogosearch.
If you are going to install mnogosearch and you have the php configure 
"--with-ftp" set, there is a naming conflict with the ftp calls in mno's 
libmudsearch libraries or something. You can get around this by compiling 
mnogosearch with the "--disable-ftp" option.

Cheers

Al

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





Check your php.ini and comment out pdf module. Then it should work.
(libphp4.so cannot find the module)

Regards,
--
Yasuo Ohgaki


"Andrew Apold" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Following up on my earlier problems with show_boxed, the suggestions I got
> did indeed work and php compiled fine with pdflib support.
>
> Now, however, when I go to start apache, I get:
>
> >Syntax error on line 206 of /usr/local/apache/conf/httpd.conf:
> >Cannot load /usr/local/apache/libexec/libphp4.so into server: undefined
> symbol: pdf_module_entry
> >/usr/local/apache/bin/apachectl start: httpd could not be started
>
> line 206 is a simple
> LoadModule php4_module libexec/libphp4.so
>
>
>
> I think this is close, but can't seem to get it quite correct...
>
> any ideas?
>
>
>
> Thanks in advance,
> andrew apold
> =============================
> "To dwell within Samsara, however, is to
>  be subject to the works of those mighty
>  among dreamers."
>
>  - Mahasamatman, in Zelazny's "Lord of Light"
>
> Andrew Apold
>
>
> --
> 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]
>





Hi there,

I would like to use the PHP FTP functions.
Unfortunately, my webhost hasn't compiled PHP with the FTP extensions.

So, I thought that I might upload the extension myself into my webspace then
call it using the command dl() from within a PHP webpage. That way, I could
(hopefully) get round my webhost - but not in a nasty way ;) !

First of all - will this work?

Secondly, where can I download the PHP extension? My webhost is using Cobalt
RaQ3 (x86 architecture running Linux).
Do I need to download an entire PHP package then extract the extension, or
can I just get the extension by itself.

Thanks in advance for all your help.

Ryan
www.more4money.com






Hi,
i want to build php with snmp.
in the box

Linux Suse 6.4
php 4.03
Apache 1.3.19 + SSL
ucd-snmp-4.2.1
mysql 3.23.33

compilation of php no problem (
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.19 --e
nable-track-vars --enable-ftp --enable-trans-sid  --with-snmp=/usr/local/snm
p --enable-ucd-snmp-hack  )

The problem : If I compile the apache with php  I get following error:


modules/php4/libphp4.a(zend_extensions.o): In function
`zend_extension_startup':
/usr/src/web/php-4.0.3/Zend/zend_extensions.c:146: undefined reference to
`DL_UN
LOAD'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/src/web/apache_1.3.19/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/src/web/apache_1.3.19'
make: *** [build] Error 2


Regards

Juergen










Hi gurus.

Please help me. This is diven me mad.

My history.

I am trying to configure OCI8 support for connecting with an Oracle8/NT
server from php4/apache/linux.
I had PHP running OK with Informix connection.
I installed Oracle 8.1.7 client for linux and I am able to connect to
the server via sqlplus (select, insert, etc works great).

My configuration.

This is my configure command:

./configure --prefix=/usr/local \
--with-apache=../apache_1.3.12 \
--enable-track-vars --enable-trans-sid \
--with-informix=/opt/informix \
--with-oci8=/home/oracle/OraHome                                       

And, with other things, the command output  gives me the following:

...
checking for Oracle-OCI8 support... yes
checking Oracle Install-Dir... /home/oracle/OraHome
+--------------------------------------------------------------------+
| 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... 8.1    
.
.
.
checking for Oracle-ORACLE support...
no                                        
...



My doubts

Viewing phpinfo()'s output, i've found some extrange things.

Configure Command       './configure' '--with-apache=../apache_1.3.12'
                        '--prefix=/usr/local'
                        '--with-informix=/opt/informix'
What happenned the other "withs" and "enables"?

oracle
Oracle Support                  enabled
Oracle Version                  8.1
Compile-time ORACLE_HOME        /home/oracle/OraHome
Libraries Used

Why "Libraries Used" is empty?  It is normal?

My Headache.

I have the following ocilogon.php script (the names are changed... but
using the same that connects ok from sqlplus)

<?
$conn = OCILogon("user","password","connstr");
if ($conn)
{
        echo "connected";
}
else
{
  echo "not connected";
}
?>

it gives me the following error.

Fatal error: Call to undefined function: ocilogon() in
/home/httpd/html/ocilogon.php on line 2    

And changing for the ORA function (just guessing)
$conn = ORA_Logon("user/password@connstr",""); 

It gives me the following error.

Warning: Oracle: Connection Failed: Error while trying to retrieve text
for error ORA-12541 in /home/httpd/html/ocilogon.php on line 2
not connected.

This is a brief history of my sad life. Please help this desperate
person.

Thanx a lot in advance.

Marko.




Ok, here we go:

First of all, forget all your problems after the configure problem. PHP has
not compiled with your Oracle, so there won't be any functions.

Next forget about: "My SQLPlus is running" because this won't help PHP in no
way. It uses the OCI and this is what counts.

Be sure you have installed your Oracle client the right way:

(1) You must create the right users.
        I thing this is not so important as Oracle installed already.

(2) Set all environment variables.
        export ORACLE_BASE=/home/oracle
        export ORACLE_HOME=/home/oracle/OraHome1
        export ORACLE_SID=Name
        export ORACLE_TERM=386x
        export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
        export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
        export PATH=$PATH:$ORACLE_HOME/bin

(3) Install it with support for programmers (OCI, C, ...)

This should fix your compilation problems.

Benjamin





Is there any way for PHP to distinguish if it is being run on Red Hat 7.0 or
not? I know there's a variable called $SERVER_SOFTWARE but that only gives
me "Red Hat Linux" - Are there any other distinguishing characteristics
about the 7.0 version?

Jonathan



Reply via email to