Установите HTK на Docker и Ubuntu 16.04

Я пытаюсь установить HTK в Docker с Ubuntu 16.04.

Мой Dockerfile похож:

FROM ubuntu:16.04 # working directory ENV HOME /root WORKDIR $HOME # packages list RUN \ apt-get update && apt-get install -y \ libc6-dev-i386 \ libx11-dev \ gawk \ python-dev \ python-pip \ curl \ git # pip RUN pip install --upgrade pip # copy & install compat-gcc-34-c++ compat-gcc-34 COPY lib/*.deb $HOME/ RUN \ dpkg -i $HOME/compat-gcc-34-c++_3.4.6-20_amd64.deb && \ dpkg -i $HOME/compat-gcc-34-c++_3.4.6-20_amd64.deb # numlib RUN pip install numpy scipy # theano and lasagne RUN pip install theano lasagne # HTK COPY lib/*.gz $HOME/ # uncomment and set $USER $PASS #RUN curl http://htk.eng.cam.ac.uk/ftp/software/HTK-3.4.1.tar.gz --user $USER:$PASS | tar xvzf - RUN tar -xvzf $HOME/HTK-3.4.1.tar.gz RUN linux32 bash RUN cd $HOME/htk && \ # /usr/local/bin or --prefix=$HOME/htk ./configure CC=gcc34 && \ make

Мне пришлось вручную установить gcc34, как описано HTK и здесь:

root@e81873cc4f3f:~# dpkg -i compat-gcc-34-c++_3.4.6-20_amd64.deb (Reading database ... 17820 files and directories currently installed.) Preparing to unpack compat-gcc-34-c++_3.4.6-20_amd64.deb ... Unpacking compat-gcc-34-c++ (3.4.6-20) over (3.4.6-20) ... Setting up compat-gcc-34-c++ (3.4.6-20) ... Processing triggers for libc-bin (2.23-0ubuntu9) ... root@e81873cc4f3f:~# dpkg -i compat-gcc-34-c++_3.5.6-20_amd64.deb (Reading database ... 17820 files and directories currently installed.) Preparing to unpack compat-gcc-34-c++_3.5.6-20_amd64.deb ... Unpacking compat-gcc-34-c++ (3.4.6-20) over (3.4.6-20) ... Setting up compat-gcc-34-c++ (3.4.6-20) ... Processing triggers for libc-bin (2.23-0ubuntu9) ...

, но что-то пошло не так, поэтому я получаю

Step 13/14 : RUN cd $HOME/htk && ./configure CC=gcc34 && make ---> Running in 47cc2fbc58e4 checking whether make sets $(MAKE)... yes checking for gawk... gawk checking for gcc... gcc34 checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details.

Я также пробовал этот путь

echo "deb http://security.ubuntu.com/ubuntu hardy-security main" >> /etc/apt/sources.list apt install gcc-3.4

0
задан 27 November 2017 в 20:54

0 ответов

Другие вопросы по тегам:

Похожие вопросы: