IMGKit
IMGKit copied to clipboard
Installing on Ubuntu
It's a great gem. However, I ran into the following error when trying to install it on an Ubuntu Linux 12.04 server:
root@server:/var/www/sitename/staging/current# imgkit --install-wkhtmltoimage
/var/www/sitename/staging/shared/bundle/ruby/2.0.0/gems/imgkit-1.3.9/bin/imgkit:12:in `detect_architecture': Use RbConfig instead of obsolete and deprecated Config.
/var/www/sitename/staging/shared/bundle/ruby/2.0.0/gems/imgkit-1.3.9/bin/imgkit:12:in `detect_architecture': Use RbConfig instead of obsolete and deprecated Config.
/usr/local/rvm/gems/ruby-2.0.0-p0@global/gems/bundler-1.3.0/lib/bundler.rb:272: warning: Insecure world writable dir /var/www/sitename/staging/shared/bundle/ruby in PATH, mode 040777
rm: cannot remove `/usr/local/bin/wkhtmltoimage': No such file or directory
Downloading wkhtmltoimage-0.11.0_rc1-static-amd64.tar.bz2 from http://wkhtmltopdf.googlecode.com/files/wkhtmltoimage-0.11.0_rc1-static-amd64.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.6M 100 10.6M 0 0 1441k 0 0:00:07 0:00:07 --:--:-- 1942k
Installing wkhtmltoimage-0.11.0_rc1-static-amd64.tar.bz2 to /usr/local/bin/wkhtmltoimage
mv: cannot stat `wkhtmltoimage': No such file or directory
chmod: cannot access `/usr/local/bin/wkhtmltoimage': No such file or directory
I can then do the following, and after that I can use IMGKit without problems:
$ cd /tmp
$ mv wkhtmltoimage-amd64 /usr/local/bin/wkhtmltoimage
Thanks, /Lasse
thanks, it worked
thanks :+1:
thanks, still useful today.