yshigeru
yshigeru

Reputation: 51

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.

Upvotes: 5

Views: 4970

Answers (3)

sgeto
sgeto

Reputation: 51

you can override the location of the temporary directory during configure like so:

./configure TMPDIR=path/to/your/tmp/folder

Upvotes: 4

ramit girdhar
ramit girdhar

Reputation: 2422

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

Upvotes: 5

Ben Ashton
Ben Ashton

Reputation: 1405

If your / directory is full, and the program is trying to write to your /tmp directory, try renaming the tmp directory to something like tmp_old, then create a symbolic link to your new tmp folder like: ln -s /mnt/tmp /tmp

Upvotes: 0

Related Questions