Estou tentando instalar o HTK no Docker com o Ubuntu 16.04.
Meu Dockerfile
é como:
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
Eu tive que instalar manualmente o gcc34 conforme descrito aqui e aqui :
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) ...
mas algo corre mal, por isso obtenho
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.
Eu também tentei dessa maneira
echo "deb http://security.ubuntu.com/ubuntu hardy-security main" >> /etc/apt/sources.list
apt install gcc-3.4