ncarchedi / swirl_OLD

We've moved! See README below for more info.
http://swirlstats.com
47 stars 28 forks source link

**I can't get swirl installed, help! pls.** #4

Closed Txellenne closed 10 years ago

Txellenne commented 10 years ago

Hi, group! I've just read about swirl and found it so interesting. I tried it with, following guidelines at swirl web site but unsuccessful. This what I got instead:

> Error in library("devtools") : there is no package called ‘devtools’

PD. as further info, I opted for CRAN mirrors in UK, London & Bristol with the same issue, see below the output I got, just in case someone would know to give me a clue and sort it out.. Thanks! Txe

> install.packages("devtools")
Installing package into ‘/home/txe/R/i686-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’

trying URL 'http://www.stats.bris.ac.uk/R/src/contrib/httr_0.2.tar.gz'
Content type 'application/x-gzip' length 50183 bytes (49 Kb)
opened URL
==================================================
downloaded 49 Kb

trying URL 'http://www.stats.bris.ac.uk/R/src/contrib/RCurl_1.95-4.1.tar.gz'
Content type 'application/x-gzip' length 870915 bytes (850 Kb)
opened URL
==================================================
downloaded 850 Kb

trying URL 'http://www.stats.bris.ac.uk/R/src/contrib/devtools_1.3.tar.gz'
Content type 'application/x-gzip' length 114381 bytes (111 Kb)
opened URL
==================================================
downloaded 111 Kb

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

The downloaded source packages are in
    ‘/tmp/RtmpR3Ff7I/downloaded_packages’
Warning messages:
1: In install.packages("devtools") :
  installation of package ‘RCurl’ had non-zero exit status
2: In install.packages("devtools") :
  installation of package ‘httr’ had non-zero exit status
3: In install.packages("devtools") :
  installation of package ‘devtools’ had non-zero exit status
ncarchedi commented 10 years ago

This is strange. I'm not sure why the 'devtools' package is not installing correctly. I generally recommend using the 'RStudio' mirror for installing packages. It should automatically reroute you to the the optimal server. Please let me if it still does not work for you.

Txellenne commented 10 years ago

Hi, Thanks for your reply. I thought the same thing and tried it but same results. :( I have just read somewhere it's to do with curl-config (not in the path or not installed) so I tried with the locate command, just to check out it in my sys, this what I got

[root@Txarly txe]# locate libcurl
/opt/lampp/lib/libcurl.so
/opt/lampp/lib/libcurl.so.4
/opt/lampp/lib/libcurl.so.4.1.1
/opt/lampp/lib/libcurl.so.4.2.0
/opt/lampp/lib/pkgconfig/libcurl.pc
/usr/lib/libcurl.so.4
/usr/lib/libcurl.so.4.2.0
/var/cache/abrt-di/usr/lib/debug/usr/lib/libcurl.so.4.2.0.debug
/var/cache/abrt-di/usr/lib/debug/usr/lib/libcurl.so.4.debug
/var/cache/abrt-di/usr/lib/debug/usr/lib/libcurl.so.debug
[root@Txarly txe]# locate curl-config
/opt/lampp/bin/curl-config
[root@Txarly txe]# 
ncarchedi commented 10 years ago

I would really love to help, but unfortunately this issue is beyond my expertise. You might also search around on Stack Overflow. I'm usually able to find answers to just about any question on there. Please let me know if you find a solution to your problem so that I can advise others accordingly.

Sincerely, Nick

On Sun, Sep 29, 2013 at 2:35 PM, Txellenne notifications@github.com wrote:

Hi, Thanks for your reply. I thought the same thing and tried it bu same results. :( I have just read somewhere http://www.omegahat.org/RCurl/FAQ.html it's to do with curl-config (not in the path or not installed) so I tried with the locate command, just to check out it in my sys, this what I got

[root@Txarly txe]# locate libcurl /opt/lampp/lib/libcurl.so /opt/lampp/lib/libcurl.so.4 /opt/lampp/lib/libcurl.so.4.1.1 /opt/lampp/lib/libcurl.so.4.2.0 /opt/lampp/lib/pkgconfig/libcurl.pc /usr/lib/libcurl.so.4 /usr/lib/libcurl.so.4.2.0 /var/cache/abrt-di/usr/lib/debug/usr/lib/libcurl.so.4.2.0.debug /var/cache/abrt-di/usr/lib/debug/usr/lib/libcurl.so.4.debug /var/cache/abrt-di/usr/lib/debug/usr/lib/libcurl.so.debug

[root@Txarly txe]# locate curl-config /opt/lampp/bin/curl-config [root@Txarly txe]#

— Reply to this email directly or view it on GitHubhttps://github.com/ncarchedi/swirl/issues/4#issuecomment-25325945 .

Nicholas A. Carchedi ScM Student, Biostatistics Johns Hopkins Bloomberg School of Public Health 301.802.0573 | nick.carchedi@gmail.com

Txellenne commented 10 years ago

Hi, I got it working now!!! :+1: This is what I did: 1. As I found that I had to have the curl-devel package installed (see the reading above attached), I explored in my packages manager for the package's name in my distro (I run on fedora-18)--> (Development files for curlpp/-->curlpp-devel-0.73-9.fc18(32-bit)) and installed it. 2. That done I followed your guidelines again and chose the O-cloud mirror (the first one in the list, I did this from command line) 3. That's it. The installation process ran smoothly!! Thank you very much!!! Txe

ncarchedi commented 10 years ago

That's fantastic. Thanks for the update.

On Sun, Sep 29, 2013 at 3:26 PM, Txellenne notifications@github.com wrote:

Hi, I got it working now!!! :+1: This is what I did: 1. As I found that I had to have the curl-devel package installed (see the reading above attached), I explored in my packages manager for the package's name in my distro (I run on fedora-18)--> (Development files for curlpp/-->curlpp-devel-0.73-9.fc18(32-bit)) and installed it. 2. That done I followed your guidelines again and chose the O-cloud mirror (the first one in the list, I did this from command line) 3. That's it. The installation process ran smoothly!! Thank you very much!!!

Txe

Reply to this email directly or view it on GitHub: https://github.com/ncarchedi/swirl/issues/4#issuecomment-25327122