IMGKit icon indicating copy to clipboard operation
IMGKit copied to clipboard

Installing on Ubuntu

Open lassebunk opened this issue 11 years ago • 3 comments

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

lassebunk avatar Mar 18 '13 16:03 lassebunk

thanks, it worked

aashish avatar May 01 '13 10:05 aashish

thanks :+1:

sibanand-cis avatar May 02 '13 15:05 sibanand-cis

thanks, still useful today.

ivycheung avatar Sep 11 '14 00:09 ivycheung