Como instalar o gcc-4.4 no Ubuntu 16.04 [duplicado]

3

Eu vou compilar o benchmark Rodinia no simulador Gem5-gpu, quando eu fizer isso reclamar para o gcc-4.4 e me der o seguinte erro:

make gem5-fusion
make -f Makefile.gem5-fusion
make[1]: Entering directory '/home/hodjat91/Desktop/gem5-gpu/benchmarks/rodinia/backprop'
gcc-4.4 -DOUTPUT -O3 -I../../../gem5/util/m5 -I../../libcuda  -I/usr/local/cuda//include -I/home/hodjat91/NVIDIA_GPU_Computing_SDK/C/common/inc/ -L/home/hodjat91/NVIDIA_GPU_Computing_SDK/C/lib -g -c facetrain.c -o facetrain.c_o
make[1]: gcc-4.4: Command not found
../common/common.mk:139: recipe for target 'facetrain.c_o' failed
make[1]: *** [facetrain.c_o] Error 127
make[1]: Leaving directory '/home/hodjat91/Desktop/gem5-gpu/benchmarks/rodinia/backprop'
Makefile:8: recipe for target 'gem5-fusion' failed
make: *** [gem5-fusion] Error 2

Eu tenho o gcc 5.3 no meu sistema.

Obrigado

    
por Hodjat Asghari Esfeden 20.06.2016 / 06:32

1 resposta

4

Obtendo g ++ - 4.4 / gcc-4.4: gedit /etc/apt/sources.list

Adicione duas novas linhas ao arquivo:

deb [URL] trusty main universe
deb [URL] trusty-updates main universe

Meu exemplo:

deb http://dk.archive.ubuntu.com/ubuntu/ trusty main universe
deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates main universe

Execute sudo apt-get update e você pode instalar o gcc-4.4: sudo apt-get install g++-4.4

por Knud Larsen 20.06.2016 / 12:43