viper-framework / viper-docker

22 stars 18 forks source link

Docker build fails - missing flex package #5

Closed seamustuohy closed 7 years ago

seamustuohy commented 7 years ago

Initial build of dockerfile docker build -t viper . fails because yara requires, and is missing, the flex package.

/bin/bash ../ylwrap hex_lexer.l .c hex_lexer.c -- /bin/bash /root/tmp_build/yara/missing flex  
/root/tmp_build/yara/missing: line 81: flex: command not found
WARNING: 'flex' is missing on your system.
         You should only need it if you modified a '.l' file.
         You may want to install the Fast Lexical Analyzer package:
         <http://flex.sourceforge.net/>
make[2]: *** [hex_lexer.c] Error 127
make[2]: Leaving directory `/root/tmp_build/yara/libyara'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/tmp_build/yara'
make: *** [all] Error 2
The command '/bin/sh -c cd ~/tmp_build &&   git clone -b v${YARA_VERSION} https://github.com/plusvic/yara.git &&   cd yara &&   bash build.sh &&   make install &&   cd yara-python &&   python setup.py build &&   python setup.py install &&   cd ../.. &&   rm -rf yara &&   ldconfig' returned a non-zero code: 2
Rafiot commented 7 years ago

merged