在编译ruby1.8.6时运行 ./configure --prefix=/opt/ruby出错
checking for C compiler default output file name... configure: error: C compiler cannot create executables
上网查了一下,有两种解决方案:
http://blog.chinaunix.net/u1/40952/showart_327975.html
http://blog.csdn.net/sxhong/archive/2006/05/16/740572.aspx
也就是用
apt-get install g++
和
apt-get install gcc libc6-dev
我试了后一种,成功了,前一种没来得及试。
checking for C compiler default output file name... configure: error: C compiler cannot create executables
上网查了一下,有两种解决方案:
http://blog.chinaunix.net/u1/40952/showart_327975.html
http://blog.csdn.net/sxhong/archive/2006/05/16/740572.aspx
也就是用
apt-get install g++
和
apt-get install gcc libc6-dev
我试了后一种,成功了,前一种没来得及试。
本文介绍了在编译Ruby 1.8.6过程中遇到的./configure --prefix=/opt/ruby配置错误,并提供了两种解决方案,一种是安装g++,另一种是安装gcclibc6-dev,最终采用第二种方案解决了问题。
5万+

被折叠的 条评论
为什么被折叠?



