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
Subscribe to:
Posts (Atom)