📄 how.nr
字号:
.po 1i.ll 6i.fo '@(#)how.nr 1.5 '- % -'\*(td.ceInstalling Unravel 2.2.sh 1 Introduction.pp\fBUnravel\fR is a prototype program slicer for ANSI C developedat the National Institute of Standards and Technology (NIST).\fBUnravel\fR is usually easy to install but, there are some roughedges that can bite. This file identifies the supportingsoftware that you need, gives some hints for finding it on yoursystem or the Internet, and gives instructions for running \fBmake\fR..sh 1 "Unravel Requirements".pp\fBUnravel\fR is written for the UNIX (or POSIX) environment.\fBUnravel\fR needs to be able to runseveral common UNIX commands, including: \fBcsh, sed, echo, date,yacc,\fR and \fBlex.\fR The \fBecho\fR command should allow the \fB-n\fR option(to indicate no newline).The original \fBunravel\fR development was under SunOs 4.1but, we have compiled under Solaris, ULTRIX, SGI/IRIX and DEC OSF/1..ppThe \fBunravel\fR interface was developed under X Window System X11R5using the Xt toolkit and the MIT Athena widgets. \fBUnravel\fR shouldcompile and run under X11R6; it also compiles and runs under X11R4..pp\fBUnravel\fR needs a C preprocessor (that is ANSI C complient if \fBunravel\fRis to be used on ANSI C source code) from a C compiler to invoke when\fBunravel\fR is looking at source code.\fBUnravel\fR compiles under either a K&R C compiler or an ANSI C compiler.The \fBgcc\fR compiler is ANSI complient,produced by the Free SoftwareFoundation (the GNU project), and can be obtained over the WWWfrom.ce\fBhttp://www.yahoo.com/Computers/Software/Gnu_Software\fRor by \fBftp\fR to.ce\fBprep.ai.mit.edu\fRin subdirectory\fBpub/gnu/\fR..sh 1 "Running make on Unravel".ppBefore making \fBunravel\fR, the following should be done:.(lObtain \fBunravel\fR source via ftp from hissa.ncsl.nist.govuncompress and un-tar the source code somewhere on your systemLocate the X Window System tree with includes and libsDecide on a C compiler for installing \fBunravel\fRDecide on a home for installing \fBunravel\fR.)l.sh 2 "Obtaining Unravel".ppThe \fBunravel\fR source code is located on hissa.ncsl.nist.gov atthe National Institute of Standards and Technology.Use \fBftp\fR with a user name of \fIanonymous\fR.Please use your \fIuser name \fR followed by an \fIat sign\fRas password (e.g., \fBjimmy@\fR).This directory also contains both volumes of\fINISTIR 5691 Unravel: A CASE Toolto Assist Evaluation of High Integrity Software.\fRVolume 1 describes the software design of \fBunravel\fRand volume 2 is a usermanual for \fBunravel\fR..ppThe location (directory) where the \fBunravel\fR source code is unpackedand compiled should be selected carefully since once the programsare compiled, they cannot be moved without compiling again..sh 2 "Unpacking".ppThe files have been collected into one file by \fBtar\fR andthen compressed by \fBcompress\fR..sh 2 "Finding the X Window System".ppIf you don't know where your X Window System tree is you caneither ask your system administrator or try the csh script\fBfind_software\fR (in the \fBunravel\fR source directory)..ppThe X Window System tree usually has subdirectories: bin,man, include and lib. Sometimes the X includes are part of/usr/include and /usr/lib, but usually the MIT distributionof X is installed in /usr/local..ppAfter the X Window System tree is located the environment variableWINHOME must be set before \fBmake\fR can be run. This environmentvariable only needs to be set during the \fBmake,\fR not neededafter \fBunravel\fR has been compiled.For example, on Sun systems, the default location of the treeis sometimes \fB/usr/openwin\fR..cesetenv WINHOME /usr/openwin.sh 2 "C Compiler".ppThe C compiler needs to be set in two places, the \fBmakefile\fR andthe file \fBconfig.h.\fR.ppIn the \fBmakefile,\fR look for the compiler definition line:.ceCC = something\fIsomething\fR should be changed to either \fBgcc\fR (if you have theGNU C compiler) or \fbcc\fR (to use the compiler provided withyour system)..pp\fBUnravel\fR needs a C preprocessor to help parse source program files.The \fBmakefile\fR invokes a csh script, \fBfind_cc\fR, to locatea C compiler that can be invoked (via the -E option)to run just the C preprocessor.The script searches the directories in the\fBpath\fR variable for either \fBacc\fR (Sun ANSI C compiler),\fBgcc\fR or \fBcc\fR.If the script fails to find a C compiler or if you want to usea compiler different from the one found, then the file\fBconfig.h\fR must be changed.Setting the C compiler in \fBconfig.h\fR is a little tricky.The file \fBconfig.h\fR is generated by rules in the \fBmakefile\fR soif you try to edit the file at the wrong time things mightnot work. The \fBconfig.h\fR file must be created by running \fBmake\fRbefore \fBconfig.h\fR can be edited.The best method is to check the \fBconfig.h\fR after \fBmake\fR finishes.Then to change the C compiler, edit \fBconfig.h\fR and run\fBmake\fR again..sh 2 "Install Directory".ppOnce the \fBmake\fR finishes, the \fBunravel\fR files cannot be moved sincethe location (directory) where the \fBunravel\fR source code is locatedis compiled into the \fBunravel\fR programs so that they can findcertain files (e.g., icons and help files).However, the main control program can be installed anywhere inthe file directory tree.The install directory is selected by setting the INSTALL_DIRmacro in the \fBmakefile.\fRTo set the INSTALL_DIR macro, edit the \fBmakefile\fR and findthe line: INSTALL_DIR = ..brReplace the dot with the selected install directory name.For example, to install in /usr/local, change the line to:.ceINSTALL_DIR = /usr/localThis puts the main control program (called \fBunravel\fR) inthe directory /usr/local/bin and adds an \fBunravel\fR man pageto /usr/local/man/man1.Note that the bin and man/man1 are added automatically to theINSTALL_DIR directory name..sh 2 "Running make".ppAfter WINHOME is set in the environment and CC is set in the\fBmakefile,\fR type: \fBmake\fR.brThis should compile each \fBunravel\fR source program. Depending onthe compiler used and how it is installed,there may be lots of warning messages (especially if using anANSI C compiler)..ppIf everything has compiled correctly, \fBunravel\fR can be tried outon the simpleprograms in the directory \fBexamples\fR.The file \fBflavors.c\fR has several obvious slices and \fBmakes\fRa good trial run..ppTo run the install script, type: \fBmake\fR \fBinstall\fR.brThis copies the \fBunravel\fR program file and man page tothe install subdirectories..sh 1 "Help".ppFor more information and very very limited help contact:.(lDr. James R. Lyle at NISTemail: jlyle@nist.govphone: (301) 975-3270fax: (301) 926-3696.)l
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -