Click to See Complete Forum and Search --> : PHP Apache Solaris MySQL installation


k8te
05-22-2003, 11:42 AM
I'm getting the following message while trying to install PHP on a Solaris machine:

make: fatal error: Command failed for target 'sapi/cli/php'

Can someone please walk a complete and utter newbie through disabling cli (I figured out that much, at least), or tell me what I should do with libtool?

I really need to get this done for my job, and the UNIX/Solaris gurus are going to be tied up for days. And please, please, make it REALLY simple. If you say, "Install a patch," my head is just going to spin. I got all excited when I found the console the other day.

They just sprung this on me, I have a deadline, and I'm stuck.

daveo
05-22-2003, 01:37 PM
Since you are in a hurry (and some of the better respondants don't check in until after midnight) I will ask some of the standard questions:

Since you are asking about "make" I assume that you aren't using a "prepackaged" version (ala www.sunfreeware.com)

Solaris Sparc or Intel? Which version of Solaris?
(type "uname -a" and the shell prompt)

Apache 1.3.x or 2.0.x?
(type "/path/to/apache/bin/httpd -v" of course, giving the proper path)
Apache compile options
(type "/path/to/apache/bin/httpd -V" capital 'V' this time)

PHP version
(included in the downloaded file title)

Compiler that you are using? For instance:
gcc: type "gcc -v"
Sun's stock 'cc': type "/usr/ucb/cc -V"
other: (give it your best shot figuring the version)

That should keep you busy for a minute or two...
--daveo

tsinka
05-24-2003, 02:48 AM
Hi,

this is not a php issue. It might be a known issue with Solaris sed. Try the following to solve the problem:

Install the most recent gnu sed (from sunfreeware.com).
Additionally if that doesn't solve the problem install the most recent libtool, remove libtool from your php source tree and symlink the newly installed libtool to that location.

That should solve the problem.

I think you get something like "output line too long" or something similar.

k8te
06-02-2003, 02:16 PM
Got this all figured out. Just needed to install an older version of PHP.

Just didn't want anyone to waste their time.

Thanks!