open-mmlab / denseflow

Extracting optical flow and frames
https://open-mmlab.github.io/
MIT License
307 stars 61 forks source link

sh zzautoconf.sh error #24

Closed ShoufaChen closed 4 years ago

ShoufaChen commented 4 years ago

Hi, I run

sh zzautoconf.sh

but failed with the following info:

autoconf will be installed in /home/visual/app
Dependency: m4, perl
downloads/autoconf.tar.gz exist
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: autobuild project... GNU Autoconf
configure: autobuild revision... 2.69
configure: autobuild hostname... hkgpuserver06
configure: autobuild timestamp... 20201127T042934Z
checking whether /bin/sh -n is known to work... no
checking for characters that cannot appear in file names... none
checking whether directories can have trailing spaces... yes
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.
GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.
GNU M4 1.4.15 uses a buggy replacement strstr on some systems.
Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug.
ShoufaChen commented 4 years ago

I manually install M4 on the local path and export:

wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz
tar -xvf m4-1.4.9.tar.gz
cd m4-1.4.9
./configure --prefix=/home/xxx/app/usr/local/m4

export PATH=/home/xxx/app/usr/local/m4/bin/:$PATH
innerlee commented 4 years ago

hmm https://github.com/innerlee/setup/blob/master/zzm4.sh