在Ubuntu-16.04上从源代码安装gcc-4.8.1 [英] install gcc-4.8.1 from source code on Ubuntu-16.04
问题描述
我试图在Ubuntu-16.04上安装gcc-5.4.1,并且已经安装了gcc-5.4.0。但是,在编译gcc源代码时,会发生以下错误:
msgfmt:// gcc_install / build / x86_64-linux- gnu / libstdc ++ - v3 / src / .libs / libstdc ++。so.6:版本'CXXABI_1.3.8'找不到(需要/usr/lib/x86_64-linux-gnu/libicuuc.so.55)
我使用Google搜索,但找不到任何有用的信息。任何人都可以给我一些建议来处理这个问题。谢谢!
另外,是否有任何安装sudo apt install的gcc-4.8.1。我尝试了这一点,但是这给了我最新版本的gcc-4.8.5,这不是我所需要的。
gcc-4.8.1:对于Ubuntu 16.04,我认为没有简单的解决方法。
但gcc -4.8.1使用Ubuntu 14.04 - 64构建。
cd build-gcc481 /
.. /gcc-4.8.1/configure --prefix = / usr / local / gcc481 --program-suffix = 481 --enable-clocale = gnu --enable-shared --enable-threads = posix --enable -__ cxa_atexit - -enable-languages = c,c ++ --disable-multilib --disable-libstdcxx -pch
结果: gcc48-c ++ _ 4.8.1-ubuntu14_amd64.deb
https://drive.google.com/file/d/0B7S255p3kFXNV3ZFR2JNRXE2b1k/view?usp=sharing ...提供/ usr / local / bin / {gcc48,g + 48}
该软件包在Ubuntu 16.04中安装OK,新编译器运行良好。
I am trying to install gcc-4.8.1 from source code on Ubuntu-16.04 with gcc-5.4.0 already installed. However, when compiling the gcc source code, the following error occurs:
msgfmt: //gcc_install/build/x86_64-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libicuuc.so.55)
I googled but I can't find anything helpful. Can anyone give me some advice to handle this problem. Thanks!
Also, is there any to install gcc-4.8.1 with "sudo apt install". I tried this, but this got me the newest version of gcc-4.8.5, which is not what I need.
gcc-4.8.1 : No easy workarounds for Ubuntu 16.04, I think.
But gcc-4.8.1 builds OK with Ubuntu 14.04 - 64 ....
cd build-gcc481/
../gcc-4.8.1/configure --prefix=/usr/local/gcc481 --program-suffix=481 --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch
Result : gcc48-c++_4.8.1-ubuntu14_amd64.deb
https://drive.google.com/file/d/0B7S255p3kFXNV3ZFR2JNRXE2b1k/view?usp=sharing ... Provides /usr/local/bin/{gcc48, g++48}
The package installs OK into Ubuntu 16.04, and the new compilers are working perfectly.
这篇关于在Ubuntu-16.04上从源代码安装gcc-4.8.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!