linux - PHP and the build process (/.configure, make and install): orientation, please -
i'm newbie , after i've learnt enough build simple useful web services, managed put myself in position need configure own php build.
the problem don't know build means --never built either.
my broad question is: step step tutorial doesn't "must have dependencies"?
my specific question is: instance, 1 shows how build php odbc, rebuild (configure.nice , make nice?) imap in addition.
if finds php bundle comes odbc, great; odbc & imap, better. i'm looking show me how fish. please.
thnx. a.
gazler correct, simple setup, can configure ubuntu through repositories via apt-get. rhel-based systems - yum equivalent. however, if wanting know more of how compile scratch (which give more control on installation), can so.
basics of compiling application:
- download source website (such php, www.php.net)
- untar source (
tar -xzvf source.tar.gz
) cd source
- configure source (
./configure [install-option-flags]
) - compile source (
make
) - test install (doesn't install) -
make test
- install software (
make install
)
step 4 broad step. need figure out options want configure - see php core configuration options.
requirements installing php differ between environments, that's broad cover in 1 answer, however, @ least need c-compiler compile source. gcc choice, , installed already. on ubuntu (debian-based) use apt-get install build-essential
or search , install via yum
on rhel-based systems, believe yum install gcc
.
you run dependencies issues compile, said broad step, however, once figure out requirements you need, should go, long document steps environment.
again, easiest way go install via software repository (apt-get
, yum
, emerge
, pacman
, etc), these don't give leverage on controlling environment installation, whereas building source gives configuration control you'd need.
Comments
Post a Comment