Ask Your Question

psedorandom's profile - activity

2017-09-18 02:08:34 +0200 received badge  Student (source)
2016-02-20 16:53:43 +0200 received badge  Notable Question (source)
2016-02-20 16:53:43 +0200 received badge  Popular Question (source)
2015-02-09 03:55:47 +0200 answered a question truncated output problem

Empty the cache in your browser if you are using the notebook mode. I am pretty sure this will solve the problem.

2014-10-21 19:58:07 +0200 commented answer Running a Sage file

I am sorry, I don't know much about this forum and this is the first time I am using it. I will reedit the questions in the future. I didn't compile from source. I am using Sage 6.3 on a Mac and I used the Sage.app to instal it. What version of Sage did you use by the way?

2014-10-21 19:12:21 +0200 received badge  Scholar (source)
2014-10-21 19:12:10 +0200 answered a question Running a Sage file

Thanks much for your answer. I edited the file as you suggested but then I get the following error message. It seems to me that the error message says that the limits.h header file is missing. Probably it's not pointing to the correct C header files. I would really appreciate if you can give any suggestions to correct this 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_0' extension creating build creating build/temp.macosx-10.7-x86_64-2.7 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_0.c -o build/temp.macosx-10.7-x86_64-2.7/_Users_my_name_Desktop_fhe_master_sc\ alprod_spyx_0.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_0.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

2014-10-19 08:34:18 +0200 asked a question Running a Sage file

I want to run the following program (DGHV crypto system) using Sage.

https://github.com/coron/fhe

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.