Solaris 10 compiling environment

Hello,

I have had a tough time setting up an environment for compiling programs in Solaris 10 using the gcc and other packages from Sunfreeware.

Could someone list all the tools and path settings for compiling something like Apache2, and php under Solaris 10 ?

Yes, I know that Apache2 is available as a package on sunfreeware.com, but our environment requires some other stuff to be compiled into it.

It is possible that my path is out of order or that I don't have a tool or 2 necessary for the complete compile, so a detailed list of what you have used for a successful compile, along with the paths would be a good answer for my question.

Thank you for your help.
LVL 14
arthurjbAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TintinCommented:
If you have a preference for the GNU tools from sunfreeware (remember Solaris 10 includes gcc and all the associated GNU tools), then all you really need is to install

gcc

and make sure you have the SUNWbtool package installed, which has all the tools under /usr/ccs/bin (eg: ar, make etc)
yuzhCommented:
If you use gcc from  sunfreeware  make sure that you download and install
GNU autoconf, automake and zlib as well.

then set PATH and LD_LIBRARY_PATH before complie the packages,  eg if the package are install in  /usr/local, you do:

PATH=/usr/local/bin:$PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export PATH LD_LIBRARY_PATH

Note: if you use mysql add mysql bin and lib to PATH LD_LIBRARY_PATH as well

then follow the instructions in this doc:
http://www.sunhelpdesk.com/node/24

please remember to adjust the path to suit your installation


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Artysystem administratorCommented:
I agree with Tintin.

If you have full solaris 10 distribution, you already have native working gcc and GNU autotools in:
/opt/sfw/bin/

If you wish also install gcc from sunfreeware (I don't recommend you to install second gcc), it will be in:
/usr/sfw/bin/

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.