How to compile GCC-4.3.3 in the Linux?
来源:互联网 发布:linux显示命令运行 编辑:程序博客网 时间:2024/04/30 00:58
[How to compile GCC-4.3.3 in the Linux?]
GMP and MPFR are two essential external libs to compile GCC. If you haveinstalled them into your environment, please skip the related sectionsfollowed.
[Where to download GCC?]
Login ftp.gnu.org and find the latestversion. It is gcc-4.3.3.tar.bz2when I explore whole folder.
[Where to download GMP?]
Login www.sfr-fresh.com and find thelatest version. It is gmp-4.2.4.tar.gzwhen I explore the whole web page.
[Where to download MPFR?]
Login www.mpfr.org and find the latestversion. It is mpfr-2.4.1.tar.bz2when I explore the whole web page.
[How to install GMP?]
$ tar xvzf ./ gmp-4.2.4.tar.gz
$ cd ./ gmp-4.2.4
$ ./configure
$ make
$ make check
$ make install
$ make distclean
[How to install MPFR?]
$ tar xvjf ./mpfr-2.4.1.tar.bz2
$ cd ./ mpfr-2.4.1
$ ./configure --with-gmp=/usr/local --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib
$ make
$ make check
$ make install
$ make distclean
[How to install GCC-4.3.3?]
$ tar xvjf ./gcc-4.3.3.tar.bz2
$ cd ./ gcc-4.3.3
$ mkdir ./build
$ cd ./build
$ export LD_RUN_PATH=/usr/local/lib
$ export LD_LIBRARY_PATH=/usr/local/lib
$ mkdir –p /usr/gcc-4.3.3
$ LD_RUN_PATH=/usr/local/lib LD_LIBRARY_PATH=/usr/local/lib ../configure --prefix=/usr/gcc-4.3.3 --enable-languages=all --with-gmp=/usr/local --with-mpfr=/usr/local --enable-libgomp
$ make
$ make install
$ rm -rf *
If you fail to build GCC-4.3.3, please add exportLDFLAGS="-L/usr/local/lib -R/usr/local/lib". In myenvironment, it is unnecessary.
In normal case, your system will own twodifferent versions of GCC. If you can make full use of GCC-4.3.3, please ensurethe PREFIX path when configuring environment. For instance:
make distclean; ./configure --bindir=/usr/gcc-4.3.3/bin --libexecdir=/usr/gcc-4.3.3/libexec --datadir=/usr/gcc-4.3.3/share --libdir=/usr/gcc-4.3.3/lib --includedir=/usr/gcc-4.3.3/include --infodir=/usr/gcc-4.3.3/info --mandir=/usr/gcc-4.3.3/man --enable-optimize=-O3 --disable-debug --with-pthreads && make
The RED options are utilized to re-directto GCC-4.3.3 and do NOT the defaults of system.
Anyway, the configuration mustbe rechecked in the different environment. As a result, you had better verify themby ./configure –h or ./configure --help commands.
- How to compile GCC-4.3.3 in the Linux?
- How to compile GCC-4.3.3 in the cygwin?
- How to build the GCC-4.3.3 in MinGW?
- How to Compile the Linux Kernel
- how to compile the linux kernel
- How to compile opencore-amr in the MINGW
- How to compile opencv in
- how to compile and link static/dynamic library in linux
- how to compile and run cocos2dx in linux
- How To Compile OpenCV based programs in Linux
- How to compile VLC on Linux Platform (From the authority)
- How to compile C++ with GCC
- How to compile Linux tools
- How to generate DLL files by GCC in the MinGW?
- how to implement the WaitForMultipleObjects in linux
- How to sleep in the Linux kernel?
- How to compile OpenJPEG in MinGW?
- How to compile SDL in MINGW?
- 关于Eclipse Plugin开发 (1)
- Java代码编写的30条建议
- 求电子工业出版社 的《ASP.NET开发实战详解:入门、模块、系统(附光盘一张)》中附带的光盘内容
- 现代安防离不开智能分析
- 关于局域网的一些思考
- How to compile GCC-4.3.3 in the Linux?
- java解压zip源码
- 深入了解管理Oracle实例的相关方法
- 如何利用GridView与UpdatePanel组合实现无刷新:新增、编辑、删除、分页效果?
- 19届Jolt奖揭晓,图灵斩获颇丰
- List添加Item时, 如何去判断某个字段, 并且保证字段数据不重复性
- 多维数据库
- dropdownlist的AutoPostBack属性
- 茫然的面对实训