Naveen Kumar Naveen Kumar - 3 months ago 19
Linux Question

Could not launch cscope in RHEL

I could not launch cscope.I am getting the following error,

[naveen@hello]$ cscope -d
cscope: Could not create private temp dir /tmp/cscope.9344


I have the following files in the same folder which is related to cscope.

[naveen@hello]$ls
:
cscope.files
cscope.in.out
cscope.out
cscope.po.out
tags
:


Is there any workaround ?

Answer

Check following

  • if you have enough free storage on /tmp/

  • if the user with which you are running cscope has write permission to /tmp/.

  • try to change the temporary directory location by setting value for TMPDIR e.g. TMPDIR=/var/tmp

The man page cscope is here