|
Last change
on this file was
4236,
checked in by dubos, 6 years ago
|
|
simple_physics : some Python bindings
|
-
Property svn:executable set to
*
|
|
File size:
1.4 KB
|
| Rev | Line | |
|---|
| [4230] | 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| [4236] | 3 | |
|---|
| 4 | # Compiles the omni-compiler suite, especially the Fortran front-end F_Front |
|---|
| 5 | # which is used to parse the physics code and (later) check that coding standards are followed. |
|---|
| 6 | |
|---|
| 7 | # F_Front will be installed in the directory from which this script has been invoked. |
|---|
| 8 | # Before executing this script, cd to the directory where you want to install. |
|---|
| 9 | # e.g. > cd $HOME/local . Then F_Front will be in $HOME/local/bin . |
|---|
| 10 | |
|---|
| 11 | # There are chances this script fails on OSX if the standard gcc is used. You can try with a more recent gcc, which is easy to |
|---|
| 12 | # install through Homebrew. The XML library libxml2 will be required too : |
|---|
| 13 | # * install gcc and libxml2 : > brew install gcc libxml2 |
|---|
| 14 | # * check : > which gfortran |
|---|
| 15 | # * cd to simple_physics/bash/omnicompiler-1.3.2 |
|---|
| 16 | # * run the configure script with : |
|---|
| 17 | # > CC=/usr/local/bin/gcc-9 ./configure --prefix=$HOME/local --with-libxml2=/usr/local/Cellar/libxml2/2.9.10/ |
|---|
| 18 | # (your version numbers may be different |
|---|
| 19 | # * make all install |
|---|
| 20 | # * even if the full build fails, you may find a working F_Front in xcodeml-tools/F-FrontEnd/src : |
|---|
| 21 | # > xcodeml-tools/F-FrontEnd/src/F_Front --help |
|---|
| 22 | # * copy F_Front where desired |
|---|
| 23 | |
|---|
| [4230] | 24 | PREFIX=$(pwd) |
|---|
| 25 | ROOT=$(dirname $0) |
|---|
| 26 | ROOT=$(cd -P $ROOT ; pwd) |
|---|
| 27 | |
|---|
| 28 | OMNI=omnicompiler-1.3.2 |
|---|
| 29 | |
|---|
| 30 | #echo "prefix : $PREFIX" |
|---|
| 31 | #echo "ROOT : $ROOT" |
|---|
| 32 | cd $ROOT |
|---|
| 33 | rm -rf ${OMNI} |
|---|
| 34 | tar xjf ${OMNI}.tar.bz2 |
|---|
| 35 | cd ${OMNI} |
|---|
| 36 | ./configure --prefix=$PREFIX |
|---|
| 37 | make -j 8 |
|---|
| 38 | make install |
|---|
| 39 | ls -l $PREFIX/bin |
|---|
Note: See
TracBrowser
for help on using the repository browser.