[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Php cli help

Enrico Bianco wrote:
mm wrote:

Can you help me more with compiltion.
I use to work with GCC bat not with make files.

Enrico Bianco wrote:

mm wrote:

I am trying to run tests from mediawiki scripts.
On my fedora core 3 php is CGI.
No cli PHP binary to download.
Can anybody help me

Try compiling one from source.  It worked for me.  However, the manual
is mostly concerned with web-based installations (i.e. the Apache module
or CGI binary), so you might have to look harder for some instructions
on how to do it.  I also recommend that you install the new PHP in a
different place than the one you have now, outside of your PATH
(otherwise the PHP from FC3 and the PHP you're building will conflict).

Hope this helps,

Firstly, there are three basic steps to installing something from source: 1) ./configure (to configure the build) 2) make (to build the binaries and other related files) 3) make install (to copy the files to their proper places)

The trick is to figure out the right arguments for the configure script.
 One that you might need is --prefix=<some directory>, which allows you
to choose the directory where all the files will be installed to when
you `make install` (so you don't install over the PHP from FC3).  Beyond
that, I don't fully remember the arguments that you can give to the
configure script, but the README, INSTALL, and other related files in
the tarball should be able to tell you exactly what you need to know.

90% of all "configure" scripts also provide "./configure --help" to show the options _that_ version of configure understands. ---------------------------------------------------------------------- - Rick Stevens, Senior Systems Engineer rstevens vitalstream com - - VitalStream, Inc. http://www.vitalstream.com - - - - Death is nature's way of dropping carrier - ----------------------------------------------------------------------

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]