Ask Your Question

Revision history [back]

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