[PROBLEM] I cannot run sage

3 views
Skip to first unread message

Akshay Pande

unread,
Feb 21, 2010, 3:10:56 AM2/21/10
to sage-support
Hi,

I recently installed sage (atom) and am running it on a netbook (eeePC
900HA) on Ubuntu Hardy. My problem is that whenever I run sage from
the installed folder I get the following output

----------------------------------------------------------------------
| Sage Version 4.3.2, Release Date: 2010-02-06 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
---------------------------------------------------------------------------
ImportError Traceback (most recent call
last)

/home/akshay/Academics/sage/local/lib/python2.6/site-packages/IPython/
ipmaker.pyc in force_import(modname)
64 reload(sys.modules[modname])

(some part omitted)

26 from sage.libs.ntl.ntl_ZZ import (
27 ntl_setSeed, \
28 ntl_ZZ as ZZ,

ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not
found (required by /home/akshay/Academics/sage/local/lib/libgmpxx.so.
3)
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.


Then I reach the SAGE prompt. I tried %upgrade but that didn't solve
the problem. Please help.

Warmly
Akshay Pande


David Kirkby

unread,
Feb 21, 2010, 6:07:56 AM2/21/10
to sage-s...@googlegroups.com
On 21 February 2010 08:10, Akshay Pande <akshayp...@gmail.com> wrote:
> Hi,
>
> I recently installed sage (atom) and am running it on a netbook (eeePC
> 900HA) on Ubuntu Hardy. My problem is that whenever I run sage from
> the installed folder I get the following output
>
> ----------------------------------------------------------------------
> | Sage Version 4.3.2, Release Date: 2010-02-06                       |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call
> last)
>
> /home/akshay/Academics/sage/local/lib/python2.6/site-packages/IPython/
> ipmaker.pyc in force_import(modname)
>     64         reload(sys.modules[modname])
>
> (some part omitted)
>
>  26 from sage.libs.ntl.ntl_ZZ import (
>     27                  ntl_setSeed, \
>     28                  ntl_ZZ as ZZ,
>
> ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not
> found (required by /home/akshay/Academics/sage/local/lib/libgmpxx.so.
> 3)

> Warmly
> Akshay Pande

Did you download a binary for Sage, or did you download the source
code and build Sage from source? I suspect you downloaded the binary,
but I may be wrong.

Your system either lacks libstdc++.so.6, or its in a place which can't
be found. This is the C++ library that is used as part of gcc. I've
proposed before that this be included in the Sage distribution, though
whether it actually is done so I don't know.

What is the output of

$ g++ -v
$ which g++

If g++ is not installed on your system (unlikely but possible), then
you will need to install that.

I'd have a hunt around your system, and see if you can find a file
which at least starts with libstdc++. If you can find libstdc++.so,
then copy it to $SAGE_ROOT/local/lib. I would not advise putting it in
/usr/lib, despite the error message.

Dave

Daniel Harris

unread,
Feb 21, 2010, 9:03:20 AM2/21/10
to sage-s...@googlegroups.com

Make sure that the version of ubuntu is compiled for the atom and not the i386 version.

Dan


Akshay Pande

unread,
Feb 21, 2010, 12:37:20 PM2/21/10
to sage-support
Dear David

I installed sage from a binary version. I indeed did not have g++
installed. But when I tried to install it via synaptic I got the
following error

W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_2.6.24-26.64_i386.deb
404 Not Found

This is a broken package or something I guess which is causing a
hindrance in installing g++. Is there a way to alternatively install g+
+, without synaptic?

Dear Dan

Oh that might be a problem too. I have the normal Ubuntu Hardy, not
UNR. But I'm running Adam's kernel on it, which effectively should
bring it to the same thing.

Warmly
Akshay

On Feb 21, 7:03 pm, Daniel Harris <mail.dhar...@googlemail.com> wrote:

Daniel Harris

unread,
Feb 22, 2010, 6:54:58 AM2/22/10
to sage-s...@googlegroups.com
On Sun, Feb 21, 2010 at 5:37 PM, Akshay Pande <akshayp...@gmail.com> wrote:
Dear David

I installed sage from a binary version. I indeed did not have g++
installed. But when I tried to install it via synaptic I got the
following error

W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_2.6.24-26.64_i386.deb
 404 Not Found

This is a broken package or something I guess which is causing a
hindrance in installing g++. Is there a way to alternatively install g+
+, without synaptic?

Dear Dan

Oh that might be a problem too. I have the normal Ubuntu Hardy, not
UNR. But I'm running Adam's kernel on it, which effectively should
bring it to the same thing.


My Guess is that your kernel is built for the i386, so if you have unlimited download then I would try the i386 version.  Just for the record I have the eeepc 1000ha with ubuntu 9.10 net remix (atom version) and  sage 4.3.1 (atom version) and that works perfectly.  Just for the record the UNR (9.10)  is available in i386 and atom (and possibly more (amd-x68?)).
 
Now there is no guarantee that will work as I have used linux long enough now to understand that although something will work on one version of a distro it is not necessarily going to work on another version.

HTH Dan

--
To post to this group, send email to sage-s...@googlegroups.com
To unsubscribe from this group, send email to sage-support...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Dr. David Kirkby

unread,
Feb 22, 2010, 8:01:17 AM2/22/10
to sage-s...@googlegroups.com
Akshay Pande wrote:
> Dear David
>
> I installed sage from a binary version. I indeed did not have g++
> installed. But when I tried to install it via synaptic I got the
> following error
>
> W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_2.6.24-26.64_i386.deb
> 404 Not Found

Do you have the log which you got when you built without g++ installed? I would
really like to see that, as it will help me enhance the check for Sage's
prerequisites so that the problem is more obvious and does not result in a
misleading error message.

If you restart the build, the file install.log get appended to, so it will not
have overwritten anything. It's the output of the following bits I'd like to see:


base/prereq-0.7-install
Starting prerequisite check.
Machine: SunOS hawk 5.11 snv_111b i86pc i386 i86pc
prereq-0.7/
prereq-0.7/autom4te.cache/
prereq-0.7/autom4te.cache/requests
prereq-0.7/autom4te.cache/output.0
prereq-0.7/autom4te.cache/traces.1
prereq-0.7/autom4te.cache/traces.2
prereq-0.7/autom4te.cache/output.1
prereq-0.7/autom4te.cache/traces.0
prereq-0.7/autom4te.cache/output.2
prereq-0.7/config.h.in
prereq-0.7/configure.ac
prereq-0.7/m4/
prereq-0.7/m4/ax_gcc_option.m4
prereq-0.7/m4/ax_gxx_option.m4
prereq-0.7/m4/ax_c_check_flag.m4
prereq-0.7/m4/ax_gcc_version.m4
prereq-0.7/m4/ax_gxx_version.m4
prereq-0.7/m4/ax_with_perl.4
prereq-0.7/m4/ax_prog_perl_version.m4
prereq-0.7/depcomp
prereq-0.7/missing
prereq-0.7/aclocal.m4
prereq-0.7/install-sh
prereq-0.7/configure
prereq-0.7/Makefile.in
prereq-0.7/config.sub
prereq-0.7/config.guess
prereq-0.7/Makefile.am
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking for flex... no
checking for lex... lex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for bison... no
checking for byacc... no
checking for ar... yes
checking for m4... yes
checking for ranlib... yes
checking for ld... yes
checking for strip... yes
checking for bash... yes
checking for latex... no
configure: WARNING: You do not have 'latex', which is recommended, but not
configure: WARNING: required. Latex is only really used for building pdf
configure: WARNING: documents and for %latex mode in the Sage notebook.
checking for perl... /usr/bin/perl
checking for Perl version 5.8.0 or later... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /usr/bin/ggrep
checking for egrep... /usr/bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking complex.h usability... yes
checking complex.h presence... yes
checking for complex.h... yes
checking whether we are using the GNU Fortran compiler... (cached) yes
checking whether gfortran accepts -g... (cached) yes
checking for Fortran flag needed to allow free-form source... -ffree-form
configure: Your Fortran compiler accepts free-format source code
configure: which older F77 compilers do not. This does not 100%
configure: guarantee your compiler is suitable for building SAGE
configure: but it probably is.
checking if gcc accepts -dumpversion option... yes
checking gcc version... 4.3.4
checking if g++ accepts -dumpversion option... yes
checking g++ version... 4.3.4
configure: Excellent, the C, C++ and Fortran compilers are all GCC 4.3.4
configure: Excellent, GCC 4.3.4 is later than the minimum
configure: needed to build Sage, which is GCC version 4.0.1
checking for sqrtl in -lm... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands


Dave

Daniel Harris

unread,
Feb 22, 2010, 8:18:07 AM2/22/10
to sage-s...@googlegroups.com
On Mon, Feb 22, 2010 at 1:01 PM, Dr. David Kirkby <david....@onetel.net> wrote:
Akshay Pande wrote:
Dear David

I installed sage from a binary version. I indeed did not have g++
installed. But when I tried to install it via synaptic I got the
following error

W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_2.6.24-26.64_i386.deb
 404 Not Found

Do you have the log which you got when you built without g++ installed? I would really like to see that, as it will help me enhance the check for Sage's prerequisites so that the problem is more obvious and does not result in a misleading error message.

If you restart the build, the file install.log get appended to, so it will not have overwritten anything. It's the output of the following bits I'd like to see:


Isnt that the idea behind a binary version - that you dont have to build it yourself?

Or am i missing something.

Dan

Dr. David Kirkby

unread,
Feb 22, 2010, 11:12:07 AM2/22/10
to sage-s...@googlegroups.com
Daniel Harris wrote:

> Do you have the log which you got when you built without g++
> installed?

<SNIP>

> Isnt that the idea behind a binary version - that you dont have to build
> it yourself?
>
> Or am i missing something.
>
> Dan

My apologies. There was another thread where someone posted the output of
prereq's configure script. That showed an error which looked to be g++ related.
I had obviously confused the two threads.

Dave

Reply all
Reply to author
Forward
0 new messages