How to set the TMPDIR environment variable to another directory?

I am trying to compile ffmpeg and there is a problem with tmp dir because it is installed with noexec:

./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared Unable to create and execute files in / tmp. Set the TMPDIR environment variable to a different directory and make sure that it is not set by noexec. Failed to verify performance.

If you think that configure made a mistake, make sure you are using the latest version from SVN. If the latest version failed, report the problems to the ffmpeg-user@mplayerhq.hu mailing list or IRC # ffmpeg on irc.freenode.net. Include the "config.err" log file created as this will help solve the problem.

How to set the TMPDIR environment variable to another directory?

+6
source share
2 answers

I managed to do this using the following code:

export TMPDIR=~/tmp-ffmpeg mkdir $TMPDIR ./configure --enable-gpl --enable-version3 --enable-shared --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib" make make install rm -rf $TMPDIR export TMPDIR= 

Hope this helps someone else -)

+17
source

Try the following:

 TMPDIR=/some/other/dir ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared 

If you want to run several commands with the new TMPDIR and suppose you use bash as a shell, export first.

 export TMPDIR=/some/other/dir ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared ... 
+2
source

Source: https://habr.com/ru/post/921540/


All Articles