Skip to content

Exemplary install log

Mettlerfreund edited this page Mar 16, 2023 · 17 revisions

how to install fade on Ubuntu 20.04.2 LTS (GNU/Linux 5.8.0-44-generic x86_64)

  • created 2021 by max

  • credits to david

install git, build-essential, octave, gawk

sudo apt install git build-essential octave octave-signal octave-general octave-control liboctave-dev gawk

set up .ocataverc:

tee -a ~/.octaverc <<EOF
# ~/.octaverc
pkg load signal
pkg load control
pkg load general
graphics_toolkit gnuplot
EOF

install FADE

clone the repository

git clone https://github.com/m-r-s/fade ~/fade

read the README

cd ~/fade
less README.md

install fade by adding its location to PATH. This step also adds the (not yet compiled, see below) binaries of the HTK-toolbox to PATH. To do so, set PATH in .profile or .bashrc so that PATH is set up correctly use an editor (e.g., vim or nano)

nano ~/.profile

add the following lines:

# set PATH so it includes FADE
[ -d "$HOME/fade" ] && PATH="$HOME/fade:$PATH"

# set PATH so it includes FADE examples
[ -d "$HOME/fade/examples" ] && PATH="$HOME/fade/examples:$PATH"

# set PATH so it includes binaries
[ -d "$HOME/fade/bin" ] && PATH="$HOME/fade/bin:$PATH"

reload profile

source ~/.profile

check if fade was added to PATH

echo $PATH

install HTK3

download tar and the checksum from htk.eng.cam.ac.uk/

  • HTK-3.5.beta-2.tar.gz

  • HTK-3.5.beta-2.tar.gz.md5

check for integrity

md5sum -c HTK-3.5.beta-2.tar.gz.md5
->HTK-3.5.beta-2.tar.gz: OK

remove any existing folder “htk/” (tar extract doesnt delete the folder befor replacing contet)

[ -d "htk" ] && rm -r htk/

extract tar file (location of your choosing, can be deleted after compilation)

tar -xzf HTK-3.5.beta-2.tar.gz

cd inside htk-folder

cd htk/

content should look like this

  • HLMTools/

  • HTKLib/

  • HTKTools/

  • LICENSE*

  • README

  • samples/

look at the the README

less README

make sure you have the dependencies

sudo apt install make gcc-multilib libx11-dev:i386

if you can not install libx11-dev:i386 enable i386 architecture

dpkg --add-architecture i386
apt-get update

compile and build HTKLib

cd HTKLib
# if you want to optimize for performance first read below
make -f MakefileCPU all
make -f MakefileCPU install

In case you want to optimize using CFLAGS, make sure makeFile is using the override directive when defining the variable CFLAGS (see www.gnu.org/software/make/manual/html_node/Override-Directive.html) and pass CFLAGS as command argument like:

make CFLAGS="-march=native -Ofast" -f MakefileCPU all

compile and build HTKToos

cd ../HTKTools
make -f MakefileCPU all
make -f MakefileCPU install

check if the binaries have been created

cd ../bin.cpu
./HVite

should start up HVite and show options

copy executables from bin.cpu to fade

mkdir ~/fade/bin
cp ./* ~/fade/bin

reload ~/.profile to make all skripts an programms in the fade directory discoverable

. ~/.profile

check if the execuatables can be found by the system (after reboot)

cd ~
HVite

should start up HVite and show options

check if FADE is up and running

from your desktop call:

fade test corpus-stimulus
complete_project.sh test

returns

.............................................................
.......lots of it............................................
.............................................................

you should find a plot in “test/figures” after the simulation is finished

do some memory tweaks

check how much RAM you have installed

free -h

check how much RAM is currently used as shared memory

df -h

make more RAM available as under /dev/shm/ (Example here 10Gb) use an editor (e.g., vim or nano)

sudo nano /etc/fstab

edit (or add if not alailable) the following lines:

none /dev/shm tmpfs defaults,size=10G 0 0

remount your /dev/shm

sudo mount /dev/shm