Error Building Sage 7.6 in ubuntu

asked 2017-06-21 13:12:26 +0100

Eric_h22 gravatar image

Hi all,

I am new to Sage. I am having trouble in installing sage 7.6 in Ubuntu 14.04. I've got this error.

Could someone help me?

Thank you all.

make build/make/Makefile make[1]: Entering directory /home/eric/Sage/SageMath' make[1]:build/make/Makefile' is up to date. make[1]: Leaving directory `/home/eric/Sage/SageMath' build/bin/sage-logger \ "cd build/make && ./install 'all'" logs/install.log * ALL ENVIRONMENT VARIABLES BEFORE BUILD: CLUTTER_IM_MODULE=xim COLORTERM=gnome-terminal COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-XWvPOj2kHc DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GDM_LANG=en_US GDMSESSION=ubuntu GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL=/run/user/1000/keyring-Ku5pqL GNOME_KEYRING_PID=1767 GPG_AGENT_INFO=/run/user/1000/keyring-Ku5pqL/gpg:0:1 GTK_IM_MODULE=ibus GTK_MODULES=overlay-scrollbar:unity-gtk-module HOME=/home/eric IM_CONFIG_PHASE=1 INSTANCE=Unity JOB=gnome-session LANG=en_US.UTF-8 LANGUAGE=en_US LESSCLOSE=/usr/bin/lesspipe %s %s LESSOPEN=| /usr/bin/lesspipe %s LOGNAME=eric LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arj=01;31:.taz=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lz=01;31:.xz=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.axv=01;35:.anx=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.axa=00;36:.oga=00;36:.spx=00;36:*.xspf=00;36: MAKEFLAGS= MAKELEVEL=1 MAKE=make MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path MFLAGS= PATH=/home/eric/Sage/SageMath/build/bin:/home/eric/Sage/SageMath/src/bin:/home/eric/Sage/SageMath/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=/home/eric/Sage/SageMath/build/make PYTHONPATH=/home/eric/Sage/SageMath/local QT4_IM_MODULE=xim QT_IM_MODULE=ibus QT_QPA_PLATFORMTHEME=appmenu-qt5 SAGE_EXTCODE=/home/eric/Sage/SageMath/local/share/sage/ext SAGE_LOCAL=/home/eric/Sage/SageMath/local SAGE_LOGS=/home/eric/Sage/SageMath/logs/pkgs SAGE_ORIG_PATH_SET=True SAGE_ORIG_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games SAGE_ROOT=/home/eric/Sage/SageMath SAGE_SHARE=/home/eric/Sage/SageMath/local/share SAGE_SPKG_INST=/home/eric/Sage/SageMath/local/var/lib/sage/installed SAGE_SRC=/home/eric/Sage/SageMath/src SAGE_VERSION=7.6 SELINUX_INIT=YES SESSIONTYPE=gnome-session SHELL=/bin/bash SHLVL=3 SSH_AUTH_SOCK=/run/user/1000/keyring-Ku5pqL/ssh TERM=xterm TEXTDOMAINDIR=/usr/share/locale/ TEXTDOMAIN=im-config UPSTART_EVENTS=started starting UPSTART_INSTANCE= UPSTART_JOB=unity-settings-daemon UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1771 USER=eric _=/usr/bin/env V=1 VTE_VERSION=3409 WINDOWID=58720268 XAUTHORITY=/home/eric/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/ XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/eric XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SEAT=seat0 XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_VTNR=7 XMODIFIERS=@im=ibus


make[1]: Entering directory /home/eric/Sage/SageMath/build/make' make base make[2]: Entering directory/home/eric/Sage/SageMath/build/make' make[2]: Nothing to be done for base'. make[2]: Leaving directory/home/eric/Sage/SageMath/build/make' env SAGE_BUILD_TOOLCHAIN=yes make toolchain make[2]: Entering directory /home/eric/Sage/SageMath/build/make' make[2]: Nothing to be done fortoolchain'. make[2]: Leaving directory /home/eric/Sage/SageMath/build/make' make toolchain-deps make[2]: Entering directory/home/eric/Sage/SageMath/build/make' make /home/eric/Sage/SageMath/local/var/lib/sage/installed/zlib-1.2.8.p0 make[3]: Entering directory /home/eric/Sage/SageMath/build/make' make[3]:/home/eric/Sage/SageMath/local/var/lib/sage/installed/zlib-1.2.8.p0' is up to date. make[3]: Leaving directory /home/eric/Sage/SageMath/build/make' make /home/eric/Sage/SageMath/local/var/lib/sage/installed/mpir-2.7.2.p0 make[3]: Entering directory/home/eric/Sage/SageMath/build/make' make[3]: /home/eric/Sage/SageMath/local/var/lib/sage/installed/mpir-2.7.2.p0' is up to date. make[3]: Leaving directory/home/eric/Sage/SageMath/build/make' make /home/eric/Sage/SageMath/local/var/lib/sage/installed/mpfr-3.1.5 make[3]: Entering directory /home/eric/Sage/SageMath/build/make' make[3]:/home/eric/Sage/SageMath/local/var/lib/sage/installed/mpfr-3.1.5' is up to date. make[3]: Leaving directory /home/eric/Sage/SageMath/build/make' make /home/eric/Sage/SageMath/local/var/lib/sage/installed/mpc-1.0.3.p0 make[3]: Entering directory/home/eric/Sage/SageMath/build/make' make[3]: /home/eric/Sage/SageMath/local/var/lib/sage/installed/mpc-1.0.3.p0' is up to date. make[3]: Leaving directory/home/eric/Sage/SageMath/build/make' make[2]: Leaving directory /home/eric/Sage/SageMath/build/make' make doc all-sage make[2]: Entering directory/home/eric/Sage/SageMath/build/make' if [ -z "$SAGE_INSTALL_FETCH_ONLY" ]; then \ cd /home/eric/Sage/SageMath/src && source bin/sage-env && \ sage-logger -p 'time make sage' '/home/eric/Sage/SageMath/logs/pkgs/sagelib-7.6.log'; \ fi [sagelib-7.6] (cd . \ [sagelib-7.6] && export SAGE_ROOT=/doesnotexist \ [sagelib-7.6] SAGE_SRC=/doesnotexist \ [sagelib-7.6] SAGE_SRC_ROOT=/doesnotexist \ [sagelib-7.6] SAGE_DOC_SRC=/doesnotexist \ [sagelib-7.6] SAGE_SCRIPTS_DIR=/doesnotexist \ [sagelib-7.6] SAGE_BUILD_DIR=/doesnotexist \ [sagelib-7.6] SAGE_PKGS=/home/eric/Sage/SageMath/build/pkgs \ [sagelib-7.6] SAGE_CYTHONIZED=/home/eric/Sage/SageMath/src/build/cythonized \ [sagelib-7.6] && python -u setup.py --no-user-cfg build install) [sagelib-7.6] /home/eric/Sage/SageMath/local/bin/python: 1: /home/eric/Sage/SageMath/local/bin/python: Syntax error: word unexpected (expecting ")") [sagelib-7.6] [sagelib-7.6] real 0m0.023s [sagelib-7.6] user 0m0.000s [sagelib-7.6] sys 0m0.000s make[2]: * [sagelib] Error 2 make[2]: Leaving directory /home/eric/Sage/SageMath/build/make' make[1]: *** [all] Error 2 make[1]: Leaving directory/home/eric/Sage/SageMath/build/make'

real 0m0.441s user 0m0.084s sys 0m0.060s


Error building Sage.

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

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

edit retag flag offensive close merge delete

Comments

If i am understanding what happens above, the install is a source install of sage 7.6 , that fails. (Last days i also tried to install from source on manjaro (based on arch), failed. There are many details that have to be checked in advance or after the failure.)

Alternatively:

Note: Please format the error text - after copy+paste - by using that icon with "101 and 010" (in two rows). It indents the text 4 spaces in lines.

dan_fulea gravatar imagedan_fulea ( 2017-06-21 19:41:18 +0100 )edit

Thanks, Dan. I'll try installing from binary or ppa first. Thanks again for the reply. One other thing, I don't understand what do you mean by the note. I am just a beginner in this kind of things.

After trying to use ppa by typing: sudo -E apt-add-repository -y ppa:aims/sagemath. I get this error: Please check that the PPA name or format is not correct. Why is it so?

Eric_h22 gravatar imageEric_h22 ( 2017-06-23 09:41:40 +0100 )edit

The note is refering to the way to copy+paste code (using a monospaced font) on this site (using its markdown conventions). If the code is simply copy-pasted, than it gets the usual font, worse, possible characters are interpreted as part of the markdown language.

So in order to put two lines, e.g. the first one import random, and the second one a = random.choice( 'xyz' ) to look like

import random
a = random.choice( 'xyz' )

(with color highlight) one has to do something so that at the end the following is typed:

  • a blank line
  • a line starting with four spaces and then import random
  • a line starting with four spaces and then random.choice( 'xyz' )
  • a blank line.

One can achieve it by copy+past, mark, then click the pictogram with the symbol

101
010
dan_fulea gravatar imagedan_fulea ( 2017-06-24 00:13:27 +0100 )edit

For this kind of problem, maybe the sagemath channel and/or the ubuntu channel on freenode may be helpful, since the trial and error cycles isolating the error are shorter.

I used only a few times the command line to add a repository. (There is only a sudo bash for me. Then in the bash...) The repository can be added by some simple clicks in synaptic. Does maybe this way around work?

Maybe there was no route to the repository at that particular hour.

Maybe one of the following further links is helpful:

https://askubuntu.com/questions/551119/how-to-install-sage-from-repository

https://groups.google.com/forum/#!topic/sage-support/TC_iMPetyeA

dan_fulea gravatar imagedan_fulea ( 2017-06-24 00:26:12 +0100 )edit