有许多朋友在Ubuntu下不能成功编译安装GCC4.3.2,编译时经常会碰到了一些错误。下面摘记下Ubuntu社区simonwolf的成功经验,或许对大家有所帮助。a.下载源代码b.解压c.查看里面的INSTALL文件夹, 里面有一些关于安装的帮助信息--下面描述两个必要的组件GMP, GPFR
Installing GMP method1:
sudo apt-get install m4method2:------recommended
download the src.
unzip.
--to the following steps, please look into the INSTALL file in the source.
./configure
make
make check
make install: the default target path is /usr/local
Installing GPFR
download the src.
unzip.
--to the following steps, please look into the INSTALL file in the source.
./configure
make
make check
make install: the default target path is /usr/local------
from the prerequisities of gcc. you may be need to install gawk (sudp apt-get install gawk )too.d.configure进行注册假设加压后的源代码目录是 gcc-4.3.2
这个目录下还有不少别的目录 比如INSTALL, gcc, ...
进入这个目录,执行如下操作(可能需要管理员权限,即加sudo )% mkdir objdir
% cd objdir
sudo ./../configure --enable-languages=c,c++
--prefix=/usr/local/gcc-4.3.2 --enable-shared --with-system-zlib
--without-included-gettext --enable-threads=posix --enable-nls
--enable-libstdcxx-debug --enable-mpfr --enable-targets=all
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu --disable-multilib
国产Linux操作系统有哪些在Vista和Fedora 9中再安装openSUSE 11三系统方法相关资讯 gcc Ubuntu教程
- gcc: error trying to exec " (今 06:25)
- GCC 6.1带来新的C++17特性、完全支 (05月06日)
- Linux环境下使用GCC编译,GDB反汇 (03月30日)
| - 用GCC进行程序的编译 (06月14日)
- GNU编译器套件GCC 6.1发布 默认使 (04月28日)
- 让GCC支持成员函数模板的trick (03月10日)
|
本文评论 查看全部评论 (0)