Difference between revisions of "Talk:Tonika"

From Organic Design wiki
(Install Tonika: syntax of export command fixed)
(better to wait for new version in a couple of months)
 
(5 intermediate revisions by one other user not shown)
Line 32: Line 32:
 
read ~/tonika/README and follow directions
 
read ~/tonika/README and follow directions
  
this step in the readme has an error
 
 
(3) Set the environment variable TONIKAROOT to point to the root of Tonika's source distribution, e.g.
 
(3) Set the environment variable TONIKAROOT to point to the root of Tonika's source distribution, e.g.
  
the correct (sh/bash) form is:
+
This step in the readme has an error. The correct (sh/bash) form is:
 
       export TONIKAROOT=/Users/petar/tonika
 
       export TONIKAROOT=/Users/petar/tonika
 +
(4)
 +
 +
(5) compile everything
 +
 +
another error:
 +
 +
joe@joe-dell:~/tonika/src$ ./all.bash
 +
: ./all.bash: 2: gmake: not found
 +
----
 +
joe@joe-dell:~/tonika/src$ sudo apt-get install bison gawk gcc libc6-dev make
 +
Reading package lists... Done
 +
Building dependency tree     
 +
Reading state information... Done
 +
bison is already the newest version.
 +
gawk is already the newest version.
 +
gcc is already the newest version.
 +
libc6-dev is already the newest version.
 +
make is already the newest version.
 +
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 +
----
 +
according to http://www.cfd-online.com/Forums/openfoam-installation/81569-openfoam-1-7-1-installation-linux-ubuntu-10-10-a.html (a similar problem):
 +
----
 +
The error associated to gmake is an ironic error: gmake stands for GNU make, which is the version usually packed with Linux distributions and always named as make. So, the simplest fix is to make a symbolic link of gmake to make; a simple non-root way to do this is:
 +
 +
ln -s `which make`  $WM_PROJECT_DIR/bin/gmake
 +
 +
This should create a symbolic link of make to the link gmake in OpenFOAM's bin folder.
 +
----
 +
try to fix gmake not found:
 +
 +
gedit ~/tonika/src/all.bash
 +
change:
 +
cd ${TONIKAROOT}/src/pkg && gmake clean && gmake && cd ${TONIKAROOT}/src/cmd && gmake clean && gmake
 +
to:
 +
cd ${TONIKAROOT}/src/pkg && make clean && make && cd ${TONIKAROOT}/src/cmd && make clean && make
 +
 +
new error:
 +
joe@joe-dell:~/tonika/src$ ./all.bash
 +
cd util/term && /home/joe/bin/gomake clean
 +
/bin/sh: /home/joe/bin/gomake: not found
 +
make: *** [util/term.clean] Error 127
 +
joe@joe-dell:~/tonika/src$
 +
 +
----
 +
:That's about the process I went through too and gave up about that point :-( we had a conversation with Petar M and he said it's not worth the time installing that version anyway as he's working on a new version which is much better and will work as a program library for higher layers of applicational functionality to use. He reckons at his current work load it'll be a couple of months away --[[User:Nad|nad]] 15:37, 28 August 2011 (PDT)

Latest revision as of 22:37, 28 August 2011

Installing Tonika on Ubuntu

Install Mercurial

# Debian/Ubuntu
$ apt-get install mercurial

More about mercurial:

Install Go language

  • http://golang.org/doc/install.html
  • Install C tools, if needed
  • The Go tool chain is written in C. To build it, you need these programs installed:
    • GCC,
    • the standard C libraries,
    • the parser generator Bison,
    • GNU make (version 3.81 or later), and
    • awk.
sudo apt-get install bison gawk gcc libc6-dev make

add ~/go/bin to your $PATH

gedit ~/.bashrc

append:

PATH=~/go/bin:”${PATH}”

Install Tonika

hg clone https://code.google.com/p/tonika/

read ~/tonika/README and follow directions

(3) Set the environment variable TONIKAROOT to point to the root of Tonika's source distribution, e.g.

This step in the readme has an error. The correct (sh/bash) form is:

     export TONIKAROOT=/Users/petar/tonika

(4)

(5) compile everything

another error:

joe@joe-dell:~/tonika/src$ ./all.bash
./all.bash: 2: gmake: not found

joe@joe-dell:~/tonika/src$ sudo apt-get install bison gawk gcc libc6-dev make
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bison is already the newest version.
gawk is already the newest version.
gcc is already the newest version.
libc6-dev is already the newest version.
make is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

according to http://www.cfd-online.com/Forums/openfoam-installation/81569-openfoam-1-7-1-installation-linux-ubuntu-10-10-a.html (a similar problem):


The error associated to gmake is an ironic error: gmake stands for GNU make, which is the version usually packed with Linux distributions and always named as make. So, the simplest fix is to make a symbolic link of gmake to make; a simple non-root way to do this is:

ln -s `which make`  $WM_PROJECT_DIR/bin/gmake

This should create a symbolic link of make to the link gmake in OpenFOAM's bin folder.


try to fix gmake not found:

gedit ~/tonika/src/all.bash

change:

cd ${TONIKAROOT}/src/pkg && gmake clean && gmake && cd ${TONIKAROOT}/src/cmd && gmake clean && gmake

to:

cd ${TONIKAROOT}/src/pkg && make clean && make && cd ${TONIKAROOT}/src/cmd && make clean && make

new error:

joe@joe-dell:~/tonika/src$ ./all.bash
cd util/term && /home/joe/bin/gomake clean
/bin/sh: /home/joe/bin/gomake: not found
make: *** [util/term.clean] Error 127
joe@joe-dell:~/tonika/src$

That's about the process I went through too and gave up about that point :-( we had a conversation with Petar M and he said it's not worth the time installing that version anyway as he's working on a new version which is much better and will work as a program library for higher layers of applicational functionality to use. He reckons at his current work load it'll be a couple of months away --nad 15:37, 28 August 2011 (PDT)