{"id":393,"date":"2014-01-14T08:55:53","date_gmt":"2014-01-14T13:55:53","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/nemo\/?p=393"},"modified":"2014-01-14T08:55:53","modified_gmt":"2014-01-14T13:55:53","slug":"instalar-paquete-rcurl-de-r-en-centos-6-1","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/nemo\/2014\/01\/14\/instalar-paquete-rcurl-de-r-en-centos-6-1\/","title":{"rendered":"Instalar paquete RCurl de R en CentOS 6.1"},"content":{"rendered":"<p><a href=\"http:\/\/blog.espol.edu.ec\/nemo\/files\/2014\/01\/RCurl_error.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-398\" alt=\"imagen RCurl error\" src=\"http:\/\/blog.espol.edu.ec\/nemo\/files\/2014\/01\/RCurl_error.jpg\" width=\"484\" height=\"246\" srcset=\"https:\/\/blog.espol.edu.ec\/nemo\/files\/2014\/01\/RCurl_error.jpg 484w, https:\/\/blog.espol.edu.ec\/nemo\/files\/2014\/01\/RCurl_error-300x152.jpg 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/a><\/p>\n<p>Al instalar el paquete RCurl en una maquina con Linux CentOS 6.1 con R 3.0.1 (lo mismo deber\u00eda pasar con RedHat) se me produjo el siguiente error:<\/p>\n<div style=\"overflow: auto\">\n<div class=\"geshifilter\">\n<pre class=\"r geshifilter-R\" style=\"font-family: monospace;padding-left: 30px\"><span style=\"color: #666666;font-style: italic\"># Instalar el paquete RCurl<\/span>\r\n<a href=\"http:\/\/inside-r.org\/r-doc\/utils\/install.packages\"><span style=\"color: #003399;font-weight: bold\">install.packages<\/span><\/a><span style=\"color: #009900\">(<\/span><span style=\"color: #0000ff\">\"RCurl\"<\/span><span style=\"color: #009900\">)<\/span>\r\n\r\n<span style=\"color: #666666;font-style: italic\">## checking for curl-config...<\/span>\r\n<span style=\"color: #666666;font-style: italic\">## no Cannot find curl-config<\/span>\r\n<span style=\"color: #666666;font-style: italic\">## ERROR: configuration failed for package \u2018RCurl\u2019<\/span><\/pre>\n<\/div>\n<\/div>\n<p><span style=\"font-size: 12px;line-height: 18px\">\u00a0<\/span><span style=\"font-size: 12px;line-height: 18px\">El mensaje dice claramente <\/span><em style=\"font-size: 12px;line-height: 18px\">\"no Cannot find curl-config\" \u00a0<\/em><span style=\"font-size: 12px;line-height: 18px\">lo que indicar\u00eda que no est\u00e1 instalado el paquete c<\/span><em style=\"font-size: 12px;line-height: 18px\">url<\/em><span style=\"font-size: 12px;line-height: 18px\">, sin embargo\u00a0si confirmamos desde el terminal de linux (con los permisos correspondientes)<\/span><\/p>\n<pre style=\"padding-left: 30px\">yum install curl\r\n\r\n<span style=\"font-size: 12px;line-height: 18px\">Package curl-7.19.7-37.el6_4.i686 already installed and latest version\r\n<\/span>Nothing to do<\/pre>\n<p>vemos que <em>curl<\/em> est\u00e1 efectivamente instalado (al parecer se instala desde el principio con el sistema operativo); pues bien lo que necesitamos es instalar <strong><em>curl-devel<\/em><\/strong>,<strong>\u00a0<\/strong>hacemos entonces<\/p>\n<pre style=\"padding-left: 30px\">yum install curl-devel<\/pre>\n<p>y listo (se instalar\u00e1 desde el repositorio <em>base<\/em>, as\u00ed que no se debe lidiar con repositorios externos).<\/p>\n<p>Luego de ello pueden regresar a R e instalar RCurl sin problemas con el comando<\/p>\n<div style=\"overflow: auto\">\n<div class=\"geshifilter\">\n<pre class=\"r geshifilter-R\" style=\"font-family: monospace;padding-left: 30px\"><span style=\"color: #666666;font-style: italic\"># Instalar el paquete RCurl<\/span>\r\n<a href=\"http:\/\/inside-r.org\/r-doc\/utils\/install.packages\"><span style=\"color: #003399;font-weight: bold\">install.packages<\/span><\/a><span style=\"color: #009900\">(<\/span><span style=\"color: #0000ff\">\"RCurl\"<\/span><span style=\"color: #009900\">)<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>Cr\u00e9ditos: Sintaxis resaltada usando\u00a0<a href=\"http:\/\/www.inside-r.org\/pretty-r\" target=\"_blank\">Pretty R at inside-R.org<\/a><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<\/p>\n<p>Al instalar el paquete RCurl en una maquina con Linux CentOS 6.1 con R 3.0.1 (lo mismo deber\u00eda pasar con RedHat) se me produjo el siguiente error:<\/p>\n<div style=\"overflow: auto\">\n<div class=\"geshifilter\"> # Instalar el paquete RCurl install.packages(\"RCurl\") ## checking for curl-config... ## no Cannot find curl-config ## ERROR: configuration failed for package \u2018RCurl\u2019 &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/blog.espol.edu.ec\/nemo\/2014\/01\/14\/instalar-paquete-rcurl-de-r-en-centos-6-1\/\">Seguir leyendo<\/a><\/p>\n<\/div>\n<\/div>\n","protected":false},"author":3803,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1688,866,1534],"tags":[1171586,35898,1171625,822,26451,1171627,356649,43342,1171587,325],"class_list":["post-393","post","type-post","status-publish","format-standard","hentry","category-estadistica","category-linux","category-r","tag-centos","tag-curl","tag-linux","tag-open-source","tag-paquete","tag-r","tag-rcurl","tag-red-hat","tag-redhat","tag-software-libre","item-wrap"],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/nemo\/wp-json\/wp\/v2\/posts\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espol.edu.ec\/nemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espol.edu.ec\/nemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/nemo\/wp-json\/wp\/v2\/users\/3803"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/nemo\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":6,"href":"https:\/\/blog.espol.edu.ec\/nemo\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":400,"href":"https:\/\/blog.espol.edu.ec\/nemo\/wp-json\/wp\/v2\/posts\/393\/revisions\/400"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/nemo\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/nemo\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/nemo\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}