0
我正試圖在我的Docker容器上安裝s3fs-fuse。這是我的Dockerfile到目前爲止。無法安裝s3fs-fuse(yum fuse-devel版本問題),無法安裝libfuse(./ config缺失問題)
FROM centos:centos6
RUN yum -y update; yum clean all; \
yum groupinstall -y "Web Server" "MySQL Database" "PHP Support"; \
service httpd start; \
chkconfig httpd on;
RUN yum install -y openssh; \
yum install -y openssh-clients;
ADD ssh/ /root/.ssh/
RUN chmod 600 /root/.ssh/*; \
touch /root/.ssh/known_hosts; \
ssh-keyscan github.com >> /root/.ssh/known_hosts;
RUN yum install -y git;
RUN yum install -y autoconf libtool gcc libstdc++-devel curl-devel mailcap; \
yum install -y automake fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel;
然後在https://github.com/s3fs-fuse/s3fs-fuse下面的說明後,我執行以下命令:
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
./autogen.sh
./configure
然後我得到這個:
checking s3fs build with NSS... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for common_lib_checking... configure: error: Package requirements (fuse >= 2.8.4 libcurl >= 7.0 libxml-2.0 >= 2.6) were not met:
Requested 'fuse >= 2.8.4' but version of fuse is 2.8.3
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables common_lib_checking_CFLAGS
and common_lib_checking_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
所以,我相信我需要得到正確的保險絲版本爲yum fuse-devel
並未削減它。所以我去https://github.com/libfuse/libfuse並按照指示與執行以下操作:
git clone https://github.com/libfuse/libfuse.git;
cd libfuse;
./configure
然後我得到這個問題:
bash: ./configure: No such file or directory
我一直都在互聯網和已經嘗試了整個autoconf
和autoreconf -i
導致m4 directory missing
錯誤的事情。我也曾嘗試將--prefix=/your/chosen/directory
添加到./configure --prefix=/your/chosen/directory
命令中,導致我不在哪裏。一個超級悲傷的臉上沒有運氣。
好吧,至少感覺就像是朝着正確方向邁出的一步。但是,我得到了「運行libtoolize ...」和一堆「/ usr/share/aclocal/[somefile]」到「m4 /」錯誤。在以「autoreconf:libtoolize failed with exit status:1」結束進程之前,在控制檯中看到「正在運行autoreconf ...」後出現相同的結果。 – Mitchell
對不起,我的意思是:...「正在運行libtoolize ...」一堆「不能複製」/ usr/share/aclocal/[somefile]'到'm4 /「錯誤 – Mitchell