|
|
|
First steps in
a UNIX environment |
First steps in a UNIX environment
At first we will describe how to set up SYMMETRICA on a computer
with UNIX operating system. This system has a utility called
make
which allows the various actions required in setting up SYMMETRICA
to be coded in a special file called
makefile
and to be invoked by a simple command. We will see the details
below. (If you don't have UNIX availabe, you can only make use of
the files the names of which end with .c
. The case
when you are in a DOS environment will be discussed in the
following section.)
Please look at the files that you find in your directory, and
carefully read the following two items that describe how you get
started:
- Please check first, if there are files ending with
.o
. If this is so, then you have got a copy of
SYMMETRICA that is taken from somebody else's computer, and which
already contains object files. Hence it is advisable first to
remove these files ending with .o
. The corresponding
command is
rm *.o
- The next step is to check if there is already a file
test.c
. In the case when you find such a file, then
you continue with the next item. If there is no such file, then
please copy one of the example files, say ex1.c
into a
file with the name test.c
. This is done by entering
the line
cp ex1.c test.c
- Now you copy the file
make.unix
into
makefile
by entering the line
cp make.unix makefile
- Having done this, please enter
make
and wait until your prompt returns. This will need some time while
your machine is busy in translating the .c
-files into
executable ones.
As soon as the prompt has returned the system is ready to go, and
therefore you may now continue reading the next sections of this
chapter, in particular the section on the example files, but you
may also skip this and continue with the second chapter.
harald.fripertinger "at" uni-graz.at, May 26,
2011
|
|
|
|
|
First steps in
a UNIX environment |
|
|