On 30/04/2015 3:20 PM, Anirudh Jayaraman wrote: > In that case, it seems that *libcurl* is not available for R-3.2.0 as I > get a message for > > *>* *install.packages("libcurl")*
It's not an R package, it's a library that you'll need on your system. > > package ‘libcurl’ is not available (for R version 3.2.0) > > Or if on Terminal I run > > *sudo apt-get install libcurl4-openssl-dev* > > Package libcurl4-openssl-dev is not available, but is referred to by > another package. > This may mean that the package is missing, has been obsoleted, or > is only available from another source That sounds like a problem you'll need to ask about on an Ubuntu forum, not R-help. Once you get the library installed so that the curl-config command works for you (outside of R), you should be able to install the RCurl package in R. Duncan Murdoch > > > *________________________________________________________* > *Anirudh Jayaraman* > M.Sc Economics (2014-16) > Indira Gandhi Institute of Development Research (IGIDR), Mumbai > Ph No: +91 9560476729 > > > > > On Fri, May 1, 2015 at 12:08 AM, Duncan Murdoch > <murdoch.dun...@gmail.com <mailto:murdoch.dun...@gmail.com>> wrote: > > On 30/04/2015 2:12 PM, Anirudh Jayaraman wrote: > > I recently upgraded to *R-3.2.0* from *R-2.14.1* on *Ubuntu > 12.04 LTS.* > > I have been *trying to install some add-on packages* (that weren't > installed in the earlier version of R) to R-3.2.0. *but to no > avail*, > getting repeated error messages. For example, *I tried > installing swirl*. > Here's my output. The problem areas are highlighted in yellow. > Any solution? > > > The error message looks pretty clear: the installer couldn't find > curl-config. Just install whatever package is necessary to get > libcurl, and make sure curl-config is on your path, and you should > get past that error, and on to the next one. > > Duncan Murdoch > > > > *> install.packages("swirl")* > > > Installing package into > ‘/home/anirudh/R/x86_64-pc-linux-gnu-library/3.2’ > (as ‘lib’ is unspecified) > also installing the dependencies ‘testthat’, ‘httr’, ‘yaml’, ‘RCurl’ > > trying URL > 'http://cran.rstudio.com/src/contrib/testthat_0.9.1.tar.gz' > Content type 'application/x-gzip' length 49533 bytes (48 KB) > ================================================== > downloaded 48 KB > > trying URL 'http://cran.rstudio.com/src/contrib/httr_0.6.1.tar.gz' > Content type 'application/x-gzip' length 247531 bytes (241 KB) > ================================================== > downloaded 241 KB > > trying URL 'http://cran.rstudio.com/src/contrib/yaml_2.1.13.tar.gz' > Content type 'application/x-gzip' length 81045 bytes (79 KB) > ================================================== > downloaded 79 KB > > trying URL > 'http://cran.rstudio.com/src/contrib/RCurl_1.95-4.6.tar.gz' > Content type 'application/x-gzip' length 878616 bytes (858 KB) > ================================================== > downloaded 858 KB > > trying URL 'http://cran.rstudio.com/src/contrib/swirl_2.2.21.tar.gz' > Content type 'application/x-gzip' length 51037 bytes (49 KB) > ================================================== > downloaded 49 KB > > * installing *source* package ‘testthat’ ... > ** package ‘testthat’ successfully unpacked and MD5 sums checked > ** libs > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 > -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c reassign.c -o > reassign.o > gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions > -Wl,-z,relro -o testthat.so reassign.o -L/usr/lib/R/lib -lR > installing to > /home/anirudh/R/x86_64-pc-linux-gnu-library/3.2/testthat/libs > ** R > ** inst > ** preparing package for lazy loading > ** help > *** installing help indices > ** building package indices > ** testing if installed package can be loaded > * DONE (testthat) > * installing *source* package ‘yaml’ ... > ** package ‘yaml’ successfully unpacked and MD5 sums checked > ** libs > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG > -fpic -g > -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c api.c -o api.o > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG > -fpic -g > -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c dumper.c -o > dumper.o > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG > -fpic -g > -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c emitter.c -o > emitter.o > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG > -fpic -g > -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c implicit.c -o > implicit.o > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG > -fpic -g > -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c loader.c -o > loader.o > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG > -fpic -g > -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c parser.c -o > parser.o > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG > -fpic -g > -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c r-ext.c -o > r-ext.o > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG > -fpic -g > -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c reader.c -o > reader.o > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG > -fpic -g > -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c scanner.c -o > scanner.o > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG > -fpic -g > -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Wformat-security > -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c writer.c -o > writer.o > gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions > -Wl,-z,relro -o yaml.so api.o dumper.o emitter.o implicit.o loader.o > parser.o r-ext.o reader.o scanner.o writer.o -L/usr/lib/R/lib -lR > installing to > /home/anirudh/R/x86_64-pc-linux-gnu-library/3.2/yaml/libs > ** R > ** inst > ** preparing package for lazy loading > ** help > *** installing help indices > ** building package indices > ** testing if installed package can be loaded > * DONE (yaml) > * 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/anirudh/R/x86_64-pc-linux-gnu-library/3.2/RCurl’ > Warning in install.packages : > installation of package ‘RCurl’ had non-zero exit status > ERROR: dependency ‘RCurl’ is not available for package ‘httr’ > * removing ‘/home/anirudh/R/x86_64-pc-linux-gnu-library/3.2/httr’ > Warning in install.packages : > installation of package ‘httr’ had non-zero exit status > ERROR: dependencies ‘httr’, ‘RCurl’ are not available for > package ‘swirl’ > * removing ‘/home/anirudh/R/x86_64-pc-linux-gnu-library/3.2/swirl’ > Warning in install.packages : > installation of package ‘swirl’ had non-zero exit status > > The downloaded source packages are in > ‘/tmp/RtmpmKycFY/downloaded_packages’ > *________________________________________________________* > *Anirudh Jayaraman* > M.Sc Economics (2014-16) > Indira Gandhi Institute of Development Research (IGIDR), Mumbai > Ph No: +91 9560476729 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org <mailto:R-help@r-project.org> mailing list > -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.