Showing posts with label Solaris. Show all posts
Showing posts with label Solaris. Show all posts

Saturday, June 25, 2011

Building PHP 5 on Solaris 10

This is an article I meant to publish a long time ago. I was going through my blog posts, and noticed this entry as a draft from four years ago. I thought it may still be relevant to some folks and decided to publish it. There may be circumstances which require native PHP. This is how I did it using the native version.

Note: Today I would recommend using Quercus on GlassFish 3 instead of using pure PHP.  Please see Quercus PHP 3.2.1 on GlassFish 2.1 as an example of how to implement it.

1. Set the path as follows:

export PATH=/opt/csw/bin:/usr/sfw/bin:/usr/sbin:/usr/bin: \
/usr/openwin/bin:/usr/dt/bin:/usr/ccs/bin


2. Install the following packages from blastwave.org

pkg-get -U
pkg-get -i autoconf
pkg-get -i automake
pkg-get -i gsed
pkg-get -i libxml2


2. Check software revision levels

which autoconf && autoconf --version | head -2
/opt/csw/bin/autoconf
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.


which automake && automake --version | head -2
/opt/csw/bin/automake
automake (GNU automake) 1.9.6
Written by Tom Tromey .


which gsed && gsed --version | head -2
/opt/csw/bin/gsed
GNU sed version 4.1.4
Copyright (C) 2003 Free Software Foundation, Inc.


which gcc && gcc --version | head -2
/usr/sfw/bin/gcc
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.


which gmake && gmake --version | head -2
/opt/sfw/bin/gmake
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.

which flex && flex --version | head -2
/usr/sfw/bin/flex
flex version 2.5.4

which bison && bison --version | head -2
/usr/sfw/bin/bison
bison (GNU Bison) 1.875
Written by Robert Corbett and Richard Stallman.

#which gm4 && gm4 --version | head -2
/opt/csw/bin/gm4
GNU M4 1.4.5
Written by Rene' Seindal.

which perl && perl -v | head -2
/opt/csw/bin/perl
This is perl, v5.8.8 built for sun4-solaris-thread-multi

which gunzip && gunzip -V | head -2
/usr/bin/gunzip
gunzip 1.3.3-patch.1
(2002-03-08)

which gtar && gtar --version | head -2
/opt/csw/bin/gtar
tar (GNU tar) 1.15.91
Copyright (C) 2006 Free Software Foundation, Inc.


4. Use the following build script

./configure \
--enable-so \
--with-apxs2=/usr/apache2/bin/apxs \
--enable-fastcgi \
--enable-debug \
--with-zlib \
--with-bz2 \
--enable-calendar \
--enable-dba=shared \
--with-flatfile \
--enable-dbase \
--enable-ftp \
--with-openssl \
--with-ldap \
--with-ldap-sasl \
--enable-soap \
--with-oci8=/opt/oracle/app/oracle/product/10.2.0/db_1 \
--with-libxml-dir=/opt/csw \
--enable-mbstring \
--with-mycrpt

5. Run make all

6. Run make install


Enhanced by Zemanta

Friday, September 17, 2010

Illumos: An OpenSolaris Replacement, or Vaporware

OpenSolarisImage via Wikipedia
OpenSolaris Logo
The end of the OpenSolaris project was cold blooded, and rather uneventful. Is that because we saw it coming, or has the relevance of OpenSolaris questionable?

There is no doubt that OpenSolaris was the barometer of where Solaris should be heading in an open source world. It included an incredible tool set, and an opportunity to contribute to a great project. The unceremonious end at the hands of Oracle is a brutal barometer to its intentions with regards to open source. This has nothing to do with its current legal battles with Google which is by no means innocent in those legal proceedings.

It was announced in SD Times, and in the Twitter space that Illumos was going to take up the banner for the OpenSolaris cause. As of today, there are no binaries, or code. I am not sure if the legal proceedings have killed the project, or seriously given the project owners a case of heartburn.

The last news is that it will support Mono. This news is least bit interesting to me, and actually I think I caught a chunk in my throat.

I like the idea of continuing the open source development of OpenSolaris, but I am wondering if it is going to fall under the veil of a legal clouds, or a Chinese puzzle box of legal quagmires. Let us not forget that Mono is a bulls-eye for Microsoft.

What are your thoughts?

Signed,

The disaffected, and disillusioned OpenSolaris advocate.
Enhanced by Zemanta

Popular Posts