Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the temprary directory for configure script?

When I run the configure script to build GNU global on Linux system, I got the message "cannot create temp file for here document: No space left on device". Indeed, / disk was full.

So I tried to change temporary directory to another disk, and I set the environment variable TMPDIR, TMP, and TEMP to another disk directory, say /mnt/tmp.

I retried to run configure script, but I got the same message. What's wrong? Please give me any advice.

Thanks.

like image 596
yshigeru Avatar asked Feb 28 '12 02:02

yshigeru


1 Answers

you could add the below statement at the beginning of your script.

export TMPDIR='DIRNAME'

where "DIRNAME" is any directory on which you have full permissions and has sufficient memory available in it

like image 127
ramit girdhar Avatar answered Oct 02 '22 22:10

ramit girdhar