error: command 'gcc' failed with exit status when installing psycopg2

前端 未结 12 1938
情深已故
情深已故 2020-12-15 03:59

i need to install psycopg2 for openerp installation process, but i always found that error. i\'ve already used pip and easy_inst

12条回答
  •  独厮守ぢ
    2020-12-15 04:21

    On a fresh ubuntu 14.04.2 LTS on an EC2 instance, I was able to install psycopg2 after instaling the following packages:

    sudo apt-get install gcc
    sudo apt-get install postgres-xc-server-dev
    sudo apt-get install libpq-dev
    sudo apt-get install postgresql-client-common
    sudo apt-get install postgresql-common
    

    And on a fresh AMI linux (CentOS) instance:

    sudo yum install postgresql-devel
    sudo yum install gcc*
    

    Hope it helps,

    Erez

提交回复
热议问题