Monday, March 24, 2014

Unable to run a 32-bit program on 64-bit machine

Qs. I compiled a small "hello world" C program on Ubuntu 10.04 32 bit machine. Then I put the executable(a.out) on Ubuntu 12.10(64 bit) VMWare virtual machine and tried to execute it(./a.out). The OS does not identify the file and says 'No such file or directory'. But when I put the same executable on a Ubuntu 12.10(64 bit) running on a 64 bit laptop, it runs fine and I get the desired output. The VM is running on IBM Blade Servers. I wanted to know why the results for a VM?

Ans:
The message No such file or directory does not refer to your executable file: a.out. Instead it refers to a helper program that's needed to run the 32 bit dynamically linked executable a.out.

Source: http://askubuntu.com/questions/351827/unable-to-run-a-32-bit-program-on-64-bit-vm

Thursday, March 20, 2014

Error Wavesurfer: "Unable to open mixer /dev/mixer" or or “Could not gain access to /dev/sound/dsp "


If you get an error in terminal saying "Unable to open mixer /dev/mixer" or "Could not gain access to /dev/sound/dsp for writing.". You can resolve this problem by installing "libsnack2-alsa" package. If you are trying to install "libsnack2-alsa" package "wavesurfer" is going to uninstall, if wavesurfer is already installed.


source: http://www.lessons4you.info/solved-unable-to-open-mixer-devmixer/

Monday, March 3, 2014

Error while building flite : find_sts: usage: find_sts OPTIONS Find sts from lpc and waveform

$ ./bin/build_flite sts
Error:
/home/boss/tts_install/flite_odia/flite-1.5-beta/bin/find_sts: 
usage: find_sts OPTIONS
Find sts from lpc and waveform
-codec <string>    ulaw (default), g721, g721vuv, vuv
-vuv <string>      v/uv track (for some codecs)
-lpcmin <float>    minimum LPC value
-lpcrange <float>  range of LPC values
-lpc <string>      LPC track file
-wave <string>     WAVE file
-o <string>        STS output file

Solution: This error comes when we customize the the cst_tokenstream.c file (inside $FLITEDIR/src/utils directory) to suit our need. To resolve this issue put original  cst_tokenstream.c run the make command inside $FLITEDIR/src/utils  directory. GO to $FLITEDIR directory, run make command here also.  now run sts command.

After runninng idx and voxdata command, replace cst_tokenstream.c with customized one, run the make command inside directory. GO to $FLITEDIR directory, run make command here also.  Now, proceed further

Sunday, October 13, 2013

How to install htk on 64 bit machine

before running ./configure, make, sudo make install run the following command:
$linux32 bash
now run
$./configure
$make
$sudo make install

How to find machine is 32 bit or 64 bit:
use following command
$uname -a

it will result output like:
Linux dubhashi 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 i686 i686 i386 GNU/Linux
 
here x86_64  indicates that machine is 64 bit


Tuesday, October 1, 2013

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

Error:
$home/../htk$ make
(cd HTKLib && make HTKLib.a) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory `/home/elektronik/Namizje/htk/HTKLib'
gcc -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o HGraf.o HGraf.c
In file included from /usr/include/features.h:378,
from /usr/include/stdio.h:28,
from HShell.h:40,
from HGraf.c:54:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[1]: *** [HGraf.o] Error 1
make[1]: Leaving directory `/home/elektronik/Namizje/htk/HTKLib'
make: *** [HTKLib/HTKLib.a] Error 1

Solution:
If you try to install HTK on 64 bits machine, you might get some fatale error like "/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory". Because by default, it try to compile it on 32 bits machine. So you need to install gcc and g++ for 32 bits machine.

On fedora/CentOS:

yum install glibc-devel.i686

On Ubuntu: install the following pakages

g++-multilib
gcc-multilib

2. Personally, when i do "make all" on my machine (fedora 15), I get another fatal error "HGraf.c:73:77: fatal error: X11/Xlib.h: No such file or directory". So I need to install "libX11-devel" by by doing "yum install libX11-devel".


Source: http://quotidianlinux.wordpress.com/2012/01/20/htk-fatal-error/


Wednesday, June 26, 2013