RedHat6.5安裝Gcc與Gcc-c++需要的包
2015-12-27 11:46
543 查看
其實本來我是要安裝OSDB測試數據庫的,但是config的時候報了以下錯誤:
[root@bogon OSDB-CPP]# ./configure
(中間沒甚麽用,就省略掉了)
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/home/weixin/Desktop/OSDB-CPP':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
網上搜索configure: error: C++ compiler cannot create executables有人建議重裝gcc,反正系統也是剛裝的,就試著重裝一下吧
然後就是搜索到安裝gcc需要安裝的包(這是我從百度文庫搜索到的):
順序不能亂:
rpm -ivh glibc-common-2.12-1.47.el6.x86_64.rpm
rpm -ivh kernel-headers-2.6.32-220.el6.x86_64.rpm
rpm -ivh libgcc-4.4.6-3.el6.x86_64.rpm
rpm -ivh glibc-2.12-1.47.el6.x86_64.rpm
rpm -ivh libgomp-4.4.6-3.el6.x86_64.rpm
rpm -ivh nscd-2.12-1.47.el6.x86_64.rpm
rpm -ivh glibc-headers-2.12-1.47.el6.x86_64.rpm
rpm -ivh glibc-devel-2.12-1.47.el6.x86_64.rpm
rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
rpm -ivh cpp-4.4.6-3.el6.x86_64.rpm
rpm -ivh gcc-4.4.6-3.el6.x86_64.rpm
然後是gcc-c++的包:
rpm -ivh libstdc++-4.4.6-3.el6.x86_64.rpm
rpm -ivh libstdc++-devel-4.4.6-3.el6.x86_64
rpm -ivh gcc-c++-4.4.6-3.el6.x86_64.rpm
我先把GCC重裝一遍,但是沒有解決我安裝工具出現的錯誤,然後我又安裝gcc-c++,結果問題解決了
看來出現configure: error: C++ compiler cannot create executables這個問題,可以撞下gcc-c++
網上也有人說執行
sh export LIBS=
sh export CFLAGS=
這兩句話,不過我的系統報No such file or directory,不知道什麽原因,不過目前問題解決了,我就先不管了,以後有時間在研究吧
[root@bogon OSDB-CPP]# ./configure
(中間沒甚麽用,就省略掉了)
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/home/weixin/Desktop/OSDB-CPP':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
網上搜索configure: error: C++ compiler cannot create executables有人建議重裝gcc,反正系統也是剛裝的,就試著重裝一下吧
然後就是搜索到安裝gcc需要安裝的包(這是我從百度文庫搜索到的):
順序不能亂:
rpm -ivh glibc-common-2.12-1.47.el6.x86_64.rpm
rpm -ivh kernel-headers-2.6.32-220.el6.x86_64.rpm
rpm -ivh libgcc-4.4.6-3.el6.x86_64.rpm
rpm -ivh glibc-2.12-1.47.el6.x86_64.rpm
rpm -ivh libgomp-4.4.6-3.el6.x86_64.rpm
rpm -ivh nscd-2.12-1.47.el6.x86_64.rpm
rpm -ivh glibc-headers-2.12-1.47.el6.x86_64.rpm
rpm -ivh glibc-devel-2.12-1.47.el6.x86_64.rpm
rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
rpm -ivh cpp-4.4.6-3.el6.x86_64.rpm
rpm -ivh gcc-4.4.6-3.el6.x86_64.rpm
然後是gcc-c++的包:
rpm -ivh libstdc++-4.4.6-3.el6.x86_64.rpm
rpm -ivh libstdc++-devel-4.4.6-3.el6.x86_64
rpm -ivh gcc-c++-4.4.6-3.el6.x86_64.rpm
我先把GCC重裝一遍,但是沒有解決我安裝工具出現的錯誤,然後我又安裝gcc-c++,結果問題解決了
看來出現configure: error: C++ compiler cannot create executables這個問題,可以撞下gcc-c++
網上也有人說執行
sh export LIBS=
sh export CFLAGS=
這兩句話,不過我的系統報No such file or directory,不知道什麽原因,不過目前問題解決了,我就先不管了,以後有時間在研究吧
相关文章推荐
- 在Windows平台下使用安装GCC(图)
- linux使用gcc编译c语言共享库步骤
- C/C++编译器GCC下的常用编译命令总结
- GCC 编译c程序的方法及过程解析
- Glusterfs的编译选项 #pragma GCC poison system popen
- 【笔记】CentOS上源码安装GCC 4.8.2
- 【笔记】CentOS
- RHEL 4.7 (64bit) 环境安装 GCC 4.6 测试记录 (更新至gcc-4.6.1)
- GCC 5 即将发布
- [转载]Visual Studio, GCC, Clang, Intel 对 C++11 特性的支持一览表
- C++爱好者博客
- gcc工具的运用
- gdb的运用
- GCC内联汇编(1)Get started
- GCC内嵌汇编
- g++编译 参数 .
- RHEL5.3 gcc rpm包安装
- linux GCC 64位编程技巧
- linux gcc 区分32位或64位编译