Ruby Question

Rails could not find a temporary directory (ArgumentError)

I'm uploading my Rails proyect to a Ubuntu Server running 12.04LTS and I can't seem to fix this issue! Whether I do a bundle install or try to use the whenever gem I get that error! I've read a lot but still I'm unable to fix it

/lib/ruby/2.0.0/tmpdir.rb:34:in `tmpdir': could not find a temporary directory (ArgumentError)

And my ls -la of the / folder

Any ideas?
P.s I tried chmod -R 777 on /tmp with no luck

Answer Source

Your Ubuntu installation probably doesn't have TMPDIR set. You should set that variable in your startup.

This link has more information on environment variables in Ubuntu:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download