Tuesday, June 18, 2013

RCurl on Ubuntu 12.04+

Have you tried running R and need the RCurl package. Running this
    install.packages("RCurl")
     throws this error on my terminal

     installing *source* package ‘RCurl’ ... 
    ** package ‘RCurl’ successfully unpacked and MD5 sums checked 
    checking for curl-config... no 
    Cannot find curl-config 
    ERROR: configuration failed for package ‘RCurl’ 


    And this is how i fixed it below. 



    At the Ubuntu prompt, i run this:
      thedatafugee:~$ sudo apt-get install libcurl4-gnutls-dev
    and then proceeded to successfully install the RCurl on the R terminal and dazzit!! Fixed!!

    and this point i get all the successful installation jargon!! 

    "** R
    ** data
    ** inst
    ** preparing package for lazy loading
    Creating a generic function for ‘close’ from package ‘base’ in package ‘RCurl’
    ** help
    *** installing help indices
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded
    * DONE (RCurl)

    The downloaded source packages are in
            ‘/tmp/RtmpjhxEZZ/downloaded_packages’
    "

    No comments:

    Post a Comment

    Add any comments if it helped :)