Operating System - HP-UX
1834052 Members
2241 Online
110063 Solutions
New Discussion

Re: how to turn on GD Support in php ?

 
Kenneth_61
Frequent Advisor

how to turn on GD Support in php ?

I want to enable the gd extension. I had changed php.ini as below. However, when I run http://www.mydomain.com/phpinfo.php, gd session cannot be seen. I know that gd support is disable. Do my PHP Version 4.3.8 cannot support GD ?

# pwd
/opt/hpws/apache/conf
# cat php.ini | grep gd
extension=gd.sl

==============================================
# swlist
# Initializing...
# Contacting target "server.mydomain.com"...
#
# Target: server.mydomain.com:/
#

#
# Bundle(s):
#

BIND-920 B.11.00.01.003 BIND 9.2.0
BUNDLE B.11.00 Patch Bundle
HPUXEng32RT B.11.00.01 English HP-UX 32-bit Runtime Environment
Sendmail-811 B.11.00.01.005 Sendmail-8.11.1 special release upgrade
UXCoreMedia B.11.00.01 HP-UX Media Kit (Reference Only. See Description)
XSWGR1100 B.11.00.47.08 General Release Patches, November 1999 (ACE)
hpuxwsApache A.2.0.52.00 HP-UX Apache-based Web Server
hpuxwsTomcat A.4.1.29.04 HP-UX Tomcat-based Servlet Engine
hpuxwsWebmin A.1.070.02 HP-UX Webmin-based Admin
#
# Product(s) not contained in a Bundle:
#

PHCO_26111 1.0 libc cumulative header file patch
PHCO_27847 1.0 cumulative patch for syslogd(1M)
PHCO_29286 1.0 libc cumulative man page patch
PHCO_29330 1.0 libc configuration file patch.
PHCO_29956 1.0 libc cumulative patch
PHSS_30967 1.0 ld(1) and linker tools cumulative patch
gcc 3.3.2 gcc
make 3.80 make
mysql-standard 5.0.4-beta MySQL Community Edition - Standard (GPL)
qpopper 4.0.5 qpopper
unzip 5.51 unzip
#

9 REPLIES 9
Alex Lavrov.
Honored Contributor

Re: how to turn on GD Support in php ?

This question was asked many many times:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=872350

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Kenneth_61
Frequent Advisor

Re: how to turn on GD Support in php ?

Hi All,

I am using HP-UX v11.0. I cannot find the following depot files of :

tcltk bison fontconfig libpng zlib

Can you tell me where can I find these depot files ? I had installed many small depots which GD support needs.

ref==============my hp-ux v11.0 =========

# Bundle(s):
#

BIND-920 B.11.00.01.003 BIND 9.2.0
BUNDLE B.11.00 Patch Bundle
HPUXEng32RT B.11.00.01 English HP-UX 32-bit Runtime Environment
Sendmail-811 B.11.00.01.005 Sendmail-8.11.1 special release upgrade
UXCoreMedia B.11.00.01 HP-UX Media Kit (Reference Only. See Description)
XSWGR1100 B.11.00.47.08 General Release Patches, November 1999 (ACE)
hpuxwsApache A.2.0.52.00 HP-UX Apache-based Web Server
hpuxwsTomcat A.4.1.29.04 HP-UX Tomcat-based Servlet Engine
hpuxwsWebmin A.1.070.02 HP-UX Webmin-based Admin
#
# Product(s) not contained in a Bundle:
#

JPEG 1.2.1 JPEG
PHCO_26111 1.0 libc cumulative header file patch
PHCO_27847 1.0 cumulative patch for syslogd(1M)
PHCO_29286 1.0 libc cumulative man page patch
PHCO_29330 1.0 libc configuration file patch.
PHCO_29956 1.0 libc cumulative patch
PHSS_30967 1.0 ld(1) and linker tools cumulative patch
expat 1.95.8 expat
flex 2.5.4a flex
freetype 2.1.9 freetype
gcc 3.3.2 gcc
gettext 0.14.1 gettext
libiconv 1.9.2 libiconv
m4 1.4.2 m4
make 3.80 make
mysql 4.0.15a mysql
mysql-standard 5.0.4-beta MySQL Community Edition - Standard (GPL)
qpopper 4.0.5 qpopper
unzip 5.51 unzip
xpm 3.4k xpm
#
Kenneth_61
Frequent Advisor

