I'm trying to install wkhtmltopdf on my virtual private server. This is a tool to convert HTML to PDF.
I did the following:
./wkhtmltopdf-i386: error while loading shared libraries: libXrender.so.1: cannot open shared object file: No such file or directory
Before you install you will need to have X11, gcc and openssl
installed. On Debian/Ubuntu this can be done as follows:
sudo aptitude install openssl build-essential xorg libssl-dev libxrender-dev
sudo: aptitude: command not found
See if you have any file called libXrender in your /usr/lib directory. If you do, try creating a symbolic link with libXrender.so.1
ln -s libXrender-whatever libXrender.so.1
Try installing again your program.
If you don't have any libXrender file in /usr/lib, find the package by searching in google (you need to know your OS version)
uname -srv (will likely tell you your kernel version and distribution name)
Once you download the package, just run
rpm -Uvh [rpm-file-downloaded-for-libXrender]
Then try installing your program again.
If you use redhat, I believe you can simply do
yum install [any-package-name] and it will download the appropriate version for your distro, if it finds it by the name you provided.