I use Netrunner Linux, Sagemath 6.9 and when type:
load("/home/jmarcellopereira/fiboR_SG.spyx") in notebook, occurs:
Compiling /home/jmarcellopereira/fiboR_SG.spyx...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_21.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n"
+
_support_.preparse_worksheet_cell(base64.b64decode("bG9hZCgiL2hvbWUvam1hcmNlbGxvcGVyZWlyYS9maWJvUl9TRy5zcHl4Iik="),globals())+"\\n");
execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpazQfCx/___code___.py", line 2, in <module>
exec compile(u'load("/home/jmarcellopereira/fiboR_SG.spyx")
File "", line 1, in <module>
File "sage/structure/sage_object.pyx", line 1018, in
sage.structure.sage_object.load
(/mnt/highperf/buildbot/slave/sage_git/build/src/build/cythonized/sage/structure/sage_object.c:11434)
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/load.py",
line 294, in load
exec(load_cython(fpath), globals)
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/load.py",
line 65, in load_cython
mod, dir = cython(name, compile_message=True, use_cache=True)
File
"/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/cython.py", line
493, in cython
raise RuntimeError("Error compiling {}:\n{}\n{}".format(filename, log, err))
RuntimeError: Error compiling /home/jmarcellopereira/fiboR_SG.spyx:
running build
running build_ext
building '_home_jmarcellopereira_fiboR_SG_spyx_2' extension
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
-I/usr/lib/sagemath/local/include -I/usr/lib/sagemath/local/include/python2.7
-I/usr/lib/sagemath/local/lib/python2.7/site-packages/numpy/core/include
-I/usr/lib/sagemath/local/lib/python2.7/site-packages
-I/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/ext
-I/home/jmarcellopereira -I/usr/lib/sagemath/local/include/python2.7 -c
_home_jmarcellopereira_fiboR_SG_spyx_2.c -o
build/temp.linux-x86_64-2.7/_home_jmarcellopereira_fiboR_SG_spyx_2.o -w -O2
*gcc: error trying to exec 'cc1': execvp: No such file or directory
error: command 'gcc' failed with exit status 1The code file spys:*
def fiboR_SG(n):
if n < 2:
return n
else:
return fiboR_SG(n-1) + fiboR_SG(n-2)
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.