Re: how to turn on GD Support in php ?

any help ?
Alex Lavrov.
Honored Contributor

Re: how to turn on GD Support in php ?

Tried to answer, but there was again a posting problem.

Here you can find most of the GNU projects, ported to HPUX:

http://hpux.cs.utah.edu/


Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Kenneth_61
Frequent Advisor

Re: how to turn on GD Support in php ?

Hi All, I had been this web before, and I had download a lot tools in there. It is a very good web site. However, there is no depot file for HP-UX 11.00 for some tools. Anyone tell me how to compile this ? It is because I only know how to do by ./configure. But, there is no configure file.

e.g zlib-1.1.3-sd-11.00.tar

L:\>dir /s

28/05/2005 14:12 catalog
28/05/2005 14:12 zlib

L:\catalog

28/05/2005 14:12 dfiles
01/12/1999 18:30 1,070 INDEX
28/05/2005 14:12 zlib

L:\catalog\dfiles

01/12/1999 18:30 191 INDEX
01/12/1999 18:30 136 INFO

L:\catalog\zlib

28/05/2005 14:12 pfiles
28/05/2005 14:12 zlib-RUN

L:\catalog\zlib\pfiles

01/12/1999 18:30 723 INDEX
01/12/1999 18:30 136 INFO

L:\catalog\zlib\zlib-RUN

01/12/1999 18:30 156 INDEX
01/12/1999 18:30 992 INFO

L:\zlib

28/05/2005 14:12 zlib-RUN

L:\zlib\zlib-RUN

28/05/2005 14:12 opt

L:\zlib\zlib-RUN\opt

28/05/2005 14:12 zlib

L:\zlib\zlib-RUN\opt\zlib

28/05/2005 14:12 doc
28/05/2005 14:12 include
28/05/2005 14:12 lib

L:\zlib\zlib-RUN\opt\zlib\doc

01/12/1999 18:30 1,811 HPUX.Install
01/12/1999 18:30 7,106 README
01/12/1999 18:30 885 README.HPPD

L:\zlib\zlib-RUN\opt\zlib\include

01/12/1999 18:30 7,810 zconf.h
01/12/1999 18:30 40,898 zlib.h

L:\zlib\zlib-RUN\opt\zlib\lib

01/12/1999 18:30 86,852 libz.a
01/12/1999 18:30 73,728 libz.sl





Kenneth_61
Frequent Advisor

Re: how to turn on GD Support in php ?

Sorry, the file zlib should a depot file. I had installed zlib now.

Anyone know where can I find the following deport files for HP-UX 11.00 ? The support is very low now.

ref:
perl
tcltk
bison
fontconfig
libpng
libz

Now,
# Bundle(s):
#

BIND-920 B.11.00.01.003 BIND 9.2.0
BUNDLE B.11.00 Patch Bundle
HPUXEng32RT B.11.00.01 English HP-UX 32-bit Runtime Environment
Sendmail-811 B.11.00.01.005 Sendmail-8.11.1 special release upgrade
UXCoreMedia B.11.00.01 HP-UX Media Kit (Reference Only. See Description)
XSWGR1100 B.11.00.47.08 General Release Patches, November 1999 (ACE)
hpuxwsApache A.2.0.52.00 HP-UX Apache-based Web Server
hpuxwsTomcat A.4.1.29.04 HP-UX Tomcat-based Servlet Engine
hpuxwsWebmin A.1.070.02 HP-UX Webmin-based Admin
#
# Product(s) not contained in a Bundle:
#

JPEG 1.2.1 JPEG
PHCO_26111 1.0 libc cumulative header file patch
PHCO_27847 1.0 cumulative patch for syslogd(1M)
PHCO_29286 1.0 libc cumulative man page patch
PHCO_29330 1.0 libc configuration file patch.
PHCO_29956 1.0 libc cumulative patch
PHSS_30967 1.0 ld(1) and linker tools cumulative patch
expat 1.95.8 expat
flex 2.5.4a flex
freetype 2.1.9 freetype
gcc 3.3.2 gcc
gettext 0.14.1 gettext
jpeg 6b jpeg
libiconv 1.9.2 libiconv
m4 1.4.2 m4
make 3.80 make
mysql 4.0.15a mysql
mysql-standard 5.0.4-beta MySQL Community Edition - Standard (GPL)
qpopper 4.0.5 qpopper
unzip 5.51 unzip
xpm 3.4k xpm
zlib 1.1.3 zlib
Alex Lavrov.
Honored Contributor

