Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
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.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.