我有Ubuntu 14.04。
我正试图安装一个python库(deepdish)
当我执行命令sudo python setup.py install时,我得到以下错误。在x86_64-linux-gnu-gcc: internal compiler error: Segmentation fault (program collect2)
在尝试安装或制作其他东西时,我也面临类似类型的“内部编译器错误”。我想我的系统出了点问题。好像有什么东西被腐蚀了。我想不出原因。可能与gcc或build essential有关。在
具体输出如下:
^{pr2}$
编辑
我尝试了以下几点:$ ldd /usr/bin/gcc
linux-vdso.so.1 => (0x00007fff5d7fe000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2c8ba69000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2c8be74000)
$ catchsegv usr/bin/gcc
/usr/bin/catchsegv: 58: /usr/bin/catchsegv: usr/bin/gcc: not found
$ ls -lah /usr/bin/gcc*
lrwxrwxrwx 1 root root 7 Apr 8 2014 /usr/bin/gcc -> gcc-4.8
-rwxr-xr-x 1 root root 566K Mar 20 2014 /usr/bin/gcc-4.7
-rwxr-xr-x 1 root root 758K May 15 00:24 /usr/bin/gcc-4.8
lrwxrwxrwx 1 root root 10 Apr 8 2014 /usr/bin/gcc-ar -> gcc-ar-4.8
-rwxr-xr-x 1 root root 23K Mar 20 2014 /usr/bin/gcc-ar-4.7
-rwxr-xr-x 1 root root 27K May 15 00:24 /usr/bin/gcc-ar-4.8
lrwxrwxrwx 1 root root 10 Apr 8 2014 /usr/bin/gcc-nm -> gcc-nm-4.8
-rwxr-xr-x 1 root root 23K Mar 20 2014 /usr/bin/gcc-nm-4.7
-rwxr-xr-x 1 root root 27K May 15 00:24 /usr/bin/gcc-nm-4.8
lrwxrwxrwx 1 root root 14 Apr 8 2014 /usr/bin/gcc-ranlib -> gcc-ranlib-4.8
-rwxr-xr-x 1 root root 23K Mar 20 2014 /usr/bin/gcc-ranlib-4.7
-rwxr-xr-x 1 root root 27K May 15 00:24 /usr/bin/gcc-ranlib-4.8