Re: how to turn on GD Support in php ?

You can try and install a depot for 11i, mabe it will work, I didn't try it or the other option is to compile it yourself.


Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Kenneth_61
Frequent Advisor

Re: how to turn on GD Support in php ?

I recomplie the download file , but it is for 11.11. It cannot be run.

Let say , i download tcltk-8.4.9-ss-11.11.tar.gz. There is no tcltk-8.4.9-ss-11.00.tar.gz which can be downloaded in http://hpux.cs.utah.edu. After I download tcltk-8.4.9-ss-11.11.tar.gz., complie and make.

# cd /
# find . -name tcltk
./usr/local/lib/tcltk
# cd /usr/local/lib
# ./tcltk
sh: ./tcltk: Execute permission denied.
Marko_29
New Member

Re: how to turn on GD Support in php ?

Hello,

I have a problem with installing libraries on my HP-UX box. The problem is as follows:

I installed hpws 2.0.53 on my HP-UX box and want
to enable php with gd-Support.
In the documentation of hpws 2.0.53 HP advised to install
the following libraries under /usr/local/lib:

Image (gd.sl) :
libjpeg version 6b
libpng version 1.0.11
libxpm version 3.4k
libfreetype version 2.1.2
t1lib version 1.3.1 (should be installed in /usr/local/lib)

So I looked under http://hpux.cs.utah.edu for binary depots, but I only have found higher versions.

I installed these versions:

(hpws 2.0.53 on HP-UX 11.11)

expat-1.95.8-sd-11.22.depot
jpeg-6b-sd-11.00.depot
xpm-3.4k-sd-11.11.depot
freetype-2.1.9-sd-11.11.depot
libiconv-1.9.2-sd-11.22.depot
zlib-1.2.2-sd-11.11.depot
gettext-0.14.1-sd-11.22.depot
libpng-1.2.8-sd-11.11.depot
t1lib-1.3-sd-11.11.depot

-- I am not sure if I take the right depots? --

But installing these higher versions does not work. The apache gave the following error-log:


[Mon Jul 04 14:53:24 2005] [notice] SIGHUP received. Attempting to restart
PHP Warning: Unknown(): Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/gd.sl' - Call to mmap() failed - TEXT /opt/hpws/apache/php/lib/php/extensions/gd.sl in Unknown on line 0
[Mon Jul 04 14:53:24 2005] [notice] Apache/2.0.53 HP-UX_Apache-based_Web_Server (Unix) DAV/2 PHP/4.3.8 configured -- resuming normal operations


ldd gave the following output:

ldd -vrds /opt/hpws/apache/php/lib/php/extensions/gd.sl

find library=/usr/lib/libc.2; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libc.2
trying path=/usr/lib/libc.2 (absolute)
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libdld.2; required by /usr/lib/libc.2
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libdld.2
trying path=/usr/lib/libdld.2 (absolute)
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libc.2; required by implicit load
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libc.2
trying path=/usr/lib/libc.2 (absolute)
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/local/lib/libjpeg.sl; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libjpeg.0
trying path=/usr/local/lib/libjpeg.0 (absolute)
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libjpeg.sl
/usr/local/lib/libjpeg.sl => /usr/local/lib/libjpeg.sl

find library=/usr/local/lib/libz.sl; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libz.0
trying path=/usr/local/lib/libz.0 (absolute)
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libz.sl
/usr/local/lib/libz.sl => /usr/local/lib/libz.sl

find library=/usr/local/lib/libpng.sl.2; required by /opt/hpws/apache/php/lib/php/extensions/gd.s
l
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libpng.sl.2
trying path=/usr/local/lib/libpng.sl.2 (absolute)
/usr/lib/dld.sl: Can't find path for shared library: libpng.sl.2
/usr/lib/dld.sl: No such file or directory


Kind regards

Marko