ruby on rails - Error running wkhtmltopdf -- (error while loading shared libraries) -


when app runs (or when run commandline) wkhtmltopdf command following error: (showing command line)

#> wkhtmltopdf  wkhtmltopdf: error while loading shared libraries: libxrender.so.1: cannot open shared object file: no such file or directory 

i noticed lib indeed in /usr/lib folder not /lib folder. matter 1 of these in? there way recognize it?

#> ls -l /usr/lib/libxrender.so* lrwxrwxrwx 1 root root    19 feb 17 07:20 /usr/lib/libxrender.so -> libxrender.so.1.3.0 lrwxrwxrwx 1 root root    19 feb 17 07:20 /usr/lib/libxrender.so.1 -> libxrender.so.1.3.0 -rwxr-xr-x 1 root root 39184 jan 29  2010 /usr/lib/libxrender.so.1.3.0  #> ls -l /lib/libxrender.so* ls: cannot access /lib/libxrender.so*: no such file or directory 

i checked dependencies of lib

# ldd /usr/lib/libxrender.so.1     libx11.so.6 => /usr/lib/libx11.so.6 (0x00002b9cb5afd000)     libc.so.6 => /lib/libc.so.6 (0x00002b9cb5e04000)     libxau.so.6 => /usr/lib/libxau.so.6 (0x00002b9cb6143000)     libxdmcp.so.6 => /usr/lib/libxdmcp.so.6 (0x00002b9cb6347000)     libdl.so.2 => /lib/libdl.so.2 (0x00002b9cb654d000)     /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) 

this running on engineyard gentoo server

the unix packages x11-libs/libxext , x11-libs/libxrender dependencies

gentoo:

sudo emerge libxext libxrender 

pdfkit wiki explains in more detail how wkhtmltopdf working on engine yard. pdfkit wiki

debian or ubuntu:

sudo apt-get install libxrender1 

hope helps


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -