Skip to content
Advertisement

x86_64-conda_cos6-linux-gnu-ld: cannot find -lc

I cannot install most of new packages in R, because of the following error:

x86_64-conda_cos6-linux-gnu-ld: cannot find -lc.

in some cases it is cannot find

x86_64-conda_cos6-linux-gnu-ld: cannot find -lm

Based on this post, the -l option is for linking dynamic libraries. This post suggests sudo yum install glibc-static. But, I have no administration permission.

Any help is highly appreciated.

Advertisement

Answer

Many thanks to Knud Larsen. I did

ln -s /lib64/libc-2.17.so /..../lib/R/lib/libc.so 

and

ln -s /lib64/libm-2.17.so /...../lib/R/lib/libm.so

Now it works.

Advertisement