Error when installing from source: cannot find -lpthread, -lc

I followed the installation instructions in the website one by one, and I met the error in the final step: python install

Here is the last lines of the error message:

/home/zephyr/anaconda3/compiler_compat/ld: cannot find -lpthread
/home/zephyr/anaconda3/compiler_compat/ld: cannot find -lc
collect2: error: ld returned 1 exit status
error: command ‘gcc’ failed with exit status 1

So is there anyone who has similar experience before? Or what could I do to solve this problem?
Thanks for all the reply!