📄 install.ms.1
字号:
FUNCTYPE intHAVE_ST_BLKSIZE DONTHAVE_TM_GMTOFF DONTLDFLAGS LINTFILTER | sed -n -f ../sedf.aixLINTFLAGS -wkD -b -h $(DEFS)LINTLIBSTYLE SYSVLOCK_STYLE FNCTLMISSING_MAN MISSING_SRC NEED_TIME DOPOINTER void.DEUnder AIX 3.1, you must also use the \fIsyslog\fP that comes with INN.This is not necessary for 3.2.Some versions also need \USE_UNION_WAIT\fP set to ``DONT''..PP.DS.UL "A/UX".ta \w'HAVE_ST_BLKSIZE 'uLIBS -lbsd.DEMake sure you don't use \fIgcc\fP version 1; it miscompiles the socket callsin \fIinnd/cc.c\fP..PP.DS.UL "BSDI"ABORTVAL voidALARMVAL u_intEXITVAL volatile void_EXITVAL volatile voidFREEVAL voidGETPIDVAL pid_tGID_T gid_tHAVE_UNISTD DOHAVE_VFORK DONTHAVE_WAITPID DOLSEEKVAL off_tMISSING_OBJ MISSING_SRC _PATH_COMPRESS /usr/bin/compress_PATH_EGREP /usr/bin/egrep_PATH_MAILCMD /usr/bin/Mail_PATH_SENDMAIL /usr/sbin/sendmail -tPID_T pid_tPOINTER voidQSORTVAL voidSIZE_T size_tSLEEPVAL u_intUID_T uid_tUSE_UNION_WAIT DONTVAR_STYLE STDARGS.DEChange the \fISHELL\fP variable in \fIconfig/Makefile\fP and\fIsite/Makefile\fP to point to \fI/usr/contrib/bin/bash\fP.Edit \fIlib/Makefile\fP so that the \fIinstall\fP target does nottry to make \fI../llib-linn.ln\fP.You must also use the GNU \fIsed\fP; the version distributed withBSDI 0.9.4.1 enters an infinite loop processing newgroup messages..PP.DS.UL "HP-UX 8.0".ta \w'HAVE_ST_BLKSIZE 'uABORTVAL voidALARMVAL unsigned intCLX_STYLE FCNTLCTYPE isXXXXX((c))DEFS -I../include -DHPUXFDCOUNT_STYLE SYSCONFFREEVAL voidGETPIDVAL pid_tGID_T gid_tHAVE_SETBUFFER DONTHAVE_ST_BLKSIZE DONTHAVE_TM_GMTOFF DONTHAVE_UNISTD DOHAVE_WAITPID DOLINTFILTER | sed -n -f ../sedf.sysvLINTFLAGS -b -h $(DEFS)LINTLIBSTYLE SYSVLOCK_STYLE LOCKFLOG_INN_PROG LOG_LOCAL7LOG_INN_SERVER LOG_LOCAL7LSEEKVAL off_t_PATH_MAILCMD /usr/bin/mailxNOFILE_LIMIT 200PID_T pid_tPOINTER voidPROF QSORTVAL voidRANLIB echoRES_STYLE TIMESSIZE_T size_tSLEEPVAL unsigned intUID_T uid_tUSE_UNION_WAIT DONT_EXITVAL void.DEYou will probably also need to use the \fIbdf\fP command instead of \fIdf\fP..PP.DS.UL "SGI Indigo with IRIX 4.0.1".ta \w'HAVE_ST_BLKSIZE 'uABORTVAL voidALARMVAL uintACT_STYLE MMAPCFLAGS $(DEFS) -g -wCLX_STYLE FCNTL_EXITVAL voidFORK forkFREEVAL voidGID_T gid_tHAVE_ST_BLKSIZE DONTHAVE_TM_GMTOFF DONTHAVE_UNISTD DOLDFLAGS LIBS -lmldLINTFILTER | sed -n -f ../sedf.sysvLINTFLAGS $(DEFS)LINTLIBSTYLE SYSVLSEEKVAL off_tPOINTER voidQSORTVAL voidRANLIB echoSIZE_T size_tSLEEPVAL uintUID_T uid_t_PATH_COMPRESS /usr/bsd/compress.DEAlso, the \fIMISSING_xxx\fP parameters should be empty..PP.DS.UL "Solaris 2.X/SunOS 5.X, using SPARCompiler C 2.X".ta \w'HAVE_ST_BLKSIZE 'uDEFS -I../include -DSUNOS5USE_CHAR_CONST DOCFLAGS -O -Xa $(DEFS)LDFLAGSLIBS -lnsl -lsocket -lelfLINTLIBSTYLE SYSVLINTFLAGS -b -h $(DEFS)LINTFILTER | sed -n -f ../sedf.sysvRANLIB echoVAR_STYLE STDARGSSIZE_T size_tUID_T uid_tGID_T gid_tPID_T pid_tPOINTER voidALIGNPTR longLOCK_STYLE LOCKFHAVE_UNISTD DOHAVE_SETSID DOHAVE_TM_GMTOFF DONTHAVE_WAITPID DOUSE_UNION_WAIT DONTHAVE_VFORK DONTHAVE_UNIX_DOMAIN DONTCLX_STYLE FCNTLRES_STYLE TIMESFDCOUNT_STYLE SYSCONFABORTVAL voidALARMVAL unsignedGETPIDVAL pid_tSLEEPVAL unsignedQSORTVAL voidLSEEKVAL off_tFREEVAL void_EXITVAL voidMISSING_SRC MISSING_OBJ PATH_COMPRESS /bin/compress.DEMake sure you use the C version of subst..PP.DS.UL "System V Release 4".ta \w'HAVE_ST_BLKSIZE 'uFREEVAL voidGETPIDVAL longHAVE_TM_GMTOFF DONTHAVE_WAITPID DOLDFLAGSLIBS -lnsl -lsocketLINTFILTER | sed -n -f ../sedf.sysvLINTFLAGS -b -h $(DEFS)LINTLIBSTYLE NONELOCK_STYLE FCNTLMANPAGESTYLE NONEMISSING_MAN strcasecmp.3MISSING_OBJ strerror.o strcasecmp.oMISSING_SRC strerror.c strcasecmp.c_PATH_MAILCMD /usr/bin/mailxPOINTER voidQSORTVAL voidRANLIBRES_STYLE TIMESSIZE_T unsigned intUSE_CHAR_CONST DONTUSE_UNION_WAIT DONT.DEI was never able to get \fIlint\fP to be useful on the machine I used.Some versions of System V (for example, Esix 4.0.3) need the followingLIBS value:.DS.ta \w'HAVE_ST_BLKSIZE 'uLIBS -lresolv -lsocket -lnsl -L/usr/ccs/lib -lelf.DEOn a Dell System V machine, you have to set \fIHAVE_UNIX_DOMAIN\fP to ``DONT.''.PP.DS.UL "Ultrix 4.x (RISC)".ta \w'HAVE_ST_BLKSIZE 'uALARMVAL unsigned intFREEVAL voidLDFLAGSLINTFILTER | sed -n -f ../sedf.sysvLINTFLAGS -b -u -x $(DEFS)LSEEKVAL off_tMISSING_MAN MISSING_OBJ syslog.o strerror.oMISSING_SRC syslog.c strerror.cPOINTER voidPROF -pQSORTVAL voidSIZE_T unsigned intSLEEPVAL unsigned int_EXITVAL void.DEUltrix also requires the new \fIsyslog\fP.Some sites have reported problems with using the \fIsyslog\fP that INN includes.The file \fIjtkohl-syslog-complete.tar.Z\fP in the \fI/pub/DEC\fPdirectory on gatekeeper.dec.com has a ``for-Ultrix'' package that handlesboth old and new \fIsyslog\fP calls.While Ultrix has symlinks, it does not have the ``\-follow'' option inits \fIfind\fP command.This is used in \fIexpire/makeactive.c\fP; you will have to either installthe GNU \fIfind\fP or edit the source file..NH 1Other Source Preparations.PPIn addition to setting up the configuration file, it might be necessaryto do some other setups..NH 2Systems with old syslogs.PPIf you need to install the \fIsyslog\fP that is distributed with INN, go tothe top of the distribution and type ``make syslogfix''.This will also compile \fIsyslogd\fP, the logging daemon.You should install this to replace your existing daemon, usually in\fI/etc/syslog\fP.You will also need to install the new-style \fIsyslog.conf\fP file..PPIf you cannot replace \fIsyslogd\fP on your machine, then see the file\fIsyslog/README\fP for information on how to set it up as an alternatedaemon..PPIgnore any complaints from \fIlint\fP about the INN sources calling\fIopenlog\fP with the wrong argument count.In fact, if you \fBdon't\fP get any complaints, then something is wrongwith the way \fIsyslog\fP, \fI<syslog.h>\fP, or the \fIlint\fP librariesare set up on your system..NH 2The DBZ package.PPINN uses the DBZ database package.Thanks to Jon Zeeff for his permission to use and redistribute DBZ,as modified by Henry Spencer. INN has its own set of modifications to DBZ.The changes are made with the \fIpatch\fP program and the context diffin \fIlib/dbz.pch\fP.If you don't have \fIpatch\fP installed, then you can make the changesmanually.(If you don't have Larry Wall's \fIpatch\fP program get it from any\fIcomp.sources.unix\fP archive as well as many FSF archives and otherplaces \(em you'll be glad you did.).PPIf you are using \fIvfork\fP (specified in the \fIFORK\fP parameter),or you want to \fImmap\fP the database, then you \fBmust\fP apply the patch.The Makefile in \fIlib\fP will normally do it for you automatically, anyway.The beginning of the patch file describes the changes made in more detail.If you do not apply the patch, then you must add add ``dbzalt.c'' and\&``dbzalt.o'' to the MISSING_SRC and MISSING_OBJ parameters..PPApparently the System V 386 compiler can't optimize \fIdbz.c\fP (theGNU C compiler doesn't have this problem).If you have ``\-O'' in your \fIDBZCFLAGS\fP configuration parameter, thentake it out..NH 2Using writev.PPINN makes extensive use the \fIwritev\fP system call to write severalI/O buffers in a single call.If you do not have \fIwritev\fP then you must copy \fIinclude/uio.h\fP toyour \fI/usr/include/sys\fP directory.You must also add ``writev.c'' and ``writev.o'' to the MISSING_SRC andMISSING_OBJ parameters..PPThe ``fake'' \fIwritev\fP found in the \fIlib\fP directory is not highlyefficient.You might want to write a better one that tries to \fImalloc\fP a newbuffer and join all the elements.Be careful about doing this because \fIinnd\fP can use very big buffers..NH 1Compiling the System.PPOnce the INN sources have been configured, they are ready to be compiled.If you are very confident of your changes, type the following:.DScd $innmake all.DEIf you do not get any errors, skip to the section titled ``Installing theSystem.''.PPIf you are confident, but careful, type:.DScd $innmake worldcat */lint.DEThis will compile everything, then run \fIlint\fP in all directories..PPAnother option is to run the \fIBUILD\fP script found at the top ofthe source tree.This will interactively configure, compile, and install the system.After running that script, skip to the section titled ``Installing theSystem.''.PPIf you are more cautious, you should type the following:.DScd $inn/configmake quietcd ...DEThis will use your already-tested \fIsubst\fP program with your new\fIconfig.data\fP file.You should then follow the steps in the following sections..NH 2Building the Library.PPThe next step is to build the INN library.Do the following.DScd $inn/libmake libinn.a lint.DE.PPThis will build the library and run \fIlint\fP on the sources, puttingthe output into a file named \fIlint\fP.If anything fails to compile, you probably made a configuration error,most likely in the ``C library differences'' section.In particular, double-check the \fISIGHANDLER\fP and \fIxxx_STYLE\fPparameters..PPThe \fIlint\fP output should be almost empty, except for a couple of\&``possible pointer alignment problem'' warnings in \fIdbz.c\fP.If you get much more than this, then you probably did not definethe \fIPOINTER\fP or \fISIZE_T\fP parameters properly.The \fINEW\fP and \fIRENEW\fP macros in \fIinclude/macros.h\fP try tocapture all the alignment problems associated with dynamic memory allocation.Also double-check the \fIALIGNPTR\fP parameter and the \fICAST\fP macro in\fIinclude/macros.h\fP..PPIf \fIlint\fP reports any other problems, you should take the time toinvestigate them.Note that many \fIlint\fP libraries have errors.Also, you may get some problems in \fIyaccpar\fP in \fIparsedate.y\fP; theseare most likely in the \fIyacc\fP-generated C code.If you get any of these, complain to your vendor..PPIf you find a portability issue that I missed, please let me know..PPOnce the library is built, you should install it in the top-level INNdirectory.To do this type ``make\ install'' while still in the \fIlib\fP directory.This will also compile a \fIlint\fP library for use in linting the programsin the other directories..PPNote that any time a change is made to the library you must do\&``make\ install''; it is not enough to type ``make\ libinn.a''.This is a deliberate decision \(em like a program, compiling a libraryis different from making it available for others to use, and installinga library should make it possible to run \fIlint\fP against it..NH 2Compiling the Programs.PPINN's programs are separated into six areas, as detailed in the roadmap.You'll need to build each one before you can install and use INN..NH 3The Frontend Programs.PPFrontends are those programs that talk to the main news server, eitheroffering it articles or controlling its action.This includes the following programs:.IP \fIinews\fP 15The program that validates and prepares news articles and gives them to\fIinnd\fP.This is mostly used by users (usually indirectly, through programs like\fIPnews\fP), but also through special facilities such as news/mail
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -