Thursday, January 26, 2017

torch installation error : cannot find -lgfortran

Error:
usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
Makefile:133: recipe for target '../libopenblas_sandybridgep-r0.2.20.dev.so' failed
make[1]: *** [../libopenblas_sandybridgep-r0.2.20.dev.so] Error 1
make[1]: Leaving directory '/home/vijayraj/OpenBLAS/exports'
Makefile:85: recipe for target 'shared' failed
make: *** [shared] Error 2

Solution:
This is due to mismatch of gcc and gfortran version. Use  gcc 5 and gfortran 5 for compiling.

No comments:

Post a Comment