gcc安装 error: cannot compute suffix of object files: cannot compile
来源:互联网 发布:anaconda 改成python 2 编辑:程序博客网 时间:2024/04/27 14:11
原文地址:http://dtbuluo.com/blog/archives/383
CentOS 6.5下安装gcc-4.7.0 make的时候提示以下错误:
configure: error: cannot compute suffix of object files: cannot compile
参见文章:http://dtbuluo.com/blog/archives/381
解决办法是:
在/etc/profile里面加上以下内容:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpc-0.9/lib:/usr/local/gmp-5.0.1/lib:/usr/local/mpfr-3.1.0/lib
1
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
/usr/local/mpc-0
.9
/lib
:
/usr/local/gmp-5
.0.1
/lib
:
/usr/local/mpfr-3
.1.0
/lib
如图:
1
source
/etc/profile
重新加载配置文件。
0 0
- gcc安装 error: cannot compute suffix of object files: cannot compile
- configure: error: cannot compute suffix of object files: cannot compile
- openCV program compile error “libopencv_core.so.2.4: cannot open shared object file: No such file or
- linux下面安装PHP时,提示:configure: error: Cannot find MySQL header files
- ERROR: cannot find MySQL include files 安装 coreseek-3.2.14 遇到的问题及解决
- Error!]the type java.lang.object cannot be resolved. it is indirectly referenced from required .class files
- Eclipse error: The type java.lang.Object cannot be resolved. It is indirectly referenced from the required .class files
- cannot allocate an object of abstract type
- PHP Fatal error: Cannot use object of type stdClass as array in错误
- C++编译错误 error:cannot allocate an object of abstract type
- PHP Fatal error: Cannot use object of type 报错解决之
- JNI DETECTED ERROR IN APPLICATION: cannot assign object of type 'xxxxx'
- php错误 Fatal error: Cannot use object of type stdClass as array in……
- Latex error:cannot determine size of graphic
- ROS<ERROR: cannot launch node of type>
- php5 ./configure error: Cannot find MySQL header files
- idea报错Cannot compile Groovy files: no Groovy library is defined for module X'X
- idea报错Cannot compile Groovy files: no Groovy library is defined for module 'xx'
- 十分钟入门 Python
- cvc-complex-type.2.3: Element 'dependency' cannot have character [children], because the type's cont
- 第五章--读取文件的各种姿势
- CSS3 之媒体查询Media Query
- 总结23中设计模式应用场景
- gcc安装 error: cannot compute suffix of object files: cannot compile
- 每日一省————链表之栈的简单实现
- vim窗口的一些命令
- 【leetcode】String——Palindrome Pairs(336)
- 插入排序
- 递归的定义以及递归的示例(计算阶乘、计算斐波那契数、递归二分查找、回文串递归方法解决、汉诺塔问题、递归选择排序问题)
- kafka笔记
- BZOJ1272: [BeiJingWc2008]Gate Of Babylon
- objective-c 中new与alloc/init的区别