Page 1 of 1

How to Compile php 5.2.6 on Solaris with Sun C++ Compiler?

Posted: Thu Nov 20, 2008 10:57 am
by ceciliachen
Hi, my company’s unix admin doesn’t support gcc, so I have to use Sun C++ compiler. Is there a way to configure php makefile to use Sun compiler?



Thanks,

Re: How to Compile php 5.2.6 on Solaris with Sun C++ Compiler?

Posted: Thu Nov 20, 2008 4:54 pm
by infolock
Why do they not support using gcc? It's only the most popular compiler on the net...not to mention, it's free!

Either way, I searched and searched on this. There are a LOT of high-level technical papers out there that give examples of using misc parameters during the actual config process, but I am not even going to claim to know if these type of things will work...

I first assume you've read Solaris specific installation, so with that, I would recommend you have your admin figure this out since he'll have a much easier time doing this. If he's going to be stubborn enough not to install gcc and wants to stick with his trusty Solaris compiler, ask him to figure it out then.

The main reason I wouldn't personally want to try is because gcc contains the libraries PHP requires in order to be installed. Other C compilers may not contain the required libraries, thus the install (even if you get it to work) may not have the necessary libraries built in that you need in order to do your job (like MySQL, PDO, GD, etc may be missing).

That's a tough spot man. Dunno if anyone else here has encountered this problem, but this is a toughy I haven't ever attempted personally..

Re: How to Compile php 5.2.6 on Solaris with Sun C++ Compiler?

Posted: Fri Nov 21, 2008 9:35 am
by ceciliachen
Thanks alot! infolock.