Difference between revisions of "Talk:Tonika"

From Organic Design wiki
(Install Tonika: compile error, stuck again)
(Install Tonika: sanity check says make is installed. WTF?)
Line 44: Line 44:
 
  joe@joe-dell:~/tonika/src$ ./all.bash
 
  joe@joe-dell:~/tonika/src$ ./all.bash
 
: ./all.bash: 2: gmake: not found
 
: ./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.
 +
----

Revision as of 22:25, 26 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.