ISSUE RESOLVED
I think I've figured out the problem: I had the wrong binaries installed (32-bit instead of the actualy 64-bit). This is also noticeable in the error messge when it mentions LONG_BIT bad for platform. However, this wasn't completely obvious: My Vista is on a 32- bit operation system but Wubi installs a 64-bit Ubuntu version. Hence, why I needed sage-64-bit. Thanks for your support! Dmitri On Jun 3, 8:44 pm, Dmitri <[email protected]> wrote: > Hey Sage Community, > > I recently installed sage on my computer. While it works fine (i.e. I > can start sage using ./sage), I can't build it. When I type in ./sage - > b, the error message below appears. Here a few things to keep in mind: > 1) I installed sage on Ubuntu 10.04, on a computer running Vista and > Ubuntu (I use wubi for this; I think it creates a virtual machine > inside of Vista). > 2) I installed the prerequisites (gcc,g++,gfortran,m4,make) > 3) I installed using binary build > 4) I am running Sage 4.4.2 > > Any suggestions? Thanks, > > Dmitri > > ***************************** START OF ERROR MESSAGE > ******************* > > dmi...@ubuntu:~/Downloads/sage-4.4.2-linux-32bit-ubuntu_10.04_lts-i686- > Linux$ ./sage -b > ---------------------------------------------------------- > sage: Building and installing modified Sage library files. > > Installing c_lib > gcc -o src/interrupt.os -c -fPIC -I/home/dmitri/Downloads/sage-4.4.2- > linux-32bit-ubuntu_10.04_lts-i686-Linux/local/include -I/home/dmitri/ > Downloads/sage-4.4.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/ > include/python2.6 -I/home/dmitri/Downloads/sage-4.4.2-linux-32bit- > ubuntu_10.04_lts-i686-Linux/local/include/NTL -Iinclude src/ > interrupt.c > In file included from /home/dmitri/Downloads/sage-4.4.2-linux-32bit- > ubuntu_10.04_lts-i686-Linux/local/include/python2.6/Python.h:58, > from include/stdsage.h:35, > from src/interrupt.c:12: > /home/dmitri/Downloads/sage-4.4.2-linux-32bit-ubuntu_10.04_lts-i686- > Linux/local/include/python2.6/pyport.h:685:2: error: #error "LONG_BIT > definition appears wrong for platform (bad gcc/glibc config?)." > src/interrupt.c: In function ‘msg’: > src/interrupt.c:140: warning: format not a string literal and no > format arguments > scons: *** [src/interrupt.os] Error 1 > ERROR: There was an error building c_lib. > > real 0m1.799s > user 0m0.530s > sys 0m0.260s > dmi...@ubuntu:~/Downloads/sage-4.4.2-linux-32bit-ubuntu_10.04_lts-i686- > Linux$ -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
