📄 node44.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2 Final//FR"><!-- Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) --><!-- by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><!-- Modified Simulog 03/97 --><HTML><HEAD><TITLE>5.1 Installation of the commands</TITLE><LINK REL=STYLESHEET TYPE="text/css" HREF="./Modulef.css" TITLE="Modulef CSS"><meta name="description" value="5.1 Installation of the commands"><meta name="keywords" value="Guide1"><meta name="resource-type" value="document"><meta name="distribution" value="global"></HEAD><BODY BGCOLOR="#FFFFFF"><P> <IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM ALT="Modulef"><A NAME=tex2html711 HREF="node43.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html717 HREF="node42.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html719 HREF="node45.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html721 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide1-18/node44.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide1-14/node44.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide1-10/node44.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html720 HREF="node45.html">5.2 Guidelines for software development</A><B>Up: </B> <A NAME=tex2html718 HREF="node42.html">5 Management under UNIX</A><B> Prev: </B> <A NAME=tex2html712 HREF="node43.html"> Foreword</A><B><A HREF="node2.html" >Contents</A></B><HR SIZE=3 WIDTH="75%"><H1><A NAME=SECTION05620000000000000000>5.1 Installation of the commands</A></H1><P><P><P>The MODULEF library management commands are supplied with the source codeand are found in directory <b> $MR/ascii/com.util</b> <FONT color="#B8860B" SIZE=-1><I>(<IMG ALIGN=middle SRC="../icons/foot_motif.gif" ALT="[note]"> Variable <b> MR</b> has the same value as during installation.)</I></FONT>.<P>Before using these commands, it is necessary to make sure that your site is configured correctly, and that these commands are adapted to your machine.<P><b> Warning:</b>We assume in this section that we are working with shell <b> csh</b>.However, other shells (<b> sh</b>, <b> ksh</b>, ...) can of course also be used.<P><P><P><H2><A NAME=SECTION05621000000000000000>5.1.1 Configuration of your site</A></H2><P><P><P><H3><A NAME=SECTION05621100000000000000> Initialization of the variables</A></H3> <A NAME=seca_conf> </A><P><P><P>It is necessary for all MODULEF users to define the following variables in file <b> .cshrc</b><FONT color="#B8860B" SIZE=-1><I>(<IMG ALIGN=middle SRC="../icons/foot_motif.gif" ALT="[note]"> or <b> .profile</b> for shell <b> sh</b>.)</I></FONT>:<P><DL COMPACT><DT>MM<DD> root of the directory where MODULEF is installed;<DT>MV<DD> MODULEF version (sta);<DT>MM<DD> the name of the machine on which you work;<DT>path<DD> the search path, it must be incremented by the following paths: <blockquote> <b> $MR/ascii/com.util</b> <BR> <b> $MR/$MM/com.util</b> <BR> <b> $MR/$MM/$MV/bin</b></blockquote><P><DT>F77<DD> compilation command for FORTRAN subroutines;<DT>OPTION_F77<DD> compilation option for FORTRAN subroutines;<DT>CC<DD> compilation command for C subroutines;<DT>OPTION_CC<DD> compilation option for C subroutines;<DT>LINK<DD> link command;<DT>LINKR<DD> link command with bit relocation;<DT>STDLIB<DD> libraries to include during linking; <DT>DEST<DD> option to redirect the output when linking;<DT>mb<DD> access path to shell commands;<DT>ms<DD> access path to MODULEF source libraries.<P> </DL><P>To help the reader initializing the above variables, he/she should consult the variables defined during the installation of MODULEF, found in file <b> $MR/make/Install$MM</b>.<P>All these variables can, for example, be declared in file <b>modulef.csh</b> and stored in directory <b> $MR/ascii/com.util</b>.Consequently, all persons wishing to use the MODULEF environment need onlyadd the following line in file <b> .cshrc</b> in their home directory:<P><blockquote> <b> source</b> <i> absolute path</i>/<b> ascii/com.util/modulef.csh</b> <BR> </blockquote><P>Please consult Appendix <A HREF="node64.html#apppart4">H</A> for an example of file <b> modulef.csh</b><P><P><P><H3><A NAME=SECTION05621200000000000000> Creation of file sourcelist and command reponse</A></H3><P><P><P>The existence of these files are indispensable as they are used by the library management commands.<P><DL COMPACT><DT>sourcelist<DD> indicates the library in which a file can be found. It is up-dated automatically when modifications are made in the MODULEF library using the management commands described in this section.<DT>reponse<DD> analyses the response to questions for which the response is either yes or no.<P> </DL><P>These two files are created by the installation Makefile found in directory <BR>[4]<b> $MR/make/Install$MM</b>. If these two files have not been created during installation, enter the following commands:<blockquote> <b> B$ cd $MR/make/Install$MM</b><P><b> B$ make gestion</b> </blockquote><P><P><P><H3><A NAME=SECTION05621300000000000000> Protection of the MODULEF library source code</A></H3> <A NAME=acces> </A><P><P><P>Read access to the source libraries(<b> batc bihm ... vis3</b>) and their contents is given to all. On the other hand,write access can be protected by choosing one of the following options:<P><OL><LI> Nobody is given write access.<P>This protection is assigned by entering the following commands:<P><blockquote> <b> B$ cd $ms</b><P><b> B$ chmod -R a-w <b>*</b></b> </blockquote><P><LI> All persons belonging to the same group as the MODULEF libraryare given write access.<P>This protection is assigned by entering the following command:<P><blockquote> <b> B$ cd $ms</b><P><b> B$ chmod -R gu=rw <b>*</b></b></blockquote></OL><P>The disadvantage (or advantage) of the first proposition is that <b> only</b> the owner of the account where the library is found may use the management commands to <b> modify, compile</b> or <b> delete</b> an element in the library.<P>On the other hand, this restriction disappears in the second proposition. Everybody belonging to the samegroup as MODULEF can modify the library by using (or not) the library management commands!<P>Having created your environment, we can now go ahead and adapt the management tools to your machine.<P><P><P><H2><A NAME=SECTION05622000000000000000>5.1.2 Commands adapted at your site</A></H2><P><P><P>Some of the commands you received are not only machine-dependent, but also dependent on your personalchoices (text editor, ...).It is therefore necessary to adapt the following commands to your site:<blockquote> <b> ar_</b> and <b> voir</b>.</blockquote><P><P><P><H3><A NAME=SECTION05622100000000000000> Command: voir</A></H3><P><P><P>Command <b> voir</b> is used to visualize source files. In this command, the variable <b> EDITOR</b> needs to be initialized.<P><P><P><H3><A NAME=SECTION05622200000000000000> Command: ar_</A></H3><A NAME=propo> </A><P><P><P>The command <b> ar_</b> is an improved archive command.To adapt it to your site, it suffices to delete command <b> ranlib</b>if it is not defined on your machine (for example Silicon Graphics).<P><P><P><HR SIZE=3 WIDTH="75%"><IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM ALT="Modulef"><A NAME=tex2html711 HREF="node43.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html717 HREF="node42.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html719 HREF="node45.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html721 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide1-18/node44.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide1-14/node44.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide1-10/node44.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html720 HREF="node45.html">5.2 Guidelines for software development</A><B>Up: </B> <A NAME=tex2html718 HREF="node42.html">5 Management under UNIX</A><B> Prev: </B> <A NAME=tex2html712 HREF="node43.html"> Foreword</A><B><A HREF="node2.html" >Contents</A></B><BR> <HR><P><ADDRESS></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -