ThefollowingrequirementsexistforbuildingApachehttpd:
APRandAPRUtil
MakesureyouhaveAPRandAPRUtilalreadyinstalledonyoursystem.Ifyoudon't,orprefertonotuse
thesystemprovidedversions,downloadthelatestversionsofbothAPRandAPRUtilfromApacheAPR,
unpacktheminto/httpd_source_tree_root/srclib/aprand
/httpd_source_tree_root/srclib/aprutil(besurethedirectorynamesdonothave
versionnumbers;forexample,theAPRdistributionmustbeunder/httpd_source_tree_root/srclib/apr/)and
use./configure'swithincludedaproption.Onsomeplatforms,youmayhavetoinstall
thecorrespondingdevpackagestoallowhttpdtobuildagainstyourinstalledcopyofAPRandAPR
Util.
PerlCompatibleRegularExpressionsLibrary(PCRE)
Thislibraryisrequiredbutnotlongerbundledwithhttpd.Downloadthesourcecodefrom
http://www.pcre.org,orinstallaPortorPackage.Ifyourbuildsystemcan'tfindthepcreconfigscript
installedbythePCREbuild,pointtoitusingthewithpcreparameter.Onsomeplatforms,youmay
havetoinstallthecorrespondingdevpackagetoallowhttpdtobuildagainstyourinstalledcopyof
PCRE.
DiskSpace
Makesureyouhaveatleast50MBoftemporaryfreediskspaceavailable.Afterinstallationtheserver
occupiesapproximately10MBofdiskspace.Theactualdiskspacerequirementswillvaryconsiderably
basedonyourchosenconfigurationoptions,anythirdpartymodules,and,ofcourse,thesizeoftheweb
siteorsitesthatyouhaveontheserver.
ANSICCompilerandBuildSystem
MakesureyouhaveanANSICcompilerinstalled.TheGNUCcompiler(GCC)fromtheFreeSoftware
Foundation(FSF)isrecommended.Ifyoudon'thaveGCCthenatleastmakesureyourvendor'scompiler
isANSIcompliant.Inaddition,yourPATHmustcontainbasicbuildtoolssuchasmake.
Accuratetimekeeping
ElementsoftheHTTPprotocolareexpressedasthetimeofday.So,it'stimetoinvestigatesettingsome
timesynchronizationfacilityonyoursystem.Usuallythentpdateorxntpdprogramsareusedforthis
purposewhicharebasedontheNetworkTimeProtocol(NTP).SeetheNTPhomepageformoredetails
aboutNTPsoftwareandpublictimeservers.
Perl5[OPTIONAL]
Forsomeofthesupportscriptslikeapxsordbmmanage(whicharewritteninPerl)thePerl5
interpreterisrequired(versions5.003orneweraresufficient).IfnoPerl5interpreterisfoundbythe
configurescript,youwillnotbeabletousetheaffectedsupportscripts.Ofcourse,youwillstillbe
abletobuildanduseApachehttpd.
Download
TheApacheHTTPServercanbedownloadedfromtheApacheHTTPServerdownloadsite
(↗http://httpd.apache.org/download.cgi),whichlistsseveralmirrors.MostusersofApacheonunixlike
systemswillbebetteroffdownloadingandcompilingasourceversion.Thebuildprocess(describedbelow)is
easy,anditallowsyoutocustomizeyourservertosuityourneeds.Inaddition,binaryreleasesareoftennotup
todatewiththelatestsourcereleases.Ifyoudodownloadabinary,followtheinstructionsinthe
INSTALL.bindistfileinsidethedistribution.
Afterdownloading,itisimportanttoverifythatyouhaveacompleteandunmodifiedversionoftheApache
HTTPServer.ThiscanbeaccomplishedbytestingthedownloadedtarballagainstthePGPsignature.Detailson
howtodothisareavailableonthedownloadpage(↗http://httpd.apache.org/download.cgi#verify)andan
extendedexampleisavailabledescribingtheuseofPGP(↗http://httpd.apache.org/dev/verification.html).
Extract
ExtractingthesourcefromtheApacheHTTPServertarballisasimplematterofuncompressing,andthen
untarring:
评论0
最新资源