LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 07-28-2009, 08:21 AM   #1
agummad
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Rep: Reputation: 0
PHP Source compilation - different from pkgadd?


Hey everyone,

I'm using a SPARC based Solaris 10 5/09 machine and want to install PHP support to it. I already have mysql and apache( came with OS, just started the proccess) installed, so this is the last thing before I can get to learning development However, there's something I'm not sure about.

I downloaded php 5.2.10, but this is the "source". I'm thinking this is not installed via the usual package installation with pkgadd, there might be a compilation step involved.( I assume this because I downloaded the companion cd and all the packages are separated from the source - *,tar.bz2, same as the file i have. Am i wrong?)
How do I compile the source package before I pkgadd them? And, since this is php, is there something altogether different that i need to worry about?

Thank you very much for the help,
AG


P.S - also what really is the general opinion about Cool Stack ( http://cooltools.sunsource.net/coolstack/ ) ?
 
Old 07-28-2009, 04:06 PM   #2
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
Quote:
Originally Posted by agummad View Post
Hey everyone,

I'm using a SPARC based Solaris 10 5/09 machine and want to install PHP support to it. I already have mysql and apache( came with OS, just started the proccess) installed, so this is the last thing before I can get to learning development However, there's something I'm not sure about.

I downloaded php 5.2.10, but this is the "source". I'm thinking this is not installed via the usual package installation with pkgadd, there might be a compilation step involved.( I assume this because I downloaded the companion cd and all the packages are separated from the source - *,tar.bz2, same as the file i have. Am i wrong?)
How do I compile the source package before I pkgadd them? And, since this is php, is there something altogether different that i need to worry about?

Thank you very much for the help,
AG


P.S - also what really is the general opinion about Cool Stack ( http://cooltools.sunsource.net/coolstack/ ) ?
If you want to compile php from source you can do so but it sounds like what you want is just the package.

You can get it here http://www.sunfreeware.com/indexsparc10.html

Just so you are aware, you do not compile something and then pkgadd it, source is compiled and then turned into a package so others can use it on the same architecture. If you wanted to compile the source code you can always google how to do so, or post a thread in the applicable area.

I prefer xampp to cool stack....I think they are the same type thing but I have never tried cool stack past installation and I didnt like the way it was configured compared( plus it has way more than I needed) to xampp...after using xampp I actually decided I like having everything separate, I would give them a try and see what you think.



Regards,

Last edited by ADxD_7; 07-30-2009 at 02:29 PM.
 
Old 08-13-2009, 12:32 AM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 749
Blog Entries: 6

Rep: Reputation: 74
i use coolstack and if need i provide the way to install it
all guide with images

what i like coolstack is because intergrated with SMF

btw i trying to load the images guide to this LQ but limitation
with allowed images size

http://unixman.noc.net.my/src/frame/contents_08_06.html

hope this little thing can help frm my own personal note
how ever follow at your own risk
 
Old 08-14-2009, 07:06 AM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189

Rep: Reputation: 105Reputation: 105
I have a couple of comments.

The easiest way to get things working is to stick with sunfreeware as suggested by AD+D_7. I used it for years, still use it for certain things, and it generally works well. You sometimes have to follow the dependencies that are described for an item and download and install several things.

On my new T2 based systems, I started out with Cool Stack. I liked the idea of optimizing things for my systems, and I figured they could do it better than I could. I also got Cool Tools and GCCfss so that I could build things that would be optimized for my new systems. I've started building more stuff rather than downloading packages when efficiency counts, when I need particular options and configurations on the build, or when I need the very latest versions with the latest patches for security reasons.

If you use Cool Stack, you have to make sure your PATH is set to find things, particularly when you are building additional things that you need to connect with that. Also, you can have issues with packages you download from sunfreeware not finding or connecting with things it needs that happen to be in Cool Stack. You need to be aware that things are found in /opt/coolstack for coolstack, /usr/local for packages you install from sunfreeware, and /usr/sfw for things that aren't Sun but which Sun packaged with Solaris.

If you are going to build things, and download source, you will typically find text files README and INSTALL that tell you how to do it. Typically, you go through `./configure && make && make install`. However, if you've never done it before, there are plenty of pitfalls. You need to have your PATH and LD_LIBRARY_PATH set properly, and you need the proper tools. Typically, I use gnu tools, but you need Sun's loader. I've always gotten the tools from Sunfreeware, except now I'm using GCCfss rather than the plain GCC from sunfreeware. Unless/until you're really ready to dive into this, I would stick with sunfreeware packages in general.

Just another note -- it appears that Sun is moving away from CoolStack -- http://forums.sun.com/forum.jspa?forumID=980&start=30.
 
  


Reply

Tags
compilation, php, solaris, source


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pkgadd problem Yeung Solaris / OpenSolaris 2 12-01-2008 01:09 AM
pkgadd problem, please help. mokku Solaris / OpenSolaris 1 04-08-2008 11:32 AM
pkg from sunfreeware not pkgadd-ing?? bigearsbilly Solaris / OpenSolaris 5 11-23-2006 06:26 AM
PHP compilation APRESTOUS Linux - Newbie 3 09-30-2004 11:15 AM
Can someone help please - what is pkgadd? deanbrown3d Solaris / OpenSolaris 3 06-18-2004 08:23 AM


All times are GMT -5. The time now is 11:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration