关于在Redhat中安装gcc版本4.8.2的一些问题 [英] Some issues about installing gcc version 4.8.2 in redhat

查看:283
本文介绍了关于在Redhat中安装gcc版本4.8.2的一些问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

n为了安装用于深层学习的caffe,我需要在redhat 6.5中将gcc版本从4.4.7升级到4.8.2.

n order to install caffe,which is used for deep learing,i need to upgrade gcc version from 4.4.7 to 4.8.2 in redhat 6.5。

First run ./configure it worked,
then make -j4, it will report 
options.c:11145: error: narrowing conversion of '-0x00000000000000001' from 'int' to 'short unsigned int' inside { }
g++ -std=gnu++0x -c   -g -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include  -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace    ../../gcc/hash-table.c -o hash-table.o
g++ -std=gnu++0x -c   -g -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include  -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace    ../../gcc/file-find.c -o file-find.o
make[3]: *** [options.o] Error 1
make[3]: *** Waiting for unfinished jobs....

我搜索了google,但是找不到修复过的工具,以前谁也遇到过相同的问题?

I search google,but can't find good ways to fix it ,who has the same issues before?

推荐答案

替换原始gcc可能会导致问题.另一种方法是安装Developer Toolset,它会在原始版本的旁边安装新的gcc版本(当前版本为4.9),以避免文件冲突.从这里开始: http://developers.redhat.com/products/developertoolset/overview/

Replacing the original gcc can cause problems. The alternative is to install Developer Toolset which installs a new gcc version (currently at 4.9) along side the original to avoid file conflict. Get started here: http://developers.redhat.com/products/developertoolset/overview/

这篇关于关于在Redhat中安装gcc版本4.8.2的一些问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