RedHat6.5安裝Gcc與Gcc-c++需要的包
来源:互联网 发布:电脑无线mac地址修改器 编辑:程序博客网 时间:2024/06/04 22:16
其實本來我是要安裝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,不知道什麽原因,不過目前問題解決了,我就先不管了,以後有時間在研究吧
- RedHat6.5安裝Gcc與Gcc-c++需要的包
- 虚拟机的redhat6安装gcc
- linux安装gcc需要的依赖包
- redhat6 GCC安装
- RHEL5.1安装gcc编译器需要的.rpm包
- GCC编译C程序需要注意文件名后缀的问题
- gcc gcc-c++/g++ rpm安装需要的文件和安装顺序
- GCC测试包的原理
- redhat6.4安装arm-linux-gcc
- gcc -c
- gcc 需要掌握的基本选项
- GCC的默认C标准
- gcc-4.6.0/gcc/gcc.c#main
- 入口 gcc-4.6.0/gcc/gcc.c
- windows 安裝 gcc 編譯器 - MinGW
- 简单的GCC语法: 弄清gcc test.c 与 gcc -c test.c 的差别
- 简单的GCC语法: 弄清gcc test.c 与 gcc -c test.c 的差别
- 简单的GCC语法: 弄清gcc test.c 与 gcc -c test.c 的差别
- mysql触发器的作用及语法
- 虚拟化三剑客专题-Hyper-V(下)
- Python项目管理
- xCode7 安装Alcatraz成功方法
- socket programming in kernel
- RedHat6.5安裝Gcc與Gcc-c++需要的包
- 虚拟化三剑客专题-Hyper-V(中)
- [AHK]给XP系统任务栏上打开的窗口定义热键
- JDBC中语句超时与事务
- D3学习:集群布局
- SQL语句 DML,DDL,DCL
- 148,第一个IOS程序
- github
- Gitflow(git工作流)