This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Installation of RCurl Setting LC_CTYPE failed, using "C" Error in dyn.load(file, DLLpath = DLLpath, ...) :

When I tried to install the "RCurl" for my R using biocLite("RCurl"),

During startup - Warning message:
Setting LC_CTYPE failed, using "C" 
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/misc/u32/huang/R/lib64/R/library/RCurl/libs/RCurl.so':
  libcurl.so.4: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing '/misc/u32/huang/R/lib64/R/library/RCurl'

> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] BiocInstaller_1.16.5

loaded via a namespace (and not attached):
[1] tools_3.1.3

Could anyone figure out what went wrong?

If any further information are needed, please let me know.

Thanks!

r

1 answer

Are you using windows, or unix based OS? If unix based, check if you have libcurl-devel installed. For example, in Ubuntu open a command line and type:

sudo apt-get install libcurl-devel

Afterwards try installing RCurl from bioconductor again.

Dear Ebrown1955,

Thanks very much for you quick reply.

Sorry that I am sort of illiterate in terms of programming

Since the sessionInfo() suggested that

From Platform: x86_64-unknown-linux-gnu (64-bit)

I guess I am using unix based OS.

and I tried your suggestion:

-bash-3.2$ sudo apt-get install libcurl-devel

then I got:

[sudo] password for huang: #huang is my username

after I input my password:

sudo: apt-get: command not found

Could you tell what went wrong from that? Thanks very much.

Jun

Looks like you aren't using Ubuntu. Try:

sudo yum install libcurl-devel

It seems that I do not have the permission in the system to use the command:

-bash-3.2$ sudo yum install libcurl-devel
[sudo] password for huang: 
Sorry, user huang is not allowed to execute '/usr/bin/yum install libcurl-devel' as root on sysimm.

Is there another way to achieve the same goal?

Log in to answer this question.