Permission denied - /tmp/.ruby_inline/Inline_ImageScience_cdab.c
Posted
by Ikaros
on Stack Overflow
See other posts from Stack Overflow
or by Ikaros
Published on 2010-04-02T02:47:36Z
Indexed on
2010/04/02
2:53 UTC
Read the original article
Hit count: 316
ruby-on-rails
I have a Ruby on Rails app that I've recently deployed to a remote server (Ubuntu 9.10, nginx, passenger, ruby-enterprise) and I'm getting the error (works fine locally):
Permission denied - /var/www/project_name/tmp/.ruby_inline/Inline_ImageScience_cdab.c
First, the folder /tmp/.ruby_inline/ is empty - should it be? Is it trying to create Inline_ImageScience_cdab.c or read it?
I think I have all the required gems installed: 'gem list' shows image_science and RubyInline installed. libfreeimage3 and libfreeimage-dev are also installed.
I've run chmod 755 on /tmp/.ruby_inline/ to match the permissions on surrounding folders but I cannot go any higher than that, however, or I get another error:
/var/www/project_name/tmp/.ruby_inline is insecure (40777). It may not be group or world writable. Exiting.
And I guess second, why am I getting this error? :)
Thanks
© Stack Overflow or respective owner