Compiling code on MAC and Linux platforms
All the code we will be developing in the course can be compiled to run on your local MAC or Linux
machine. To do this you need to copy all files from the CBS server to your own machine. This
you can do very easily using the scp command. Whenever you are asked to use the command
you simply replace it with
where XXXX is you login for the Upsilon cluster.
That is, if you are asked to do the following command
cp -R /home/projects/mniel/ALGO/exercises/code/utils .
you simply type
scp -r XXXX@login.cbs.dtu.dk:/home/projects/mniel/ALGO/code/utils .
cp /home/projects/mniel/ALGO/data/Cprog/* ./data/
scp XXXX@login.cbs.dtu.dk:/home/projects/mniel/ALGO/data/Cprog/"*" ./data/
This will copy the directory /home/projects/mniel/ALGO/code/utils and its i
content to where you are now (".").
Note, that the -R used for the cp command to copy recursively is replaced with -r for the
Next, you need to compile the utils library of C routine with a MAC/Linux specific Makefile. Such files are all ready
part of the utils directory. To compile type
Remember to setup your local machine as described in the UNIX exervise of the course.
Once this is done, you should be independent of the Upsilon linux cluster system.
Both MAC and Linux operating system commands are 99% identical to unix, so once the files have be transferred, you can
work as if you were on a unix platform.