Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

python setup.py install

and the error I get:

error: command 'gcc' failed with exit status 1

like image 304
user780862 Avatar asked Sep 06 '11 19:09

user780862


1 Answers

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

Shortly..

I installed virtualenv

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

I installed

sudo apt-get install python-dev

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

source  ~/virtual01/bin/activate

cd ~/virtual01/bin
pip install reportlab

And that's it.

(I just recorded what I did in Ubuntu 10.04 LTS)

like image 137
Eino Mäkitalo Avatar answered Sep 23 '22 20:09

Eino Mäkitalo