linto-ai / linto-stt

An automatic speech recognition API
GNU Affero General Public License v3.0
38 stars 14 forks source link

docker build failed #2

Closed benoit-cty closed 4 years ago

benoit-cty commented 4 years ago

Hello, I get an error when building :

linto-platform-stt-standalone-worker$ docker build -t lintoai/linto-platform-stt-standalone-worker .
[...]
Resolving www.openfst.org (www.openfst.org)... Resolving www.openslr.org (www.openslr.org)... Resolving github.com (github.com)... Resolving www.openslr.org (www.openslr.org)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
extras/check_dependencies.sh: gfortran is not installed.
extras/check_dependencies.sh: Intel MKL is not installed. Run extras/install_mkl.sh to install it.
 ... You can also use other matrix algebra libraries. For information, see:
 ...   http://kaldi-asr.org/doc/matrixwrap.html
extras/check_dependencies.sh: Some prerequisites are missing; install them using the command:
  sudo apt-get install gfortran
make: *** [check_required_programs] Error 1
make: *** Waiting for unfinished jobs....
Makefile:38: recipe for target 'check_required_programs' failed
[...]
ln -s cub-1.8.0 cub
The command '/bin/sh -c cd /opt && git clone https://github.com/kaldi-asr/kaldi.git &&     cd /opt/kaldi/tools && make -j$(nproc)' returned a non-zero code: 2
benoit-cty commented 4 years ago

The build work after adding the gfortran install :

-RUN cd /opt && git clone https://github.com/kaldi-asr/kaldi.git && \
-    cd /opt/kaldi/tools && make -j$(nproc)
-
+RUN apt-get install -y gfortran
+RUN cd /opt && git clone https://github.com/kaldi-asr/kaldi.git
 #Install MKL package
 RUN cd /opt/kaldi/tools && \
     extras/install_mkl.sh

+RUN cd /opt/kaldi/tools && make -j$(nproc)

Same as pull request : https://github.com/linto-ai/linto-platform-stt-standalone-worker/pull/1

irebai commented 4 years ago

Thanks, that was occurred due to an update of Kaldi. The problem is solved.