Tra gli ultimi articoli

ffmpeg : Unable to create and execute files in /tmp.

errorsQuesto è un errore piuttosto comune nella compilazione di ffmpeg, mi è infatti successo varie volte di trovarmi bloccato in questa situazione di stallo, nonostante la mia /tmp fosse scrivibile.

L’errore è il seguente:

Unable to create and execute files in /tmp. Set the TMPDIR environment variable to another directory and make sure that /tmp is not mounted noexec.
Sanity test failed.
If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file “config.err” produced by configure as this will help solving the problem.

Si risolve utilizzando questa compilazione modificata:

cd ~/ffmpeg_sources
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
export TMPDIR=~/tmp-ffmpeg
mkdir $TMPDIR
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --pkg-config-flags="--static" --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
make
make install
rm -rf $TMPDIR
export TMPDIR=
make distclean
hash -r

About Stefano Berardi

Stefano Berardi
''non sono superman... I'm not superman..."