swirldev / swirl

:cyclone: Learn R, in R.
http://swirlstats.com
Other
1.13k stars 593 forks source link

Error installing swirl on Linux #122

Closed hvillac closed 10 years ago

hvillac commented 10 years ago

Running R 3.0.2 on RHEL 6.4 - install.packages("swirl") gives me this:

install.packages("swirl") Installing package into ‘/home/hvilla/R/x86_64-redhat-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- also installing the dependencies ‘httr’, ‘RCurl’ and then after some other messages that look good

  • 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’
  • removing ‘/home/hvilla/R/x86_64-redhat-linux-gnu-library/3.0/RCurl’ ERROR: dependency ‘RCurl’ is not available for package ‘httr’
  • removing ‘/home/hvilla/R/x86_64-redhat-linux-gnu-library/3.0/httr’ ERROR: dependencies ‘httr’, ‘RCurl’ are not available for package ‘swirl’
  • removing ‘/home/hvilla/R/x86_64-redhat-linux-gnu-library/3.0/swirl’

The downloaded source packages are in ‘/tmp/RtmpNhKkxg/downloaded_packages’

How can I overcome this?

ncarchedi commented 10 years ago

@WilCrofter Would you mind chiming in on this when you have a chance?

WilCrofter commented 10 years ago

You may need to install libcurl4-openssl-dev

On ubuntu: sudo apt-get install libcurl4-openssl-dev

I imagine you use yum on RHEL. Reposting ubuntu & mint setup below. Debian should be similar.

WilCrofter commented 10 years ago
ncarchedi commented 10 years ago

Assuming this solved @hvillac's problem. Closing the issue now.