在Docker和Ubuntu 16.04上安装HTK

我试图在Ubuntu 16.04中安装Docker中的HTK 。

我的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,但出现了一些问题,所以我得到了

 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.