Wednesday, January 23, 2008

Installing perl in solaris 8

As root

install ActivePerl-5.8 -
pkgadd -d ActivePerl-5.8.8.822-sun4-solaris-2.6-cc-280952.pkg

then link perl to /usr/bin

need to install

DBI-1.59.tar
DBD-Oracle-1.17.tar

in order to install DBI-1.59


you have to install gcc,cc,make .

to install gcc you have to use pkg-get , pkgadd ....

then link gcc ,
to install make ./reconfigure and link make to /usr/bin/make

bash-2.05$ gcc -v
Reading specs from /opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.5/specs
Configured with: ../sources/gcc-3.4.5/configure --prefix=/opt/csw/gcc3 --with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --enable-languages=all
Thread model: posix
gcc version 3.4.5
bash-2.05$ make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for sparc-sun-solaris2.9
as root
set your oracle environments

# ORACLE_BASE=/ofs/app/oracle/product
# export ORACLE_BASE
# ORACLE_HOME=$ORACLE_BASE/10.2.0.1
# export ORACLE_HOME
# ORACLE_SID=testasm
# export ORACLE_SID
# LD_LIBRARY_PATH=$ORACLE_HOME/lib32
# export LD_LIBRARY_PATH

then regenerate the makefile for DBI-1.59
perl Makefile.PL
make

to install DBD-Oracle-1.17
perl Makefile.PL
make
make test
make install

bash-2.05$ perl -v

This is perl, v5.8.8 built for sun4-solaris-thread-multi
(with 11 registered patches, see perl -V for more detail)

No comments: