ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 09 May 2020 15:48:30 +0200Sagemath on Chromebook with Linux (Beta)https://ask.sagemath.org/question/51346/sagemath-on-chromebook-with-linux-beta/ So... Google added the Linux (Beta) option to Chrome OS some time ago and I am thinking about buying a Chromebook in the near future but being able to use to use Sagemath is a must for me (and Cocalc is not a solution).
Did anybody try to install Sagemath on a Chromebook this way?
On that nkte, does anyone have any experience with running Sagemath on a chromebook at all and is willing to share experiences?
Thanks.justaskingSat, 09 May 2020 15:48:30 +0200https://ask.sagemath.org/question/51346/SageMath cannot access Mathematicahttps://ask.sagemath.org/question/48785/sagemath-cannot-access-mathematica/I have installed Mathematica Version 11.3 at a Linux system (openSUSE Leap 15.1) on a partition "math", i.e. separated from the Linux home and system partition. I have tried to send Mathematica expressions from SageMath to Mathematica in the manner described in the SageMath reference by using a SageMath Notebook or its command line interface. They are rejected with:
> TypeError: unable to start mathematica: End Of File (EOF). Exception style platform.
Mathematica finished running /usr/bin/sh -c stty -echo; math -rawterm
command: /usr/bin/sh
args: ['/usr/bin/sh', '-c', 'stty -echo; math -rawterm']
buffer (last 100 chars): ''
before (last 100 chars): 'es/Linux/WolframKernel\r\nnot found. Your Mathematica installation may be i incomplete\r\nor corrupted.\r\n'
after: <class 'pexpect.exceptions.EOF'>
In the course of the installation of Mathematica I added the path to the math command line interface of Mathematica to the common PATH-sequence. Therefore I am able to access the Mathematica command line interface by simply entering math or the command:
> /usr/bin/sh -c stty -echo; math -rawterm
using a bash-terminal outside SageMath. I have checked that I can do it without the need for specifying the complete path to math. However, entering the same command within a Sage-session by using the Python's OS- interface is only successful if the full path to math is specified:
> /usr/bin/sh -c stty -echo; /run/media/bernhardi/math/math -rawterm
The error appearing otherwise is the same as that one returned by the above described trials to send mathematica objects. The protocol shows that the mathematica objects are sent to Mathematica without detailed path info. Thus, obviously the SageMath-Mathematica interface does not recognize the complete path info that is availabe in the basic Linux system. Maybe the missing info is caused by the fact that Mathematica is located on a remote partition. Therefore my question: Is it possible to provide sageMath with the needed full path to math?
Unfortunately it is not possible to attach the complete output of SageMath.bekalphSun, 17 Nov 2019 13:41:42 +0100https://ask.sagemath.org/question/48785/in command mode plot3d not displaying - only says "Graphics3d Object"https://ask.sagemath.org/question/45905/in-command-mode-plot3d-not-displaying-only-says-graphics3d-object/ - I use sagemath in a virtual machine
(osboxes.org). To get a text copy of
the output, and some latex and TikZ
code it is convenient for me to use a
*linux* terminal and launching something like
/home/osboxes/SageMath/./sage /FilesSage/GSphereShowTest.sage | tee /FilesSage/GSphereShowTestOutput.txt
the problem is I do not have a
3dplot: the terminal only states
"Graphics3d Object".
- To simplify I tried just
/home/osboxes/SageMath/./sage
/FilesSage/GSphereShowTest.sage
to no avail.
- There is already a question with a
similar problem ([plot3d not
displaying - only says "Graphics3d
Object"?!](https://ask.sagemath.org/question/41731/plot3d-not-displaying-only-says-graphics3d-object/)) but the solution does not
apply. Here there is no max min.
The same test works without any problem with a *sage* terminal
The test code is just:
G=sphere((0,0,0),1)
show(G, viewer='jmol')
print 'say Hello'``
What should be done to get access to the viewer in a linux terminal?
c05772Mon, 25 Mar 2019 23:32:26 +0100https://ask.sagemath.org/question/45905/Upgrade sagemath to the latest stable versionhttps://ask.sagemath.org/question/45805/upgrade-sagemath-to-the-latest-stable-version/I am running a debian distribution. I downloaded a precompiled and preconfigured sage math archive available here:
http://sage.mirror.garr.it/mirrors/sage/linux/64bit/index.html
The installation is a success and sagemath works perfectly.
What if I need to upgrade this version to the latest stable version in the future ? Can I avoid to do the same process and download the complete new archive or can I use "git pull" inside my installation directory (which is a git repository) ?
I tried "git pull" but I was about to install the unstable version of sagemath 8.7.beta7 which I don't want to use.sagenotdeadSun, 17 Mar 2019 15:54:09 +0100https://ask.sagemath.org/question/45805/problem installing sage on ubuntu18.04https://ask.sagemath.org/question/44110/problem-installing-sage-on-ubuntu1804/As written on the download page, I wanted to get the linux binaries. I can't find them.
I've obtained the source tarball for ubuntu18.4 (64bits).
I've unarchived the directory `Sagemath` and cd'ed there. I type `make` as explained.
This is the message I obtain:
> RecursionError: maximum recursion
> depth exceeded during compilation
> Makefile:31: recipe for target
> 'base-toolchain' failed make: ***
> [base-toolchain] Error 1
I've tried to install sage via apt with `sudo apt install sagemath-common`
all goes well, no error message. Then try to run sage and obtain the following message:
> │ SageMath version 8.1, Release Date:
> 2017-12-07 │ │
> Type "notebook()" for the
> browser-based notebook interface.
> │ │ Type "help()" for help.
> │ Traceback (most recent call last):
> File "/usr/share/sagemath/bin/sage-ipython", line 7, in <module>
> from sage.repl.interpreter import SageTerminalApp
> ImportError: No module named 'sage'
I had a working sage (7.?) on the same machine under ubuntu16.04 which stopped working under ubuntu18.04.
I've deleted the Sage and also the .sage directories before trying all the above.
I am at my wit's end and would greatly appreciate any help.
Le TeXnicien de surfaceMon, 29 Oct 2018 12:33:36 +0100https://ask.sagemath.org/question/44110/linux binary seems to be sourcehttps://ask.sagemath.org/question/42736/linux-binary-seems-to-be-source/ I followed the link "Linux binaries" from the Download page, which leads to a page titles "Binaries for Linux" for which I do not have enough karma to post the exact url, but it is sagemath dot org slash download minus linux dot html. As recommended I downloaded the torrent version of sage-8.2-Ubuntu_16.04-x86_64.tar.bz2
But ./sage gives this result:
~/Documents/SageMath $ ./sage
RecursionError: maximum recursion depth exceeded during compilation
************************************************************************
It seems that you are attempting to run Sage from an unpacked source
tarball, but you have not compiled it yet (or maybe the build has not
finished). You should run `make` in the Sage root directory first.
If you did not intend to build Sage from source, you should download
a binary tarball instead. Read README.txt for more information.
************************************************************************
never_too_lateTue, 26 Jun 2018 15:23:11 +0200https://ask.sagemath.org/question/42736/using Jupiter notebooks .ipynb created on Windows (Oracle VM virtual box) on sage, linuxhttps://ask.sagemath.org/question/39773/using-jupiter-notebooks-ipynb-created-on-windows-oracle-vm-virtual-box-on-sage-linux/ Hi
1) I use Jupiter notebooks .ipynb created on Windows (Oracle VM virtual box) at home, and would like to upload and use them
on our linux sage installation, in our University
It seems this is impossible (upload of .ipynb is refused by linux sage)
2) As a substitute, I noticed on a notebook .sage created by someone else that it is at least pure text, and hence can be copied-pasted on a new file in the linux machine.
Is it possible to convert my .ipynb notebooks to .sage notebooks? This would allow using them both as notebooks and as a source of copypaste when upload is refused.
In fact, can .sage files be created on Windows (Oracle VM virtual box)?
Thanks, FlorinflorinFri, 24 Nov 2017 21:08:25 +0100https://ask.sagemath.org/question/39773/Keep Sage running in background linuxhttps://ask.sagemath.org/question/38057/keep-sage-running-in-background-linux/I need to be able to execute sage commands via the command line without opening the Sage shell. I am currently doing this through "sage -c 'cmd'". The issue I have is that this forces all of sage to boot up, run the command, and then shutdown. Something simple as "sage -c "print(derivative(5*x,x))" takes 3-4 seconds to run. How would I speed this up? My idea was to somehow run Sage in the background and be able to feed it input but I am not sure how to do that. I am feeding the command line input from an external program.
EDIT:
I found something that may be useful here:
https://ask.sagemath.org/question/23431/running-sage-from-other-languages-with-higher-performance/
The solution this user provides is creating a python socket server to constantly be running sage and pass along input for evaluation into it. The code isn't exactly daemonized so I will attempt to do that later. I will report on if I got it to work.AndriyThu, 22 Jun 2017 20:37:19 +0200https://ask.sagemath.org/question/38057/import print_function only works in one cell in linuxhttps://ask.sagemath.org/question/37776/import-print_function-only-works-in-one-cell-in-linux/I just installed Sage in Linux Mint, and the Import `print_function` only seems to work in one cell in the Notebook.
If I type this in the top cell it works fine:
from __future__ import print_function
print("all","good","dogs","eat","shoes",sep=" now ")
to print this:
all now good now dogs now eat now shoes
But if I do exactly the same print in the next cell, without the import, I get a syntax error.
However, the import does work for all cells in Sage for Windows.cybervigilanteSat, 03 Jun 2017 04:00:46 +0200https://ask.sagemath.org/question/37776/Launch Sage Notebook directly from linux menuhttps://ask.sagemath.org/question/37288/launch-sage-notebook-directly-from-linux-menu/ How can I set up a menu icon to launch Sage notebook automatically from linux mint? Now I have to open a terminal, type sage, then when it loads, type notebook()cybervigilanteThu, 13 Apr 2017 22:10:03 +0200https://ask.sagemath.org/question/37288/no method available for opening http localhost 8000https://ask.sagemath.org/question/33858/no-method-available-for-opening-http-localhost-8000/I have built Sage 7.2 from source on a Red Hat machine, and when I try to start a notebook server, I get
/usr/bin/xdg-open: line 402: htmlview: command not found
/usr/bin/xdg-open: line 402: firefox: command not found
/usr/bin/xdg-open: line 402: mozilla: command not found
/usr/bin/xdg-open: line 402: netscape: command not found
/usr/bin/xdg-open: line 402: links: command not found
/usr/bin/xdg-open: line 402: lynx: command not found
xdg-open: no method available for opening 'http://localhost:8080?startup_token=a19cd71a527ae07b9d079e9e71c73c5a'
Now, I've looked at http://ask.sagemath.org/question/9162/no-method-available-for-opening-http-localhost-8000/ and http://www.linuxquestions.org/questions/programming-9/xdg-open-no-method-available-for-opening-889242/ but the machine is shared, so I don't want to go around messing with anything in /usr/bin. I don't have direct access (or ability to install an X-client on the physical machine I'm using), so I can't check there is a browser installed on the machine I put Sage on.
Is there a way to work around this just within Sage? I didn't see anything that answered this here in ask, or in Sage for Power Users. Perhaps I can't fix this without better access to the machine I put Sage on. In that case, I'll just have to run Sage from command line. But it's nice to have notebook access.JEFLSUMon, 20 Jun 2016 15:46:31 +0200https://ask.sagemath.org/question/33858/Why are the binary tarballs for Debian/Ubuntu the only ones provided officially for SageMath?https://ask.sagemath.org/question/28795/why-are-the-binary-tarballs-for-debianubuntu-the-only-ones-provided-officially-for-sagemath/I have been wondering why the only binaries for SageMath that are provided officially via the Sage mirrors are for Debian/Ubuntu only. Like, I do understand that Debian and Ubuntu are amongst the most popular Linux distributions, but Arch Linux, CentOS, Fedora, Mageia, openSUSE, PCLinuxOS and Gentoo/Sabayon Linux also rank high in popularity amongst Linux distributions (according to [DistroWatch](http://distrowatch.com/dwres.php?resource=popularity), for example).
For Arch Linux there's a fairly up-to-date SageMath package in the official repository ([here it is](https://www.archlinux.org/packages/community/x86_64/sagemath/)), but with SageMath 6.8 I noticed it lagged about 3 days behind the release of SageMath Linux binaries provided by the official mirrors.
I also wanted to know why Debian and Ubuntu binaries are provided as tarballs and not as the more easily-installed `.deb` package format. Fusion809Mon, 10 Aug 2015 04:57:25 +0200https://ask.sagemath.org/question/28795/can run sage as root but not as a regular (non-root) userhttps://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/ Dear Sage community.
I am not a Sage user but one of my user requested Sage installed on our Linux machine (CentOS 6.5).
I've installed version 6.7 by simply unpacking a tar package with the binary inside.
Now I can start Sage as root. Typing ''./sage'' gives me "splash screen":
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.7, Release Date: 2015-05-17 │
│ Type "notebook()" for the browser-based notebook interface. │
│ Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
and command prompt after that.
If I do the same as a regular (non-root) user, I only get the "splash screen" and Sage hangs after that.
No Sage command line. No response. I have to kill the process to get back to bash. When I do that I get
the traceback information (attached).
I would appreciate any help with this issue.
Thanks,
Eugene.
PS
I cannot attach a file. Here is pastebin link:
http://pastebin.com/j5b4Cnts
eugeneTue, 07 Jul 2015 22:51:33 +0200https://ask.sagemath.org/question/27273/libffi.so.6 not included in sage-6.3-x86_64-Linux-Fedora_20_x86_64.tar.lzmahttps://ask.sagemath.org/question/24761/libffiso6-not-included-in-sage-63-x86_64-linux-fedora_20_x86_64tarlzma/Some operations, such as symbolic integration, require the library 'libffi.so.6', which is not found.
I have searched through the .tar without finding any 'libffi.*'.
1. Can this be fixed in the distro?
2. If not, where do I put this file in order to get a running system?
tnxrichard52Mon, 03 Nov 2014 16:58:02 +0100https://ask.sagemath.org/question/24761/how to run sage as a servicehttps://ask.sagemath.org/question/8598/how-to-run-sage-as-a-service/How do I run sage as a web application service (like running an instance of Ruby on Rails or a Django web application) without entering sage ipython CLI session?
Because I don't want to keep a terminal emulator like gnome terminal or x-term open,I just want to run sage in the background with log recorded in some files (say, $HOME/.local/sage/log/notebook.log). Gong-Yi LiaoWed, 28 Dec 2011 10:48:14 +0100https://ask.sagemath.org/question/8598/Problemas con linuxhttps://ask.sagemath.org/question/10755/problemas-con-linux/Hola tengo un problema cuando intento abrir sage desde mi pc (tengo linux con distribucion fedora 19) me salta este error
SELinux is preventing /usr/lib/nspluginwrapper/plugin-config from read access on the file /root/.sage/sage_notebook.sagenb/twistedconf.tac.
luego la maquina se cuelga y debo reiniciar
Translation:
Hi I have a problem when I try to open sage from my pc (I have linux with fedora 19 distribution) jumps me this error: (see above)
then the machine hangs and I must restartlorenzoTue, 19 Nov 2013 16:51:10 +0100https://ask.sagemath.org/question/10755/Is 'make install' on opensuse necessary?https://ask.sagemath.org/question/10715/is-make-install-on-opensuse-necessary/I have typed 'make' yesterday and the makefile was executing many,many hours. Now I can finally run sage in my browser, so I believe everything is alright. However, in instructions on makefiles, they say I should also run 'make install'. When I did, I got a warning saying "experimental use only". So is 'make install' redundant and sage will work as well as now?
I am new to linux. I moved to it just for sage.leo krupskiSat, 09 Nov 2013 07:46:28 +0100https://ask.sagemath.org/question/10715/Jmol 3D viewer problem in Linuxhttps://ask.sagemath.org/question/10398/jmol-3d-viewer-problem-in-linux/Hi all.
I noticed some problems with 3D plots in the Sage notebook under Linux (Mint 15 KDE guest in VirtualBox).
When I try to use the Advanced Controls of Jmol 3D viewer, the system always freezes.
In particular, when I try to access the "Color and Mesh" tab, Firefox gives an error concerning a plugin called "IcedTea-Web".
I don't find similar problems running directly Sage in VirtualBox under Windows 7 64 bit.
Do you have any idea about the problem?
Thanks.
AntlabTue, 30 Jul 2013 11:16:07 +0200https://ask.sagemath.org/question/10398/Installing ERROR in Linux Mint 13https://ask.sagemath.org/question/7521/installing-error-in-linux-mint-13/Hi experts!.
Im a new user of LINUX. I installed Linux Mint 13 in my Intel atom N2600 (GMA 3600) Acer Netbook.
I download the file 'sage-5.9-linux-32bit-ubuntu_13.04-i686-Linux.tar.lzma'. I followed the next instructions for install SAGE 5.9:
1) GO to download folder in Terminal.
2) tar sage-5.9-linux-32bit-ubuntu_13.04-i686-Linux.tar.lzma
3) sudo mv sage-5.9-linux-32bit-ubuntu_13.04-i686-Linux.tar /usr/local/SAGE
4) ln -s /usr/local/SAGE/sage /sbin/sage
When I type 'sage' i see this:
joseluismietta@joseluisnetbook ~ $ sage
----------------------------------------------------------------------
| Sage Version 5.9, Release Date: 2013-04-30 |
| Type "notebook()" for the browser-based notebook interface. |
| Type "help()" for help. |
----------------------------------------------------------------------
The Sage installation tree has moved
from /var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9
to /usr/local/SAGE
Updating various hardcoded paths...
(Please wait at most a few minutes.)
DO NOT INTERRUPT THIS.
Done updating paths.
sage:
Thats fine but when i try to plot some graph i receive a ERROR:
sage: var('x')
x
sage: plot(cos(x),0,1)
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-70dec8f1f084> in <module>()
----> 1 plot(cos(x),Integer(0),Integer(1))
/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/core/displayhook.py in __call__(self, result)
236 self.start_displayhook()
237 self.write_output_prompt()
--> 238 format_dict = self.compute_format_data(result)
239 self.write_format_data(format_dict)
240 self.update_user_ns(result)
/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/core/displayhook.py in compute_format_data(self, result)
148 MIME type representation of the object.
149 """
--> 150 return self.shell.display_formatter.format(result)
151
152 def write_format_data(self, format_dict):
/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/core/formatters.py in format(self, obj, include, exclude)
124 continue
125 try:
--> 126 data = formatter(obj)
127 except:
128 # FIXME: log the exception
/usr/local/SAGE/local/lib/python2.7/site-packages/sage/misc/sage_extension.pyc in __call__(self, obj)
236 s = format_obj(obj)
237 if s is None:
--> 238 s = super(SagePlainTextFormatter, self).__call__(obj)
239 return s
240
/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/core/formatters.py in __call__(self, obj)
445 type_pprinters=self.type_printers,
446 deferred_pprinters=self.deferred_printers)
--> 447 printer.pretty(obj)
448 printer.flush()
449 return stream.getvalue()
/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/lib/pretty.py in pretty(self, obj)
358 if callable(meth):
359 return meth(obj, self, cycle)
--> 360 return _default_pprint(obj, self, cycle)
361 finally:
362 self.end_group()
/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/lib/pretty.py in _default_pprint(obj, p, cycle)
478 if getattr(klass, '__repr__', None) not in _baseclass_reprs:
479 # A user-provided repr.
--> 480 p.text(repr(obj))
481 return
482 p.begin_group(1, '<')
/usr/local/SAGE/local/lib/python2.7/site-packages/sage/structure/sage_object.so in sage.structure.sage_object.SageObject.__repr__ (sage/structure/sage_object.c:1897)()
/usr/local/SAGE/local/lib/python2.7/site-packages/sage/plot/graphics.pyc in _repr_(self)
823 """
824 if SHOW_DEFAULT:
--> 825 self.show()
826 return ''
827 else:
/usr/local/SAGE/local/lib/python2.7/site-packages/sage/misc/decorators.pyc in wrapper(*args, **kwds)
454 kwds[self.name + "options"] = suboptions
455
--> 456 return func(*args, **kwds)
457
458 #Add the options specified by @options to the signature of the wrapped
/usr/local/SAGE/local/lib/python2.7/site-packages/sage/plot/graphics.pyc in show(self, **kwds)
1798 else:
1799 kwds.setdefault('filename', tmp_filename(ext='.png'))
-> 1800 self.save(**kwds)
1801 os.system('%s %s 2>/dev/null 1>/dev/null &'
1802 % (sage.misc.viewer.png_viewer(), kwds['filename']))
/usr/local/SAGE/local/lib/python2.7/site-packages/sage/misc/decorators.pyc in wrapper(*args, **kwds)
454 kwds[self.name + "options"] = suboptions
455
--> 456 return func(*args, **kwds)
457
458 #Add the options specified by @options to the signature of the wrapped
/usr/local/SAGE/local/lib/python2.7/site-packages/sage/plot/graphics.pyc in save(self, filename, **kwds)
2666 SageObject.save(self, filename)
2667 else:
-> 2668 figure = self.matplotlib(**options)
2669 # You can output in PNG, PS, EPS, PDF, or SVG format, depending
2670 # on the file extension.
/usr/local/SAGE/local/lib/python2.7/site-packages/sage/plot/graphics.pyc in matplotlib(self, filename, xmin, xmax, ymin, ymax, figsize, figure, sub, axes, axes_labels, fontsize, frame, verify, aspect_ratio, gridlines, gridlinesstyle, vgridlinesstyle, hgridlinesstyle, show_legend, legend_options, axes_pad, ticks_integer, tick_formatter, ticks, title, title_pos, base, scale)
2168 axes = self._show_axes
2169
-> 2170 from matplotlib.figure import Figure
2171 from matplotlib import rcParams
2172 self.fontsize(fontsize)
/usr/local/SAGE/local/lib/python2.7/site-packages/matplotlib/__init__.py in <module>()
131 import sys, os, tempfile
132
--> 133 from matplotlib.rcsetup import (defaultParams,
134 validate_backend,
135 validate_toolbar,
/usr/local/SAGE/local/lib/python2.7/site-packages/matplotlib/rcsetup.py in <module>()
17 import warnings
18 from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
---> 19 from matplotlib.colors import is_color_like
20
21 #interactive_bk = ['gtk', 'gtkagg', 'gtkcairo', 'fltkagg', 'qtagg', 'qt4agg',
/usr/local/SAGE/local/lib/python2.7/site-packages/matplotlib/colors.py in <module>()
50 """
51 import re
---> 52 import numpy as np
53 from numpy import ma
54 import matplotlib.cbook as cbook
/usr/local/SAGE/local/lib/python2.7/site-packages/numpy/__init__.py in <module>()
134 return loader(*packages, **options)
135
--> 136 import add_newdocs
137 __all__ = ['add_newdocs']
138
/usr/local/SAGE/local/lib/python2.7/site-packages/numpy/add_newdocs.py in <module>()
7 # core/fromnumeric.py, core/defmatrix.py up-to-date.
8
----> 9 from numpy.lib import add_newdoc
10
11 ###############################################################################
/usr/local/SAGE/local/lib/python2.7/site-packages/numpy/lib/__init__.py in <module>()
11
12 import scimath as emath
---> 13 from polynomial import *
14 #import convertcode
15 from utils import *
/usr/local/SAGE/local/lib/python2.7/site-packages/numpy/lib/polynomial.py in <module>()
15 from numpy.lib.function_base import trim_zeros, sort_complex
16 from numpy.lib.type_check import iscomplex, real, imag
---> 17 from numpy.linalg import eigvals, lstsq
18
19 class RankWarning(UserWarning):
/usr/local/SAGE/local/lib/python2.7/site-packages/numpy/linalg/__init__.py in <module>()
46 from info import __doc__
47
---> 48 from linalg import *
49
50 from numpy.testing import Tester
/usr/local/SAGE/local/lib/python2.7/site-packages/numpy/linalg/linalg.py in <module>()
21 isfinite, size, finfo, absolute, log, exp
22 from numpy.lib import triu
---> 23 from numpy.linalg import lapack_lite
24 from numpy.matrixlib.defmatrix import matrix_power
25 from numpy.compat import asbytes
**ImportError: /lib/i386-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by /usr/local/SAGE/local/lib/libgfortran.so.3)**
I dont know what to do about this. Please help! Please remember that im a basic LINUX user.
Thanks a lot!!
mresimulatorThu, 16 May 2013 23:15:11 +0200https://ask.sagemath.org/question/7521/Secure notebook with htaccess?https://ask.sagemath.org/question/10247/secure-notebook-with-htaccess/Hi,
we installed sage-5.9 on a server (Ubuntu 12.04) of our working group. We would like to open the port, such that all members of the team can access the notebook without a ssh tunnel. Is it possible to secure the access with htaccess or something like that?
Or to ask it in an other direction: Is a notebook secure enough without restricting the access? The users are not allowed to create new users. But could this be a security issue for our server?
Thanks.Ivo HedtkeMon, 17 Jun 2013 12:16:54 +0200https://ask.sagemath.org/question/10247/Running Sage from the commad line in Ubuntu 12.04https://ask.sagemath.org/question/9650/running-sage-from-the-commad-line-in-ubuntu-1204/I'm relatively new to Sage and to GNU/ Linux. Sorry in advance if this question seem silly. But I need to learn how to do this. Here is my problem:
I have Sage installed from source in /usr/local/src. So every time I want to run Sage I have to type on the terminal
$ cd /usr/local/src/sage-5.4.1/
and once inside this directory, I have to type
./sage
How can I start Sage directly at the prompt $ just by typing "sage"?
Thanks a lot for the answer.
jdiosesTue, 25 Dec 2012 20:00:15 +0100https://ask.sagemath.org/question/9650/mpir error on 64bithttps://ask.sagemath.org/question/9575/mpir-error-on-64bit/Hallo,
installing sage5.4 failed on a 64bit machine under linux debian lenny.
Who can help me. I don't want to change my debiansystem.
Thank you.
Here ist the logfile:
Found package mpir-2.4.0.p6 in spkg/standard/mpir-2.4.0.p6.spkg
mpir-2.4.0.p6
====================================================
Extracting package /hdb2/sage-5.4.1/spkg/standard/mpir-2.4.0.p6.spkg
-rw-r--r-- 1 rau rau 3844522 25. Jul 16:46 /hdb2/sage-5.4.1/spkg/standard/mpir-2.4.0.p6.spkg
Finished extraction
****************************************************
Host system:
Linux localhost 2.6.26-2-amd64 #1 SMP Sun Mar 4 21:48:06 UTC 2012 x86_64 GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-cld --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
****************************************************
Applying patches to upstream sources...
patching file acinclude.m4
patching file configure.in
patching file yasm/Makefile.in
patching file configure
patching file gmp-h.in
patching file mpn/alpha/addlsh1_n.asm
patching file mpn/alpha/sublsh1_n.asm
patching file mpn/ia64/add_n.asm
patching file mpn/ia64/addlsh1_n.asm
patching file mpn/ia64/and_n.asm
patching file mpn/ia64/andn_n.asm
patching file mpn/ia64/ior_n.asm
patching file mpn/ia64/iorn_n.asm
patching file mpn/ia64/lshift.asm
patching file mpn/ia64/nand_n.asm
patching file mpn/ia64/nior_n.asm
patching file mpn/ia64/rsh1add_n.asm
patching file mpn/ia64/rsh1sub_n.asm
patching file mpn/ia64/rshift.asm
patching file mpn/ia64/sub_n.asm
patching file mpn/ia64/sublsh1_n.asm
patching file mpn/ia64/xnor_n.asm
patching file mpn/ia64/xor_n.asm
patching file mpn/m68k/add_n.asm
patching file mpn/m68k/mc68020/addmul_1.asm
patching file mpn/m68k/mc68020/submul_1.asm
patching file mpn/m68k/sub_n.asm
patching file mpn/powerpc32/vmx/and_n.asm
patching file mpn/powerpc32/vmx/andn_n.asm
patching file mpn/powerpc32/vmx/ior_n.asm
patching file mpn/powerpc32/vmx/iorn_n.asm
patching file mpn/powerpc32/vmx/nand_n.asm
patching file mpn/powerpc32/vmx/nior_n.asm
patching file mpn/powerpc32/vmx/xnor_n.asm
patching file mpn/powerpc32/vmx/xor_n.asm
patching file mpn/x86/add_n.asm
patching file mpn/x86/addmul_1.asm
patching file mpn/x86/applenopic/addmul_1.asm
patching file mpn/x86/applenopic/submul_1.asm
patching file mpn/x86/core2/add_n.asm
patching file mpn/x86/core2/sub_n.asm
patching file mpn/x86/k6/add_n.asm
patching file mpn/x86/k6/addmul_1.asm
patching file mpn/x86/k6/mmx/and_n.asm
patching file mpn/x86/k6/mmx/andn_n.asm
patching file mpn/x86/k6/mmx/hamdist.asm
patching file mpn/x86/k6/mmx/ior_n.asm
patching file mpn/x86/k6/mmx/iorn_n.asm
patching file mpn/x86/k6/mmx/nand_n.asm
patching file mpn/x86/k6/mmx/nior_n.asm
patching file mpn/x86/k6/mmx/popcount.asm
patching file mpn/x86/k6/mmx/xnor_n.asm
patching file mpn/x86/k6/mmx/xor_n.asm
patching file mpn/x86/k6/sub_n.asm
patching file mpn/x86/k6/submul_1.asm
patching file mpn/x86/k7/add_n.asm
patching file mpn/x86/k7/addmul_1.asm
patching file mpn/x86/k7/mmx/hamdist.asm
patching file mpn/x86/k7/mmx/popcount.asm
patching file mpn/x86/k7/sub_n.asm
patching file mpn/x86/k7/submul_1.asm
patching file mpn/x86/nehalem/hamdist.asm
patching file mpn/x86/nehalem/popcount.asm
patching file mpn/x86/pentium/add_n.asm
patching file mpn/x86/pentium/addmul_1.asm
patching file mpn/x86/pentium/and_n.asm
patching file mpn/x86/pentium/andn_n.asm
patching file mpn/x86/pentium/ior_n.asm
patching file mpn/x86/pentium/iorn_n.asm
patching file mpn/x86/pentium/nand_n.asm
patching file mpn/x86/pentium/nior_n.asm
patching file mpn/x86/pentium/sub_n.asm
patching file mpn/x86/pentium/submul_1.asm
patching file mpn/x86/pentium/xnor_n.asm
patching file mpn/x86/pentium/xor_n.asm
patching file mpn/x86/pentium4/mmx/hamdist.asm
patching file mpn/x86/pentium4/mmx/popcount.asm
patching file mpn/x86/sub_n.asm
patching file mpn/x86/submul_1.asm
patching file yasm/tools/re2c/code.c
Building a 64-bit version of MPIR.
Building a reduced version of MPIR to bootstrap GCC.
MPIR will later get rebuilt (with the C++ interface and static libraries
enabled) using the new compiler.
Checking what CFLAGS MPIR would use if they were empty...
checking build system type... k8-unknown-linux-gnu
checking host system type... k8-unknown-linux-gnu
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 to enable maintainer-specific portions of Makefiles... no
checking ABI=64
checking compiler gcc -O2 -m64 ... no, gcc-4.3.2 on 64bit is bad, program does not run
configure: error: could not find a working compiler, see config.log for details
Error configuring MPIR (with CFLAGS unset).
Consult /hdb2/sage-5.4.1/spkg/build/mpir-2.4.0.p6/src/config.log for for details.
real 0m2.189s
user 0m0.560s
sys 0m0.472s
************************************************************************
Error installing package mpir-2.4.0.p6
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
/hdb2/sage-5.4.1/spkg/logs/mpir-2.4.0.p6.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/hdb2/sage-5.4.1/spkg/build/mpir-2.4.0.p6 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/hdb2/sage-5.4.1/spkg/build/mpir-2.4.0.p6' && '/hdb2/sage-5.4.1/sage' -sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************amaleaTue, 27 Nov 2012 11:48:57 +0100https://ask.sagemath.org/question/9575/Sage can't find pythonhttps://ask.sagemath.org/question/9412/sage-cant-find-python/I am attempting to run Sage on my Android phone via a Linux image on my sd card. I have Ubuntu 12.04 running on an ARM7 processor, so I downloaded the ARM version of Sage posted on the mirrors. However, after unpacking, Sage won't run, it just shows the into box and then exits. Upon running
sage -python
I get
/home/ubuntu/sage/spkg/bin/sage: line 489: /home/ubuntu/sage/local/bin/ptyhon: No such file or directory
If I run
$ sage -sh
(sage-sh)$ python
Nothing happens, it just comes back to the prompt. Alternatively, if I run
(sage-sh)$ sage-native-execute python
it gives me Python intro. Any thoughts?jaebondWed, 10 Oct 2012 20:44:18 +0200https://ask.sagemath.org/question/9412/Is there a server (ftp server?) that keeps old sage binaries?https://ask.sagemath.org/question/9309/is-there-a-server-ftp-server-that-keeps-old-sage-binaries/I can find any old sage binaries on the web. The sage server and mirrors erase any links to the old ones. I am sure there are kept somewhere.
I would like to try the sage cell server (I need Sage 5.0 on Ubuntu 10.04) but I do not intend to compile the source.shoibalcTue, 11 Sep 2012 00:43:37 +0200https://ask.sagemath.org/question/9309/Trouble installing Linux mint 13 inside windows vistahttps://ask.sagemath.org/question/9147/trouble-installing-linux-mint-13-inside-windows-vista/Hi there. I'm having trouble with the installation of Linux mint 13 inside of windows vista. Here it a list of the errors I get. Any way to work around this??
(initrmfs) /sbin/mount.ntfs: line 1: ELF: not found
/sbin/mount.nfts: line 2: {diamond symbol here}: not found
/sbin/mount.nfts: line 3: syntax error: unexpected ")"
mount: mounting /dev/sda1 on /isodevice failed: no such device
Could not find the ISO /linuxmint/install/installation. isoWhohearer69Wed, 11 Jul 2012 10:23:40 +0200https://ask.sagemath.org/question/9147/Compiling Sage with multiple coreshttps://ask.sagemath.org/question/9093/compiling-sage-with-multiple-cores/Hi all,
I am compiling Sage 5.0.1 in Ubuntu 12.04
According to the book "Sage: Beginner's Guide" to compile with multiple cores one needs to export a variable MAKE. I did so
export MAKe="make -j7"
and everything went well until the Atlas-3 compilation started. While compiling this (which is painfully big) only 1 core is being used.
Is there a way to compile all the parts of sage with multiple processors?
Thanks
JuanPiTue, 19 Jun 2012 07:02:57 +0200https://ask.sagemath.org/question/9093/Does Sage 4.8 run on Scientific Linux 5.4?https://ask.sagemath.org/question/8859/does-sage-48-run-on-scientific-linux-54/Sage 4.3.4 runs fine on SL 5.4.
Sage 4.8 complains:
(/lib64/libc.so.6: version `GLIBC_2.14' not found ).
-Richard VaughnRichard VaughnTue, 10 Apr 2012 15:21:19 +0200https://ask.sagemath.org/question/8859/Build sage with components those are already installedhttps://ask.sagemath.org/question/8547/build-sage-with-components-those-are-already-installed/Hi,
I am using Linux Mint 12 (Ubuntu 11.10 based) mixed with Debian unstable. In fact, I have almost all the components of SAGE installed on my system (python-scipy, R, maxima, ... etc). I am wondering if there are any options available in Makefile or configure file those allow me build *only the sage's interface to these installed packages* rather than build __everything from source spkg__ ?
Gong-Yi LiaoMon, 12 Dec 2011 10:35:00 +0100https://ask.sagemath.org/question/8547/Upgrade sage: build from sources?https://ask.sagemath.org/question/8223/upgrade-sage-build-from-sources/I'm using an older version of Sage (4.5.3) in Ubuntu 10.04. I like it, but I'd like to upgrade to a more recent version. From the command prompt, calling
$ sage -upgrade
throws a scary warning at me:
** WARNING: This is a source-based upgrade, which could take hours,
** fail, and render your Sage install useless!! This is a binary
** install, so upgrading in place is *not* recommended unless you are
** an expert. Please consider installing a new binary from
** http://sagemath.org instead.
**Question:** Is there really a significant advantage to building the binaries from source?
I am running a Sony Vaio laptop on 4 2.13 GHz Intel cores. (I can specify more stats if it helps somebody to give me good advice.)Sammy BlackWed, 13 Jul 2011 18:16:37 +0200https://ask.sagemath.org/question/8223/precompiled Atlas - cannot import name flapackhttps://ask.sagemath.org/question/7926/precompiled-atlas-cannot-import-name-flapack/I tried to get sage to run on a windows Laptop using "andLinux" - this is Ubuntu on a Colinux kernel. Atlas refused to build, so I installed atlas using synaptic and followed advice from here (steps from John Palmieri):
(http://ask.sagemath.org/question/107/building-atlas)
it compiled, but some doctest failed, mainly concerning linear algebra, there are errors like:
- ImportError:
/mnt/extend/sage-4.6.1/local/lib/python/site-packages/scipy/linalg/clapack.so:
undefined symbol: clapack_sgesv
- ImportError: cannot import name
flapack
I have the full testlog at
(http://sage.math.washington.edu/home/emil/doc/SageWin)
Now, it almost works, would be cool if somebody could give some hints how to plug in those atlas/blas/lapack libraries correctly.
Any pointers appreciated!
Emil WidmannSun, 06 Feb 2011 18:26:13 +0100https://ask.sagemath.org/question/7926/