The temporary directory is not writable

When I compile or save a new integration component in the Enterprise Integrator I get the following error “The temporary directory is not writable”. When i get this error the integration component does not save.

Does anybody know what the problem is and how to fix it?