Install Reportlab (error: gcc command failed with exit status 1)

I am trying to install ReportLab 2.4 on a server 10.04.2 with virtualenv. In the folder ReportLab_2_4 I use:

python setup.py install 

and the error I get:

Error: gcc command failed with exit status 1

+14
python virtualenv openerp
Sep 06 2018-11-11T00:
source share
3 answers

As Skimantas said, I think you should install python-dev. sudo apt-get install python-dev , and I was able to install reportlab in my home directory with the command " pip install reportlab " without sudo, as mentioned earlier. I only need root access to install python-dev.

Soon..

I installed virtualenv

 sudo apt-get install python-setuptools sudo easy_install virtualenv virtualenv --no-site-packages virtual01 

I have installed

 sudo apt-get install python-dev 

I will activate my virtual environment to be sure ...

 source ~/virtual01/bin/activate cd ~/virtual01/bin pip install reportlab 

What is it.

(I just wrote down what I did in Ubuntu 10.04 LTS)

+14
Sep 14 '11 at 9:23
source share

I got a very similar error trying to install Reportlab on Mac OS X, which I recently upgraded to 10.9. Launch Xcode, agree to the new license agreement and try again.

0
Nov 14 '13 at 9:57
source share

On the other hand, someone is deploying reportlab for AWS EC2 / ElasticBeanstalk ... My solution is below.

 deactivate && sudo pip install reportlab sudo cp -r /usr/local/lib64/python2.7/site-packages/reportlab /opt/python/run/venv/lib/python2.7/site-packages/ 

These are super hacks, but this is a workaround to run it on my django stack with AWS ElasticBeanstalk. I just modified .ebextensions / 02_python.config to do the above, before continuing on, I think it is set to run 2nd after using pip to set .txt requirements in venv.

0
Jul 30 '15 at 3:09
source share



All Articles