Mac
Line 28: | Line 28: | ||
* Step 3: Unzip krc | * Step 3: Unzip krc | ||
− | * Step 4 | + | * Step 4: Now go to /krc/src/cfiles and type: |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
make | make | ||
Usually there are some minor-looking warnings; ignore them for now | Usually there are some minor-looking warnings; ignore them for now | ||
− | * Step | + | * Step 5: Now go to /krc/src/ and type: |
make | make | ||
Sometimes, there are some minor-looking warnings; ignore them for now | Sometimes, there are some minor-looking warnings; ignore them for now | ||
− | * Step | + | * Step 6: Go back to /krc/src/cfiles and type: |
make | make | ||
There should be no warnings this time | There should be no warnings this time | ||
− | * Step | + | * Step 7: Go back to /krc/src/ and type: |
make | make | ||
Line 77: | Line 49: | ||
Screen should indicate " 'krc' is up to date " | Screen should indicate " 'krc' is up to date " | ||
− | * Step | + | * Step 8: in Makefile, a few modifications may be necessary: |
REPLACE: | REPLACE: | ||
HHKLIB=/mars/u/krios/krc/builds/3.2.1/ # top of libraries to use | HHKLIB=/mars/u/krios/krc/builds/3.2.1/ # top of libraries to use |
Revision as of 09:42, 1 November 2016
- Step 1: Install a FORTRAN compiler.
The preferred compiler would be gfortran found here: http://gcc.gnu.org/wiki/GFortranBinaries#MacOS OR http://hpc.sourceforge.net
But it may or may not be required to have additional library files associated with g77. Ignore installing g77 on your first attempt to compile krc on a mac, but compile g77 if errors associated with missing library files show up during the compilation.
http://www.webmo.net/support/fortran_osx.html
download the g77 compiler called g77-intel-bin.tar.gz (Intel Mac only) Then open a terminal window, go to the place where g77-intel-bin.tar.gz is located.
Type:
gunzip g77-intel-bin.tar.gz
sudo tar -xvf g77-intel-bin.tar -C /
GOOD NEWS: No modifications of Makefile are required for version 2.3.2 (was not the case with older versions)
- Step 2: Put the zipped krc file where you want it to be run from
- Step 3: Unzip krc
- Step 4: Now go to /krc/src/cfiles and type:
make
Usually there are some minor-looking warnings; ignore them for now
- Step 5: Now go to /krc/src/ and type:
make
Sometimes, there are some minor-looking warnings; ignore them for now
- Step 6: Go back to /krc/src/cfiles and type:
make
There should be no warnings this time
- Step 7: Go back to /krc/src/ and type:
make
There should be no warnings this time. Screen should indicate " 'krc' is up to date "
- Step 8: in Makefile, a few modifications may be necessary:
REPLACE: HHKLIB=/mars/u/krios/krc/builds/3.2.1/ # top of libraries to use WITH: HHKLIB=~/Applications/krc03_02_01b/krc_3.2.1.r12877/ #SP 03/25/2015
REPLACE: b2b.o: /mars/u/krios/krc/builds/3.2.1/src/b2b.f WITH: b2b.o: ~/Applications/krc03_02_01/krc_3.2.1.r12877/src/b2b.f #SP 03/25/2015
REPLACE: catime.o: /mars/u/krios/krc/builds/3.2.1/src/catime.f WITH: catime.o: ~/Applications/krc03_02_01/krc_3.2.1.r12877/src/catime.f
REPLACE: white1.o: /mars/u/krios/krc/builds/3.2.1/src/white1.f WITH: white1.o: ~/Applications/krc03_02_01/krc_3.2.1.r12877/src/white1.f