📄 install.html
字号:
<TITLE>COG 2.0 - Installation</TITLE>
<H1>Installation</H1>
<H2>Public Domain Version</H2>
<P>You can download the compressed tar file
<A HREF="ftp://ftp.wias-berlin.de/pub/cog/cog.tar.gz">
ftp://ftp.wias-berlin.de/pub/cog/cog.tar.gz </A>, decompressed and
untar it:
<PRE>
/base> gunzip cog.tar.gz
/base> tar xf cog.tar
</PRE>
<P>Then the subdirectory cog contains the complete source code and
this documentation:
<PRE>
/base> cd cog
/base/cog> netscape install.html
</PRE>
<H2>Environment variables</H2>
<P>Now, you have to define the environment variable COG_HOME
and to add the subdirectory <B>bin</B> to the path:
<PRE>
####### put this into your .cshrc #######
setenv COG_HOME /base/cog
setenv COG_WORK /your/working/directory
setenv COG_CONFIG axp
set path = ($COG_HOME/bin/ $path)
</PRE>
<P>The variable COG_WORK is optional, if omitted the current
directory is used as the working directory.
<H3>Compiler Flags</H3>
<P>C++ compiler flags may be different for different machines.
For this purpose, we have different sets of compiler flags
defined in $COG_HOME/config/*.mk
<P>You have to choose one of them, for example
$COG_HOME/config/axp.mk, in the following way:
<PRE>
####### put this into your .cshrc #######
setenv COG_CONFIG axp
</PRE>
<P>Feel free to create own files $COG_HOME/config/myflags.mk for your
preferred set of compiler flags. In this case, set COG_CONFIG to myflags.
<P>Now, at least in principle, it should be possible to install COG with
<PRE>
/base/cog> install
</PRE>
<P>Now you can choose a different working directory to
<A HREF="mainstarttest.html">test</A>
<A HREF="index.html">COG</A>.
<P>That's all, I hope. But, of course, this works only on my own machine :-(
<P>Some problems which may be solved:
<H2>No perl</H2>
<P>It is useful to have <B>perl</B> on your machine. If not, this is
not very problematic. <B>perl</B> is used only for the test
environment, in the perl-scripts <B>use</B> and <B>run</B>, and in the
initialization script <B>install</B>. It is still easy to use COG,
especially the test code in the HTML documentation, without
<B>perl</B>.
<H2>No OpenGL</H2>
<P>In this case, forget the geometry viewer. You can still use COG
for grid generation. Remove in Makefile the following definitions:
<PRE>
GLLOADLIBES = ....
GLOBJ = ....
</PRE>
<P>After this, the only possible output is the grid in the Simplex
format.
<H2>Compiler Problems</H2>
<P>Hmm. <A HREF="mailto:schmelzer@wias-berlin.de">Send me</A> a mail.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -