Skip to content

R installation fails on macOS with libcurl from Anaconda #27941

@mkoeppe

Description

@mkoeppe

As reported in https://groups.google.com/d/msg/sage-devel/MMjoi2iDqo8/s55Uj2hHAwAJ
(and earlier, in 2017, in https://groups.google.com/d/msg/sage-devel/aOK-ZtyH_Z8/Br4IycQnAgAJ).

Reproduced on macOS 10.14, Anaconda 3:
config.log from R build:

configure:42569: checking for curl-config
configure:42587: found /anaconda3/bin/curl-config
configure:42599: result: /anaconda3/bin/curl-config
configure:42625: checking curl/curl.h usability
configure:42625: clang -c  -g -O2  -fPIC -I/anaconda3/include -I/usr/local/Cellar/pcre2/10.32/include   conftest.c >&5
configure:42625: $? = 0
configure:42625: result: yes
configure:42625: checking curl/curl.h presence
configure:42625: clang -E -I/anaconda3/include -I/usr/local/Cellar/pcre2/10.32/include   conftest.c
configure:42625: $? = 0
configure:42625: result: yes
configure:42625: checking for curl/curl.h
configure:42625: result: yes
configure:42639: checking if libcurl is version 7 and >= 7.22.0
configure:42668: clang -o conftest  -g -O2  -fPIC -I/anaconda3/include -I/usr/local/Cellar/pcre2/10.32/include   -L/Users/mkoeppe/s/sage/sage-rebasing/worktree-anaconda/local
/lib -Wl,-rpath,/Users/mkoeppe/s/sage/sage-rebasing/worktree-anaconda/local/lib  conftest.c -L/anaconda3/lib -lcurl -lssh2 -lssh2 -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 
-lresolv -lz -L/usr/local/Cellar/pcre2/10.32/lib -lpcre2-8 -lpcre -llzma -lbz2 -lz -licucore -ldl -lm  -liconv >&5
configure:42668: $? = 0
configure:42668: ./conftest
dyld: Library not loaded: @rpath/libcurl.4.dylib
  Referenced from: /Users/mkoeppe/s/sage/sage-rebasing/worktree-anaconda/local/var/tmp/sage/build/r-3.6.0/src/./conftest
  Reason: image not found
./configure: line 2254: 38949 Abort trap: 6           ./conftest$ac_exeext
configure:42668: $? = 134
configure: program exited with status 134

CC: @dimpase @embray @slel @jhpalmieri @vbraun @isuruf

Component: packages: standard

Keywords: conda

Author: Matthias Koeppe

Branch: 1af7d3c

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/27941

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions