mreiferson/py-wkhtmltox — Issue #3: Install on Ubuntu
Author: mbrochh
Created: 2011-12-13 06:58:04+00:00
State: open

I'm a bit lost trying to install this on my Ubuntu machine.

* I cloned this repo
* I cloned https://github.com/antialize/wkhtmltopdf
* I copied kwhtmltopdf/include/* to /usr/local/include/
* I downloaded http://wkhtmltopdf.googlecode.com/files/libwkhtmltox-0.11.0_rc1-i386.tar.bz2 and copied it to /usr/local/lib/

I think now I should meet the prerequisites?

When I try python setup.py install in my venv I get the following:

python setup.py install
running install
running build
running build_ext
building 'wkhtmltox' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c wkhtmltox.c -o build/temp.linux-i686-2.7/wkhtmltox.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-i686-2.7/wkhtmltox.o -lwkhtmltox -o build/lib.linux-i686-2.7/wkhtmltox.so
/usr/bin/ld: cannot find -lwkhtmltox
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1