Hi everybody
I ran this code below and an error occurred :(%cython
def fiboR_SG_CYTHON(int n):
if n < 2:
return n
else:
return fiboR_SG_CYTHON(n-1) + fiboR_SG_CYTHON(n-2)
Error in lines 1-1
Traceback (most recent call last):
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 957, in execute
exec compile(block+'\n', '', 'single') in namespace, locals
File "", line 1, in <module>
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 998, in execute_with_code_decorators
code = code_decorator(code)
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 1639, in cython
modname, path = sage.misc.cython.cython(filename, **kwds)
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/cython.py", line 477, in cython
raise RuntimeError("Error compiling {}:\n{}\n{}".format(filename, log, err))
RuntimeError: Error compiling /projects/46d44842-c792-462b-90c5-dcbbc70987b1/.sage/temp/bc7ef4e027e3/521/dir__PrxDl/a.pyx:
running build
running build_ext
building '_projects_46d44842_c792_462b_90c5_dcbbc70987b1__sage_temp_bc7ef4e027e3_521_dir__PrxDl_a_pyx_0' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -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-1.11.0-py2.7-linux-x86_64.egg/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/usr/lib/sagemath/local/lib/python2.7/site-packages/cysignals -I/projects/46d44842-c792-462b-90c5-dcbbc70987b1/.sage/temp/bc7ef4e027e3/521/dir__PrxDl -I/usr/lib/sagemath/local/include/python2.7 -c _projects_46d44842_c792_462b_90c5_dcbbc70987b1__sage_temp_bc7ef4e027e3_521_dir__PrxDl_a_pyx_0.c -o build/temp.linux-x86_64-2.7/_projects_46d44842_c792_462b_90c5_dcbbc70987b1__sage_temp_bc7ef4e027e3_521_dir__PrxDl_a_pyx_0.o -w -O2
gcc: error trying to exec 'cc1': execvp: No such file or directory
error: command 'gcc' failed with exit status 1