Mac

From krc
(Difference between revisions)
Jump to: navigation, search
Line 24: Line 24:
 
(was not the case with older versions)
 
(was not the case with older versions)
  
* Step 2: Put the zipped krc file where you want it to be run from
+
* Step 2: Download KRC
  
* Step 3: Unzip krc
+
* Step 3: Copy the zip file on your ~/Desktop/
  
* Step 4: Now go to /krc/src/cfiles and type:
+
* Step 4: Download Compile_KRC_3.4.3.sh
make
+
  
Usually there are some minor-looking warnings; ignore them for now
+
* Step 5: Run ./Compile_KRC_3.4.3.sh
  
* 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 "
 
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
 

Revision as of 08:54, 2 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: Download KRC
  • Step 3: Copy the zip file on your ~/Desktop/
  • Step 4: Download Compile_KRC_3.4.3.sh
  • Step 5: Run ./Compile_KRC_3.4.3.sh


Screen should indicate " 'krc' is up to date "

Personal tools