==---------------------------------------------------------------------------------------------------------------------- -----== Linux 阿里云ossfs的安装 【成功!!!!】 1、首先,安装依赖 yum -y install libxml2-devel fuse fuse-* glib2 glib2-* =----------------------------------------------------= Installed: fuse.x86_64 0:2.9.2-11.el7 fuse-afp.x86_64 0:0.8.1-14.el7 fuse-devel.x86_64 0:2.9.2-11.el7 fuse-dislocker.x86_64 0:0.7.1-8.el7 fuse-encfs.x86_64 0:1.9.5-1.el7 fuse-libs.x86_64 0:2.9.2-11.el7 fuse-python.x86_64 0:0.2.1-10.el7 fuse-sshfs.x86_64 0:2.10-1.el7 glib2-devel.x86_64 0:2.56.1-4.el7_6 glib2-doc.noarch 0:2.56.1-4.el7_6 glib2-fam.x86_64 0:2.56.1-4.el7_6 glib2-static.x86_64 0:2.56.1-4.el7_6 glib2-tests.x86_64 0:2.56.1-4.el7_6 Dependency Installed: afpfs-ng.x86_64 0:0.8.1-14.el7 dislocker-libs.x86_64 0:0.7.1-8.el7 gamin.x86_64 0:0.1.10-16.el7 mbedtls.x86_64 0:2.7.10-1.el7 ruby-libs.x86_64 0:2.0.0.648-35.el7_6 tinyxml2.x86_64 0:2.1.0-2.20140406git6ee53e7.el7 Updated: glib2.x86_64 0:2.56.1-4.el7_6 Complete! 2、下载资源 cd /fitness/software mkdir ossfs-1.80.5 wget https://github.com/aliyun/ossfs/archive/v1.80.5.tar.gz =---------------------------------------------------------= Saving to: ‘v1.80.5.tar.gz’ [ <=> ] 136,668 64.9KB/s in 2.1s 2019-07-04 14:30:30 (64.9 KB/s) - ‘v1.80.5.tar.gz’ saved [136668] 3、加压资源 mv v1.80.5.tar.gz ossfs-1.80.5.tar.gz tar -zxvf ossfs-1.80.5.tar.gz 4、配置、编译安装 cd ossfs-1.80.5 ./autogen.sh =-------------------------------------------------------= [root@iZ8vb2uz59jd5pisp87ljjZ ossfs-1.80.5]# ./autogen.sh --- Make commit hash file ------- --- Finished commit hash file --- --- Start autotools ------------- ./autogen.sh: line 39: aclocal: command not found --- Finished autotools ---------- 有报错:aclocal: command not found 解决办法:yum -y install automake =--------------------------------------------------------= Transaction Summary ============================================================================================================================================================================ Install 1 Package (+1 Dependent package) Total download size: 696 k Installed size: 1.7 M Downloading packages: (1/2): perl-Thread-Queue-3.02-2.el7.noarch.rpm | 17 kB 00:00:00 (2/2): automake-1.13.4-3.el7.noarch.rpm | 679 kB 00:00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 7.1 MB/s | 696 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : perl-Thread-Queue-3.02-2.el7.noarch 1/2 Installing : automake-1.13.4-3.el7.noarch 2/2 Verifying : perl-Thread-Queue-3.02-2.el7.noarch 1/2 Verifying : automake-1.13.4-3.el7.noarch 2/2 Installed: automake.noarch 0:1.13.4-3.el7 Dependency Installed: perl-Thread-Queue.noarch 0:3.02-2.el7 Complete! 再执行一次:./autogen.sh =-------------------------------------------------------= [root@iZ8vb2uz59jd5pisp87ljjZ ossfs-1.80.5]# ./autogen.sh --- Make commit hash file ------- --- Finished commit hash file --- --- Start autotools ------------- configure.ac:27: installing './config.guess' configure.ac:27: installing './config.sub' configure.ac:28: installing './install-sh' configure.ac:28: installing './missing' src/Makefile.am: installing './depcomp' parallel-tests: installing './test-driver' --- Finished autotools ---------- bingo!继续: ./configure --prefix=/fitness/serve/ossfs =-----------------------------------------= configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating test/Makefile config.status: creating doc/Makefile config.status: creating config.h config.status: executing depfiles commands make && make install =--------------------------------------------------------------------------= /usr/bin/mkdir -p '/fitness/serve/ossfs/share/man/man1' /usr/bin/install -c -m 644 man/ossfs.1 '/fitness/serve/ossfs/share/man/man1' make[2]: Leaving directory `/fitness/software/ossfs-1.80.5/ossfs-1.80.5/doc' make[1]: Leaving directory `/fitness/software/ossfs-1.80.5/ossfs-1.80.5/doc' make[1]: Entering directory `/fitness/software/ossfs-1.80.5/ossfs-1.80.5' make[2]: Entering directory `/fitness/software/ossfs-1.80.5/ossfs-1.80.5' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/fitness/software/ossfs-1.80.5/ossfs-1.80.5' make[1]: Leaving directory `/fitness/software/ossfs-1.80.5/ossfs-1.80.5' 5、完毕!!! ----------------------------------------------------------------------------------------------------------------------==