ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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/10.ros.sh:12: can't create temp file for here document: no such file or directory
/opt/ros/lunar/etc/catkin/profile.d/99.roslisp.sh:4: 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
1

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: https://github.com/serialoverflow/dot... , 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

Comments

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

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

Question Tools

2 followers

Stats

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

Seen: 1,557 times

Last updated: Jul 18 '17