ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

New terminal 'can't create temp file' no such file or directory?

asked 2017-07-17 20:32:52 -0500

oharleySie gravatar image

updated 2017-07-18 17:36:04 -0500

Technically not a ROS problem, but a misconfiguration/permissions error with zsh. When I create a new terminal I was warned that:

/opt/ros/lunar/etc/catkin/profile.d/ can't create temp file for here document: no such file or directory
/opt/ros/lunar/etc/catkin/profile.d/ can't create temp file for here document: no such file or directory
/etc/zsh/zshrc:439: can't create temp file for here document : no such file or directory

These are all to do with file creation, and I assume it's a permissions error I created an empty catkin_ws and did a catkin_make but it doesn't seem to have done anything.

I'm running Debian Stretch (9.0), ROS Lunar, zsh (I source the setup.bash in my .bashrc and the equivalent setup.zsh my zshrc.pre)

When I installed I followed the instructions to do sudo rosdep init then rosdep update without the sudo.

Opening up a new bash shell I get no errors and the environment variableROS_PACKAGE_PATH is populated, whereas using zsh the variable exists but has no value.

Any suggestions? I feel like I need to change the ownership of something...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-17 23:14:56 -0500

ahendrix gravatar image

I searched for can't create temp file for here document: and found this file: , which seems to suggest that zsh can't create a temporary file for some reason. Their solution is to set the TMPDIR environment variable, but in your case I suspect the permissions on your /tmp directory are wrong, or /tmp is missing completely.

edit flag offensive delete link more


I had pointed my TMPDIR to a nonexistent folder, thanks for this!

oharleySie gravatar image oharleySie  ( 2017-07-18 17:34:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-07-17 20:27:00 -0500

Seen: 1,365 times

Last updated: Jul 18 '17