I see that there are a number of topics on this error message, but I've tried every solution I have found to no avail. This is my first question here, but I'm going to try and include all of the info that has been useful in other threads.
I'm attempting to install the flagmatic software, which is a mathematical package that works with SAGE and python. However, I'm having a compiler issue. Namely when I run
sage -python setup.py install
I receive the output:
running install running build running build_py running build_ext skipping 'flagmatic/flag.c' Cython extension (up-to-date) building 'flagmatic.flag' 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/csage -I/usr/lib/sagemath/devel/sage/sage/ext -I/usr/lib/sagemath/devel/sage -I/usr/lib/sagemath/local/include/python2.7 -c flagmatic/flag.c -o build/temp.linux-x86_64-2.7/flagmatic/flag.o -O3 -Wall -Wno-strict-prototypes **gcc: error trying to exec 'cc1': execvp: No such file or directory error: command 'gcc' failed with exit status 1**
Where I've bolded the last bit for emphasis, as I believe it to be at the heart of my problem. I have reinstalled the package build-essential (sudo apt-get install build-essential) to no avail.
gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 g++ --version g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 cc --version cc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
It seems like the compiler gcc can't find cc1 when I run it in sage. As far as I can tell, cc1 is located:
and when do this:
It seems like since /usr/lib ins in my path, gcc should be looking there, correct? Is there an easy way to see why execvp can't find cc1 when I try and install the aforementioned package?
Please let me know if there is anything else that would be helpful re: my system specs or versions of anything. I will update here with edits:
gcc -print-prog-name=cc1 /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1 apt-cache policy cpp cpp: Installed: 4:4.8.2-1ubuntu6 Candidate: 4:4.8.2-1ubuntu6 Version table: *** 4:4.8.2-1ubuntu6 0 500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages 100 /var/lib/dpkg/status