2016-04-29 7 views
0

をサポートしていない文句私がインストールされているのgcc-4.7、GCC-4.8、GCC-4.9私がやろうCUDA 7.0は、GCC 4.9

luarocks install cutorch 

が、私はエラーを取得します
In file included from /usr/include/cuda_runtime.h:59:0, 
       from <command-line>:0: 
/usr/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported! 
#error -- unsupported GNU version! gcc 4.9 and up are not supported! 

私はsimilar problem

を見つけましたしかし、私は、コマンドを実行しようとすると:

nvcc --compiler-bindir /usr/bin/gcc-4.7 

私はエラーを取得する:

nvcc fatal: No input files specified; use option --help for more information 

私は前に新しくインストールしたLinuxの日です。私は

答えて

2

インストールする前に次のコマンドを実行します。助けてください:これはGCC-4.8のためにコンパイルするためにコンパイラを設定する必要があります

export CXX=/usr/bin/g++-4.8 
export CC=/usr/bin/gcc-4.8