由于编译软件需要,系统中存在automake 1.13.1和1.15.1,在编译lxcfs时,执行./bootstrap.sh,提示“ error: version mismatch. This is Automake 1.13.4,but the definition used by this AM_INIT_AUTOMAKE comes from Automake 1.15.1. You should recreate aclocal.m4 with aclocal and run automake again”
正常是需要automake-1.13.1版本可以正常编译的,报错日志应该是因为安装了automake-1.15.1导致的,automake-1.15.1通过源码包安装,于是卸载掉automake-1.15.1
1 2 3 4 |
#切换到安装包目录 cd /root/automake-1.15.1 #卸载 make uninstall |
再次执行./bootstrap.sh,通过
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
./bootstrap.sh + set -e + test -d autom4te.cache + rm -rf autom4te.cache + aclocal -I m4 + libtoolize + autoheader + autoconf + automake --add-missing --copy [root@k8s-master-01 lxcfs]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for gcc option to accept ISO C99... -std=gnu99 checking for main in -lpthread... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for FUSE... yes checking for help2man... false // No help2man // checking host distribution... checking for /etc/redhat-release... yes checking for /etc/oracle-release... no checking for /etc/centos-release... yes checking for /etc/fedora-release... no checking for /etc/SuSE-release... no checking for /etc/gentoo-release... no checking for /etc/debian_version... no checking for /etc/arch-release... no checking for /etc/slackware-version... no checking for /etc/frugalware-release... no checking for /etc/mandrakelinux-release... no checking for /etc/mandriva-release... no checking for /etc/pardus-release... no checking for /etc/pld-release... no centos checking for init system type... sysvinit checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating lxcfs.spec config.status: creating config/Makefile config.status: creating config/init/Makefile config.status: creating config/init/systemd/Makefile config.status: creating config/init/sysvinit/Makefile config.status: creating config/init/upstart/Makefile config.status: creating share/Makefile config.status: creating share/00-lxcfs.conf config.status: creating share/lxc.mount.hook config.status: creating share/lxc.reboot.hook config.status: creating tests/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands |
如果需要,待编译完成后再执行make install安装automake-1.15.1