Error Installing sage math on redhat-6

115 views
Skip to first unread message

Madan Saini

unread,
Jun 22, 2015, 2:25:32 AM6/22/15
to sage-s...@googlegroups.com
Got the following errors while using make command on redhat-6. My pc is 32bit

[root@design sage-6.7-i686-Linux]# make
cd build && \
    "../build/pipestatus" \
        "env SAGE_PARALLEL_SPKG_BUILD='' ./install all 2>&1" \
        "tee -a ../logs/install.log"
/media/Work2/SageMath/sage-6.7-i686-Linux/src/bin/testcxx.sh: /media/Work2/SageMath/sage-6.7-i686-Linux/local/bin/g++: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Installing GCC because your 'g++' isn't GCC (GNU C++).
*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***
COLORTERM=gnome-terminal
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-eLXtpKYIEq,guid=25f0ace980b3b1411b9a984500000062
DESKTOP_SESSION=gnome
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
GDM_KEYBOARD_LAYOUT=us
GDM_LANG=en_US.UTF-8
GDMSESSION=gnome
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_PID=2528
GNOME_KEYRING_SOCKET=/tmp/keyring-UjTmup/socket
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
HISTCONTROL=ignoredups
HISTSIZE=1000
HOME=/root
HOSTNAME=design
KDEDIRS=/usr
KDE_IS_PRELINKED=1
LANG=en_US.UTF-8
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=root
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:mi=01;05;37;41: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:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=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:*.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=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
MAIL=/var/spool/mail/root
MAKEFLAGS=
MAKELEVEL=1
MAKE=make
MFLAGS=
ORBIT_SOCKETDIR=/tmp/orbit-root
PATH=/media/Work2/SageMath/sage-6.7-i686-Linux/src/bin:/media/Work2/SageMath/sage-6.7-i686-Linux/local/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin
PREREQ_OPTIONS=--disable-compiler-checks
PWD=/media/Work2/SageMath/sage-6.7-i686-Linux/build
PYTHONPATH=/media/Work2/SageMath/sage-6.7-i686-Linux/local
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
QTLIB=/usr/lib64/qt-3.3/lib
SAGE64=no
SAGE_EXTCODE=/media/Work2/SageMath/sage-6.7-i686-Linux/local/share/sage/ext
SAGE_LOCAL=/media/Work2/SageMath/sage-6.7-i686-Linux/local
SAGE_LOGS=/media/Work2/SageMath/sage-6.7-i686-Linux/logs/pkgs
SAGE_MP_LIBRARY=MPIR
SAGE_ORIG_PATH_SET=True
SAGE_ORIG_PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin
SAGE_PARALLEL_SPKG_BUILD=
SAGE_ROOT=/media/Work2/SageMath/sage-6.7-i686-Linux
SAGE_SPKG_INST=/media/Work2/SageMath/sage-6.7-i686-Linux/local/var/lib/sage/installed
SAGE_SRC=/media/Work2/SageMath/sage-6.7-i686-Linux/src
SAGE_VERSION=6.7
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2537,unix/unix:/tmp/.ICE-unix/2537
SHELL=/bin/bash
SHLVL=5
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_AUTH_SOCK=/tmp/keyring-UjTmup/socket.ssh
TERM=xterm
USERNAME=root
USER=root
_=/usr/bin/env
WINDOWID=56623107
WINDOWPATH=1
XAUTHORITY=/var/run/gdm/auth-for-root-o4xoIC/database
XDG_SESSION_COOKIE=6bfa01030fe1ecab48bee60500000043-1434967246.462564-1010345883
***********************************************
make[1]: Entering directory `/media/Work2/SageMath/sage-6.7-i686-Linux/build'
make base
make[2]: Entering directory `/media/Work2/SageMath/sage-6.7-i686-Linux/build'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for root user... yes
configure: error: You cannot build Sage as root, switch to a unpriviledged user
If you would like to try to build Sage anyway (to help porting),
export the variable 'SAGE_PORT' to something non-empty.
make[2]: *** [/media/Work2/SageMath/sage-6.7-i686-Linux/local/var/lib/sage/installed/prereq] Error 1
make[2]: Leaving directory `/media/Work2/SageMath/sage-6.7-i686-Linux/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/media/Work2/SageMath/sage-6.7-i686-Linux/build'

real    0m0.513s
user    0m0.130s
sys    0m0.177s
***************************************************************
Error building Sage.

The following package(s) may have failed to build:

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: *** [build] Error 1
[root@design sage-6.7-i686-Linux]#

Michael Welsh

unread,
Jun 22, 2015, 2:27:41 AM6/22/15
to sage-s...@googlegroups.com
> On 22/06/2015, at 1825, Madan Saini <cam....@gmail.com> wrote:
>
> configure: error: You cannot build Sage as root, switch to a unpriviledged user

This is the error. Run as a non-root user and try again.
Reply all
Reply to author
Forward
0 new messages