Sage 8.1 Mac OS 10.13.2 Build: Error installing package r-3.4.2.p0

109 views
Skip to first unread message

S. Diop

unread,
Dec 12, 2017, 5:15:27 PM12/12/17
to sage-devel
Hi there!
I need help for this install error of Sage 8.1.
It seems that the culprit is "libcurl >= 7.22.0 library not found by the compiler".
Xcode 9.2 installed along with its command line tools version 9.2 for MacOS 10.13.2.
Best wishes!
S.Diop

Last lines of the build log

[r-3.4.2.p0] checking for curl-config... /Users/seet/anaconda3/bin/curl-config
[r-3.4.2.p0] checking libcurl version ... 7.55.1
[r-3.4.2.p0] checking curl/curl.h usability... yes
[r-3.4.2.p0] checking curl/curl.h presence... yes
[r-3.4.2.p0] checking for curl/curl.h... yes
[r-3.4.2.p0] checking if libcurl is version 7 and >= 7.22.0... no
[r-3.4.2.p0] configure: error: libcurl >= 7.22.0 library and headers are required
[r-3.4.2.p0] Error configuring R.
[r-3.4.2.p0]
[r-3.4.2.p0] real 2m17.145s
[r-3.4.2.p0] user 1m3.079s
[r-3.4.2.p0] sys 1m5.324s
[r-3.4.2.p0] ************************************************************************
[r-3.4.2.p0] Error installing package r-3.4.2.p0
[r-3.4.2.p0] ************************************************************************
[r-3.4.2.p0] Please email sage-devel (http://groups.google.com/group/sage-devel)
[r-3.4.2.p0] explaining the problem and including the log file
[r-3.4.2.p0]   /Applications/sage-8.1/logs/pkgs/r-3.4.2.p0.log
[r-3.4.2.p0] Describe your computer, operating system, etc.
[r-3.4.2.p0] If you want to try to fix the problem yourself, *don't* just cd to
[r-3.4.2.p0] /Applications/sage-8.1/local/var/tmp/sage/build/r-3.4.2.p0 and type 'make' or whatever is appropriate.
[r-3.4.2.p0] Instead, the following commands setup all environment variables
[r-3.4.2.p0] correctly and load a subshell for you to debug the error:
[r-3.4.2.p0]   (cd '/Applications/sage-8.1/local/var/tmp/sage/build/r-3.4.2.p0' && '/Applications/sage-8.1/sage' --sh)
[r-3.4.2.p0] When you are done debugging, you can type "exit" to leave the subshell.
[r-3.4.2.p0] ************************************************************************
make[2]: *** [/Applications/sage-8.1/local/var/lib/sage/installed/r-3.4.2.p0] Error 1
make[1]: *** [all] Error 2

real 799m19.276s
user 738m19.226s
sys 127m14.122s
***************************************************************
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all'):

* package: r-3.4.2.p0
  log file: /Applications/sage-8.1/logs/pkgs/r-3.4.2.p0.log
  build directory: /Applications/sage-8.1/local/var/tmp/sage/build/r-3.4.2.p0

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

make: *** [all] Error 1

Dima Pasechnik

unread,
Dec 12, 2017, 5:19:55 PM12/12/17
to sage-devel
there is a conflict with your Anaconda installation. Make sure it not in your PATH.

Dima Pasechnik

unread,
Dec 13, 2017, 9:32:15 AM12/13/17
to sage-devel
It would also be great to get a confirmation that the external libcurl installation was picked up.
Namely, somewhere in the output of ./configure there should be a line

   curl-7.56.1 not installed (configure check)

(in the long list of the other Sage packages) - perhaps the version number is different there for you; 
most probably 7.55.1.

If this is indeed this case, you are probably hitting an R bug---indeed, these lines in your log:

[r-3.4.2.p0] checking libcurl version ... 7.55.1
[r-3.4.2.p0] checking curl/curl.h usability... yes
[r-3.4.2.p0] checking curl/curl.h presence... yes
[r-3.4.2.p0] checking for curl/curl.h... yes
[r-3.4.2.p0] checking if libcurl is version 7 and >= 7.22.0... no

look as if for R the version 7.55.1 is smaller than 7.22.0, which is kind of silly.

S. Diop

unread,
Dec 15, 2017, 6:59:34 AM12/15/17
to sage-devel
Thanks so much Dima,
I did disable anaconda, relaunch "make" and the build went through.
Best wishes
Reply all
Reply to author
Forward
0 new messages