From c7ef113a6253a37b903afdb9419ab97acc903d32 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Tue, 2 Jun 2020 14:35:22 +0200 Subject: [PATCH] Update readme, fix #225 --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ae9a66cb..26a95943 100644 --- a/README.md +++ b/README.md @@ -106,14 +106,19 @@ On __Fedora__, __CentOS or RHEL__ use [libcurl-devel](https://apps.fedoraproject sudo yum install libcurl-devel ```` -On __OS-X__ libcurl is included with the system so nothing extra is needed. However if you want to build against the most recent version of libcurl, install and force-link [curl from homebrew](https://github.com/Homebrew/homebrew-core/blob/master/Formula/curl.rb): +On __OS-X__ libcurl is included with the system so nothing extra is needed. However if you want to build against the most recent version of libcurl, install [curl from homebrew](https://github.com/Homebrew/homebrew-core/blob/master/Formula/curl.rb). You need to set the `PKG_CONFIG_PATH` environment variable to help R find the non-default curl: ``` brew install curl -brew link --force curl +export PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig" +R ``` -Note that on OS-X you **must** recompile the R package from source after force-linking curl, otherwise you get a version conflict with the system version of libcurl. +You have to recompile the R package from source to use the new libcurl: + +```r +install.packages("curl", type = "source") +``` ## Development version