I would like to upgrade the php software to the latest version and have taken the information from the output of a phpinfo() page. The configure line goes:
./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-gd --with-gettext=/usr --enable-safe-mode --with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin --with-zlib --enable-magic-quotes --with-regex=system --with-ttf=/usr/lib/libttf.so --enable-track-vars --enable-xml --disable-debug --with-interbase=shared --with-pgsql=shared --with-ldap --with-imap --with-db3
I get an error message:
checking for Berkeley DB2 support... no
checking for db_create in -ldb... no
checking for db_create in -ldb-3... no
configure: error: cannot find necessary library
Why doesn't seem to find the neccessay library file (whereas it has in the php version 4.03) :eek: - where would this lib file be - include it in /etc/ld.so.conf.
Befroe I start do you know of any problems with either the gui if php is upgraded and/or also intend to use other server modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, mod_perl)?
Thanks
ja
technoart
08-09-2001, 02:04 PM
I had similar problems when trying to install the latest ver. of PHP. It seems that there are some lines of code that are incorrect in the apxs Perl script, for *one* thing...
See: http://www.php.net/manual/ja/faq.build.php#AEN58713
Did you have any problems with the cobalt gui after the upgrade?
eva2000
08-11-2001, 12:55 PM
Installing MySQL and upgrading PHP 4.03 to 4.06 on a RaQ4i guide
- http://i4net.tv/marticle/get.php?action=getarticle&articleid=20
It works because i tried it on my own RaQ4i :D
enjoy :)
microsol
08-12-2001, 02:23 PM
Originally posted by eva2000
Installing MySQL and upgrading PHP 4.03 to 4.06 on a RaQ4i guide
- http://i4net.tv/marticle/get.php?action=getarticle&articleid=20
It works because i tried it on my own RaQ4i :D
enjoy :)
./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-gd --with-gettext --enable-safe-mode --with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin --with-zlib --enable-magic-quotes --with-regex=system --with-ttf=/usr/lib/libttf.so --enable-track-vars --enable-xml --disable-debug --with-db --with-interbase=shared --with-pgsql=shared --with-mysql --with-ldap --with-imap=/usr/include/imap
configure: error: Cannot find imap library. Please check your IMAP installation.
it doesn't work neighter way, defining where imap is and without
:angry: :angry:
Imap was a pain for me to..... but I think I worked on a solution to this:;)
All information was weened from the official php site at this url:
http://www.php.net/manual/en/ref.imap.php
Half way down is a install guide for Imap, pop3, NNTP .
1) Install both the imap and imap-devel rpm's
- Didn't bother installing devel..
2) As mentioned above, copy /usr/lib/c-client.a to /usr/lib/libc-client.a and the three headers (mail.h, linkage.h, and rfc822.h from /usr/include/imap to /usr/include
- I Copied the three files back one directory.
3) export LDFLAGS="-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam"
- okay
4) Run /sbin/ldconfig (important for raq)
okay
5) Run ./configure .......... --with-imap
- Result: - checking for IMAP support... yes
On a last note. The last cmment on upgrading from php4.03 - 0.6 mentioned having to upgrade the imap vlient to imap-2000c . I've note tried my install yet so be warned....
Hope that helps.
Ja
microsol
08-13-2001, 07:04 AM
Originally posted by jjma
I've note tried my install yet so be warned....
Haha, i'll wait until you do it or anybody else and confirm that it works :D
After the ./configure ----- ---- - -- I would type:
$ make
Then backup all the modules
$ mkdir backup_so
$ mkdir backup_so/php
$ cp /etc/httpd/modules/libphp4.so ./backup_so/
$ cp /etc/httpd/modules/php/* ./backup_so/php/
Your ready to install:
$ make install (as root)
$ Restart Httpd
Seems to have worked ;) php.info shows 4.06 and no errors in the apache logs.
Gui seems to be okay to.
microsol
08-20-2001, 02:04 PM
Originally posted by jjma
Imap was a pain for me to..... but I think I worked on a solution to this:;)
1) Install both the imap and imap-devel rpm's
Hmm, finally i got onto this task :rolleyes:
(I could imagine doing better things right now :D )
Just came across the redhat site and my question is now: Which version of the imap rpm package do i have to download for a Raq4R?
Does this command rpm -Fvh [filename] install imap without any probs? :confused:
PS: What's the command to extract the rpm file into a directory where i can make a configure myself? Is there any other file type around (no *.rpm) which contains the newest imap sources?
microsol
08-20-2001, 02:53 PM
Another question:
I have Cobalt OS Release 6.0 installed. Should i go for the imap for the Red Hat Linux 6.0 rmp's ?
Originally posted by microsol
Another question:
I have Cobalt OS Release 6.0 installed. Should i go for the imap for the Red Hat Linux 6.0 rmp's ?
Use RPMs for RedHat 6.2 - that works!