Difference between revisions of "Installation/swak4Foam/Building dependencies"
(done, 0.3.1 instructions added as well... although I didn't test them to confirm...) |
(added entry for m4) |
||
Line 7: | Line 7: | ||
__FORCETOC__ | __FORCETOC__ | ||
__TOC__ | __TOC__ | ||
+ | |||
+ | = <tt>m4</tt> = | ||
+ | |||
+ | If {{tt|m4}} is not installed, too old or buggy, then follow these steps: | ||
+ | |||
+ | Assuming you already have the necessary utilities for building C and C++ source code, then this should do the trick: | ||
+ | <ol> | ||
+ | <li>If not already there, go into swak4Foam's folder: | ||
+ | <bash>cd swak4Foam</bash> | ||
+ | </li> | ||
+ | |||
+ | <li>Download, unpack, compile and install Bison, by running: | ||
+ | <bash>wget http://ftpmirror.gnu.org/m4/m4-1.4.17.tar.gz | ||
+ | tar -xf m4-1.4.17.tar.gz | ||
+ | cd m4-1.4.17 | ||
+ | ./configure --prefix $PWD/../m4 | ||
+ | make | ||
+ | make install | ||
+ | cd ..</bash> | ||
+ | </li> | ||
+ | |||
+ | <li>Now, before running swak4Foam's script {{tt|Allwmake}} or before building [[#Bison|Bison]], run this command: | ||
+ | <bash>export PATH=$PWD/m4/bin:$PATH</bash> | ||
+ | </li> | ||
+ | </ol> | ||
+ | |||
= Bison = | = Bison = | ||
Line 30: | Line 56: | ||
make install | make install | ||
cd ..</bash> | cd ..</bash> | ||
+ | '''Note:''' If you have problems during the configure step, check the following link: [[Installation/swak4Foam/Understanding_Error_Messages#m4 is not present, too old or buggy|m4 is not present, too old or buggy]] | ||
</li> | </li> | ||
Line 47: | Line 74: | ||
<li>Download, unpack, compile and install Bison, simply by running: | <li>Download, unpack, compile and install Bison, simply by running: | ||
<bash>./maintainanceScripts/compileRequirements.sh</bash> | <bash>./maintainanceScripts/compileRequirements.sh</bash> | ||
+ | '''Note:''' If you have problems during the configure step, check the following link: [[Installation/swak4Foam/Understanding_Error_Messages#m4 is not present, too old or buggy|m4 is not present, too old or buggy]] | ||
</li> | </li> | ||
Revision as of 15:06, 21 March 2015
1 Introduction
This page is dedicated to explaining how to build certain dependencies from source code, which swak4Foam might specifically need, in case the system's default versions are incompatible. For example:
- If your system provides Bison 3.0 by default.
- And swak4Foam needs a version of Bison between 2.5 and 2.8.
- Then you'll need to follow the instructions provided in section #Bison.
2 m4
If m4 is not installed, too old or buggy, then follow these steps:
Assuming you already have the necessary utilities for building C and C++ source code, then this should do the trick:
- If not already there, go into swak4Foam's folder:
cd swak4Foam
- Download, unpack, compile and install Bison, by running:
wget http://ftpmirror.gnu.org/m4/m4-1.4.17.tar.gz tar -xf m4-1.4.17.tar.gz cd m4-1.4.17 ./configure --prefix $PWD/../m4 make make install cd ..
- Now, before running swak4Foam's script Allwmake or before building Bison, run this command:
export PATH=$PWD/m4/bin:$PATH
3 Bison
There are currently 2 ways to build Bison from source code:
- Manually, when using swak4Foam 0.3.0 and older.
- Nearly automatically, using the script provided in swak4Foam 0.3.1 and newer.
3.1 swak4Foam 0.3.0 and older
Assuming you already have the necessary utilities for building C and C++ source code, then this should do the trick:
- If not already there, go into swak4Foam's folder:
cd swak4Foam
- Download, unpack, compile and install Bison, by running:
wget http://ftpmirror.gnu.org/bison/bison-2.7.tar.gz tar -xf bison-2.7.tar.gz cd bison-2.7 ./configure --prefix $PWD/../bison make make install cd ..
Note: If you have problems during the configure step, check the following link: m4 is not present, too old or buggy
- Now, before running swak4Foam's script Allwmake, run this command:
export PATH=$PWD/bison/bin:$PATH
3.2 swak4Foam 0.3.1 and newer
Assuming you already have the necessary utilities for building C and C++ source code, then this should do the trick:
- If not already there, go into swak4Foam's folder:
cd swak4Foam
- Download, unpack, compile and install Bison, simply by running:
./maintainanceScripts/compileRequirements.sh
Note: If you have problems during the configure step, check the following link: m4 is not present, too old or buggy
- Now you can simply go on with the installation of swak4Foam, since the missing requirements should have been built with success.