Qs:The default gcc version in Ubuntu 10.04 LTS and 10.10 is gcc 4.4. However some programs depend on gcc 4.1.1 or gcc 4.1.2. Here’s how to install and setup gcc 4.1.3 in Ubuntu 10.04/10.10 which also works if one program need gcc 4.1.1/4.1.2 to run.
Solution:
The default gcc version in Ubuntu 10.04 LTS and 10.10 is gcc 4.4. However some programs depend on gcc 4.1.1 or gcc 4.1.2. Here’s how to install and setup gcc 4.1.3 in Ubuntu 10.04/10.10 which also works if one program need gcc 4.1.1/4.1.2 to run.
Install Gcc 4.1
gcc 4.1.3 is available default in Ubuntu 10.04/10.10 official repository, just run the command in Applications -> Accessories -> Terminal:
sudo apt-get install gcc-4.1
If you absolutely want gcc 4.1.1, refer to ubuntuforums.org.
Set gcc 4.1 as default version
After that, use this command to list installed gcc in your Ubuntu:
ls /usr/bin/gcc*
and use this command to check which is default:
gcc -v
1.) Now, add alternatives for gcc:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 40
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.1 30
run this command which lists available versions, then type a number to set default.
sudo update-alternatives --config gcc
There are 2 choices for the alternative gcc (providing /usr/bin/gcc).
Selection Path Priority Status
————————————————————
0 /usr/bin/gcc-4.4 40 auto mode
* 1 /usr/bin/gcc-4.1 30 manual mode
2 /usr/bin/gcc-4.4 40 manual mode
2.) add alternatives for g++, i486-linux-gnu-gcc, and i486-linux-gnu-g++ and set 4.1 as default:
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 40
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.1 30
update-alternatives --config g++
update-alternatives --install /usr/bin/i486-linux-gnu-gcc i486-linux-gnu-gcc /usr/bin/i486-linux-gnu-gcc-4.4 40
update-alternatives --install /usr/bin/i486-linux-gnu-gcc i486-linux-gnu-gcc /usr/bin/i486-linux-gnu-gcc-4.1 30
update-alternatives --config i486-linux-gnu-gcc
update-alternatives --install /usr/bin/i486-linux-gnu-g++ i486-linux-gnu-g++ /usr/bin/i486-linux-gnu-g++-4.4 40
update-alternatives --install /usr/bin/i486-linux-gnu-g++ i486-linux-gnu-g++ /usr/bin/i486-linux-gnu-g++-4.1 30
update-alternatives --config i486-linux-gnu-g++
Source: http://ubuntuguide.net/how-to-install-and-setup-gcc-4-1g4-1-in-ubuntu-10-0410-10
Wednesday, November 16, 2011
Eroor in installation of speech tools
Error:make[2]: *** [matrix_i_t.o] Error 1 make[1]: *** [inst_tmpl] Error 2 make: *** [base_class] Error 2
Solution: 1. gcc 4.1 should work fine. please try it if you'll have problems and
suggest a patch. Also I'd be glad if you'll find a time to checkout
speech_tools and festival from svn and try to build them:
svn checkout http://svn.berlios.de/svnroot/repos/festlang/trunk/festival
svn checkout
http://svn.berlios.de/svnroot/repos/festlang/trunk/speech_tools
They should build fine. If not, please report about problems.
Source: http://lists.berlios.de/pipermail/festlang-talk/2008-October/001213.html
Solution: 1. gcc 4.1 should work fine. please try it if you'll have problems and
suggest a patch. Also I'd be glad if you'll find a time to checkout
speech_tools and festival from svn and try to build them:
svn checkout http://svn.berlios.de/svnroot/repos/festlang/trunk/festival
svn checkout
http://svn.berlios.de/svnroot/repos/festlang/trunk/speech_tools
They should build fine. If not, please report about problems.
Source: http://lists.berlios.de/pipermail/festlang-talk/2008-October/001213.html
Monday, October 24, 2011
Tuesday, June 21, 2011
Audio::Wav - A modules for manipulating WAV Audio files
Audio::Wav is a collection of Perl modules that provide mechanisms to read, parse and write uncompressed Microsoft WAV audio files. It is a Pure Perl module, so it is extremely portable at the cost of performance.
How to install:
sudo apt-get install libaudio-wav-perl
or,
download the deb package from following link
http://packages.debian.org/unstable/perl/libaudio-wav-perl
How to install:
sudo apt-get install libaudio-wav-perl
or,
download the deb package from following link
http://packages.debian.org/unstable/perl/libaudio-wav-perl
Friday, April 29, 2011
Error:: Linux: can't open /dev/dsp
Go to your home directory and open the .festivalrc (if it is not there, just create it)
$cd
$sudo gedit .festivalrc
add the following line in this file and save:
$cd
$sudo gedit .festivalrc
add the following line in this file and save:
(Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE")
(Parameter.set 'Audio_Method 'Audio_Command)
Monday, April 18, 2011
Installing gnome speech in ubuntu
The first step in rebuilding gnome-speech is to make sure you've set up your build environment. obtain the source. The most up to date, official release can always be found here: ftp://ftp.gnome.org/pub/GNOME/sources/gnome-speech/
At the time of this writing, the latest version is 0.4.7; However, as updates occur with relative frequency, it is a good idea to always confirm that you are getting the most current release before downloading. After downloading, extract the archive with a command similar to the following:
tar -xvf gnome-speech-0.4.7.tar.gz
apt-get build-dep gnome-speech
cd gnome-speech
./configure --prefix=/usr
make install
Errors:
1.checking for ORBIT... configure: error: Package requirements (ORBit-2.0 >= 2.3.94) were not met:
No package 'ORBit-2.0' found
Solution:You are supposed to install packages ending in dev for compiling so try installing liborbit2-dev and configure should stop complaining about orbit not found.
2.checking for gnome_speech... configure: error: Package requirements (bonobo-activation-2.0 >= 0.9.1 libbonobo-2.0 >= 1.97.0 ORBit-2.0 >= 2.3.94 gobject-2.0) were not met:
No package 'bonobo-activation-2.0' found
No package 'libbonobo-2.0' found
Solution: try installing libbonoboui2-dev from synaptic package manager
At the time of this writing, the latest version is 0.4.7; However, as updates occur with relative frequency, it is a good idea to always confirm that you are getting the most current release before downloading. After downloading, extract the archive with a command similar to the following:
tar -xvf gnome-speech-0.4.7.tar.gz
apt-get build-dep gnome-speech
cd gnome-speech
./configure --prefix=/usr
make install
Errors:
1.checking for ORBIT... configure: error: Package requirements (ORBit-2.0 >= 2.3.94) were not met:
No package 'ORBit-2.0' found
Solution:You are supposed to install packages ending in dev for compiling so try installing liborbit2-dev and configure should stop complaining about orbit not found.
2.checking for gnome_speech... configure: error: Package requirements (bonobo-activation-2.0 >= 0.9.1 libbonobo-2.0 >= 1.97.0 ORBit-2.0 >= 2.3.94 gobject-2.0) were not met:
No package 'bonobo-activation-2.0' found
No package 'libbonobo-2.0' found
Solution: try installing libbonoboui2-dev from synaptic package manager
can't open /dev/dsp
If festival returns the following error message:
Linux: can't open /dev/dsp
Switch to ALSA output by adding these lines to the end of your .festivalrc file, or to /usr/share/festival/festival.scm (source):
(Parameter.set 'Audio_Method 'Audio_Command)
(Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE")
Linux: can't open /dev/dsp
Switch to ALSA output by adding these lines to the end of your .festivalrc file, or to /usr/share/festival/festival.scm (source):
(Parameter.set 'Audio_Method 'Audio_Command)
(Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE")
Wednesday, April 6, 2011
Friday, March 18, 2011
How to enable festival in orca?
Go in Orca Preferences --> Speech tab and change the "Speech System" to 'GNOME Speech Services' After that, you can change the "Speech synthesizer" to Festival.
But some times you do not get 'GNOME Speech Services' option in "Speech System" for that install
libgnome-speech7 :
$ sudo apt-get install libgnome-speech7
Note: You may get following error
E: crossplatformui: subprocess installed post-installation script returned error exit status 1
Solution: Ignore the error. Festival will work
More about it in this thread:
https://answers.launchpad.net/ubuntu/+question/113136
It means only that "crossplatformui" is not managed by Ubuntu distro team, and that you have to check by yourself if current version is compatible with Lucid.
The risk applies only to "crossplatformui".
You have also to check in Synaptic is deposit for this package is always active.
Note: "crossplatformui" is a Reliance net connect usb driver.
But some times you do not get 'GNOME Speech Services' option in "Speech System" for that install
libgnome-speech7 :
$ sudo apt-get install libgnome-speech7
Note: You may get following error
E: crossplatformui: subprocess installed post-installation script returned error exit status 1
Solution: Ignore the error. Festival will work
More about it in this thread:
https://answers.launchpad.net/ubuntu/+question/113136
It means only that "crossplatformui" is not managed by Ubuntu distro team, and that you have to check by yourself if current version is compatible with Lucid.
The risk applies only to "crossplatformui".
You have also to check in Synaptic is deposit for this package is always active.
Note: "crossplatformui" is a Reliance net connect usb driver.
Subscribe to:
Posts (Atom)