command 'x86_64-linux-gnu-gcc' failed with exit status 1

前端 未结 3 1236
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 00:50

I tried to install \"scholarly\" package, but I keep receiving this error:

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -         


        
相关标签:
3条回答
  • 2020-12-13 00:53

    I had the same problem. This one helped me:

    sudo apt-get install build-essential libssl-dev libffi-dev python-dev
    

    If you using python3, try to replace python-dev with python3-dev

    0 讨论(0)
  • 2020-12-13 01:00

    Install lib32ncurses5-dev:

    sudo apt-get install lib32ncurses5-dev
    
    0 讨论(0)
  • 2020-12-13 01:15

    In my case the exception was:

    Exception:

    #include <snappy-c.h>
              ^~~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit
    status 1
    

    And I solved it by installing these libraries:

    sudo apt-get install libsnappy-dev
    
    pip3 install python-snappy
    

    Here is a great explanation about the cause of the exception and how we can get rid of that.

    0 讨论(0)
提交回复
热议问题