Running a Sage file
I want to run the following program (DGHV crypto system) using Sage.
I put all the files into a directory called the-master and ran the following commands. First,
sage: load_attach_path("/Users/my_name/Desktop/fhe-master/")
sage: load("dghv.sage")
But then it gives me the following error.
Compiling /Users/my_name/Desktop/fhe-master/scalprod.spyx... Error compiling cython file: Error compiling /Users/my_name/Desktop/fhe-master/scalprod.spyx: running build running build_ext building '_Users_my_name_Desktop_fhe_master_scalprod_spyx_24' extension gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Sage-6.3.app/Contents/Resources/sage/local/include/csage -I/Applications/Sage-6.3.app/Contents/Resources/sage/local/include -I/Applications/Sage-6.3.app/Contents/Resources/sage/local/include/pytho\ n2.7 -I/Applications/Sage-6.3.app/Contents/Resources/sage/local/lib/python/si\ te-packages/numpy/core/include -I/Applications/Sage-6.3.app/Contents/Resources/sage/src/sage/ext -I/Applications/Sage-6.3.app/Contents/Resources/sage/src -I/Applications/Sage-6.3.app/Contents/Resources/sage/src/sage/gsl -I/Users/Sudharaka/Desktop/fhe-master -I/Applications/Sage-6.3.app/Contents/Resources/sage/local/include/pytho\ n2.7 -c _Users_my_name_Desktop_fhe_master_scalprod_spyx_24.c -o build/temp.macosx-10.7-x86_64-2.7/_Users_my_name_Desktop_fhe_master_sc\ alprod_spyx_24.o -w -O2
In file included from /Applications/Sage-6.3.app/Contents/Resources/sage/local/bin/../lib/gcc/\ x86_64-apple-darwin11.4.2/4.7.3/include-fixed/syslimits.h:7:0, from /Applications/Sage-6.3.app/Contents/Resources/sage/local/bin/../lib/gcc/\ x86_64-apple-darwin11.4.2/4.7.3/include-fixed/limits.h:34, from /Applications/Sage-6.3.app/Contents/Resources/sage/local/include/python2\ .7/Python.h:19, from _Users_my_name_Desktop_fhe_master_scalprod_spyx_24.c:16: /Applications/Sage-6.3.app/Contents/Resources/sage/local/bin/../lib/gcc/\ x86_64-apple-darwin11.4.2/4.7.3/include-fixed/limits.h:169:61: fatal error: limits.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1
Can anybody please prove me some insight on what is going wrong here?
Thank you.