Hi all,
When I compile the pytorch from source, I got the following errors.
/home/xxx/anaconda3/compiler_compat/ld: cannot find -lpthread
/home/xxx/anaconda3/compiler_compat/ld: cannot find -lc
My environment is like this,
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/xxx/anaconda3/lib/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/xxx/anaconda3/pkgs/cudnn-7.0.5-cuda8.0_0/lib/:$LD_LIBRARY_PATH
export LD_PRELOAD=/lib/x86_64-linux-gnu/libpthread.so.0
The gcc version is gcc version 5.2.0.
I have tried numerous ways, but still cannot solve this problem. Could anybody help me?
Thanks