Ask Your Question

compile error building sagemath 8.4 beta7 on Linux Manjaro

asked 2018-10-14 04:57:29 +0200

Nasser gravatar image

updated 2018-10-14 12:34:55 +0200

tmonteil gravatar image

I've run Arch Linux package manager to install sagemath many times before on Linux Manjaro and it never failed to compile before. This is the first time I've seen a compile error. This seems like a packaging issue?


>uname -a
Linux me-pc 4.14.74-1-MANJARO 

>cat /etc/*release
Manjaro Linux

I select sagemath from AUR using the package manager, click install. I fail with this error

Building sagemath-git...
Cloning into 'sagemath-git'...
==> Making package: sagemath-git 8.4.beta7.r0.ga1bfef8cf3-1 (Sat 13 Oct 2018 08:04:38 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning sage git repo...
gcc -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/python2.7/site-packages/cysignals -I/usr/include -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -I/home/me/TMP/sagemath-git/src/sage/src -I/home/me/TMP/sagemath-git/src/sage/src/sage/ext -Ibuild/cythonized -I/usr/include/python2.7 -c build/cythonized/sage/calculus/integration.c -o build/temp.linux-x86_64-2.7/build/cythonized/sage/calculus/integration.o -fno-strict-aliasing -DCYTHON_CLINE_IN_TRACEBACK=1 -DGSL_DISABLE_DEPRECATED -std=c99
build/cythonized/sage/calculus/integration.c:609:10: fatal error: gsl/gsl_cblas.h: No such file or directory
 #include "gsl/gsl_cblas.h"
compilation terminated.
error: command 'gcc' failed with exit status 1
[ 15/499] gcc -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/python2.7/site-packages/cysignals -I/usr/include -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -I/home/me/TMP/sagemath-git/src/sage/src -I/home/me/TMP/sagemath-git/src/sage/src/sage/ext -Ibuild/cythonized -I/usr/include/python2.7 -c build/cythonized/sage/calculus/interpolation.c -o build/temp.linux-x86_64-2.7/build/cythonized/sage/calculus/interpolation.o -fno-strict-aliasing -DCYTHON_CLINE_IN_TRACEBACK=1 -std=c99
build/cythonized/sage/calculus/interpolation.c:603:10: fatal error: gsl/gsl_interp.h: No such file or directory
 #include "gsl/gsl_interp.h"
compilation terminated.

I've put the complete build log file here (this form will not let me attach a plain text file).

I install the Linux system new, and was trying to install sagemath on it.

Posting this here in case someone wants to have a look to see why it failed to compile. It seems to be missing some prerequisites.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-15 11:16:04 +0200

arojas gravatar image

You're missing the gsl package. This used to be pulled in via pynac -> libgiac, but since the libgiac dependency was removed due to this is no longer the case. You should install libgiac manually for now, will fix the dependencies for next release

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-10-14 04:57:29 +0200

Seen: 374 times

Last updated: Oct 15 '18