• centos编译安装Resin报错Version mismatch error. This is libtool 2.4.2 Debian-2.4.2-1.7ubuntu1,


    resin-4.0.53在centos编译安装报错

    /opt/resin-pro-4.0.53/libtool --silent --mode=compile gcc -o stream.lo -c -I/usr/include -g -O2 -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -pthread -fPIC -fno-omit-frame-pointer -O2 -DHAS_SOCK_TIMEOUT -DHAS_SENDFILE -DHAS_SPLICE -DPOLL -DHAS_JVMTI  -fpic  stream.c
    libtool: Version mismatch error.  This is libtool 2.4.2 Debian-2.4.2-1.7ubuntu1, but the
    libtool: definition of this LT_INIT comes from libtool 2.4.6.
    libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 Debian-2.4.2-1.7ubuntu1
    libtool: and run autoconf again.
    make[2]: *** [stream.lo] Error 63

     本地GCC版本

    gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
    Target: x86_64-redhat-linux
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
    Thread model: posix
    gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)

    修正方法:

    autoreconf --force --install
    ./configure
    make

    其中执行autoreconf过程中还会报错,如下:

    configure.ac:1534: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
    Makefile.am: error: required file './NEWS' not found
    Makefile.am: error: required file './AUTHORS' not found
    Makefile.am: error: required file './ChangeLog' not found
    configure.ac:1610: error: required file '../pro/modules/c/src/Makefile.in' not found
    configure.ac:1610: error: required file '../pro/modules/c/src/resin/Makefile.in' not found
    configure.ac:1610: error: required file '../pro/modules/c/src/resinssl/Makefile.in' not found

    解决方法:

    cd /opt/resin-4.0.53
    mkdir ../pro
    cd resin-4.0.53
    cp -r modules ../pro
    
    
    cd /opt/pro/modules/c/src
    autoscan
    cd /opt/pro/modules/c/src/resin
    autoscan
    
    cd /opt/pro/modules/c/src/resinssl
    autoscan
    echo >/opt/pro/NEWS
    echo >/opt/pro/AUTHORS
    
    
    echo >/opt/pro/ChangeLog
     
    [root@localhost resin-pro-4.0.53]# autoreconf --force --install
    libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `automake'.
    libtoolize: copying file `automake/ltmain.sh'
    libtoolize: putting macros in `m4'.
    libtoolize: copying file `m4/libtool.m4'
    libtoolize: copying file `m4/ltoptions.m4'
    libtoolize: copying file `m4/ltsugar.m4'
    libtoolize: copying file `m4/ltversion.m4'
    libtoolize: copying file `m4/lt~obsolete.m4'
    libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
    libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
    configure.ac:1534: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
    Makefile.am: installing './INSTALL'
    Makefile.am: error: required file './NEWS' not found
    Makefile.am: error: required file './AUTHORS' not found
    Makefile.am: error: required file './ChangeLog' not found
    Makefile.am: installing './COPYING' using GNU General Public License v3 file
    Makefile.am:     Consider adding the COPYING file to the version control system
    Makefile.am:     for your code, to avoid questions about which license your project uses
    configure.ac:1610: error: required file '../pro/modules/c/src/Makefile.in' not found
    configure.ac:1610: error: required file '../pro/modules/c/src/resin/Makefile.in' not found
    configure.ac:1610: error: required file '../pro/modules/c/src/resinssl/Makefile.in' not found
    autoreconf: automake failed with exit status: 1

    再次运行configure命令如下

    ./configure --prefix=`pwd` --with-java-home=$JAVA_HOME --enable-64bit  --enable-jni --enable-ssl
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    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 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 for style of include used by make... GNU
    checking dependency style of gcc... none
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking how to print strings... printf
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for egrep... (cached) /usr/bin/grep -E
    checking how to run the C preprocessor... gcc -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 sys/poll.h usability... yes
    checking sys/poll.h presence... yes
    checking for sys/poll.h... yes
    checking sys/epoll.h usability... yes
    checking sys/epoll.h presence... yes
    checking for sys/epoll.h... yes
    checking for JAVA_HOME... /usr/lib/jvm/java-1.8.0-openjdk
    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
    
    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
    ./configure: line 12058: test: too many arguments
    checking if /usr/lib/jvm/java-1.8.0-openjdk/bin/java is Java 1.6... yes
    checking if /usr/lib/jvm/java-1.8.0-openjdk/bin/java is 64-bit... yes
    ./configure: line 12694: plugin_ld_shlib: command not found
    checking if /usr/bin/cp accepts -u... yes
    checking for JNI in /usr/lib/jvm/java-1.8.0-openjdk/include/linux ... found
    Using JVMTI for class reloading
    Using openssl include in ... /usr/include
    Using openssl lib in ...
    Using openssl libraries ...  -lssl -lcrypto
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating modules/c/src/Makefile
    config.status: creating modules/c/src/common/Makefile
    config.status: creating modules/c/src/apache2/Makefile
    config.status: creating modules/c/src/resin_os/Makefile
    config.status: creating init.d/resin
    config.status: creating bin/resinctl
    config.status: executing depfiles commands
    config.status: executing libtool commands
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating modules/c/src/Makefile
    config.status: creating modules/c/src/common/Makefile
    config.status: creating modules/c/src/apache2/Makefile
    config.status: creating modules/c/src/resin_os/Makefile
    config.status: creating init.d/resin
    config.status: creating bin/resinctl
    config.status: creating modules/c/src/resin/Makefile
    config.status: creating modules/c/src/resinssl/Makefile
    config.status: executing depfiles commands
    config.status: executing libtool commands
    
    
    Resin Configuration Summary:
    
      RESIN       : 4.0.53
        home      : /usr/local/share/resin-4.0.53
        root      : /var/resin
        conf      : /etc/resin
        log       : /var/log/resin
        plugins   : common resin_os resin resinssl
        init      : /etc/init.d/resin
    
      JAVA_HOME   : /usr/lib/jvm/java-1.8.0-openjdk
    
      JNI         : 64-bit
        include       : -I/usr/lib/jvm/java-1.8.0-openjdk/include -I/usr/lib/jvm/java-1.8.0-openjdk/include/linux
        CFLAGS        :
        cflags_shlib  : -fpic
        ld_shlib      : gcc
        ldflags_shlib : -shared -fPIC -m64
        libs_shlib    :
        epoll() for keepalives
    
      OPENSSL     : OpenSSL 1.0.2k-fips  26 Jan 2017
        include   : /usr/include
        lib       :
        libraries :  -lssl -lcrypto

    make &&make install 

  • 相关阅读:
    【osd】OSD的状态转化
    【monitor】paxos算法
    【osd】Ceph中的数据一致性
    【osd】peering基本概念
    【osd】PG的生成过程
    【osd】ceph读写流程
    【osd】peering 运行过程 举例阐述
    【osd】BACKOFF
    【vscode】快捷键
    python写文件,过滤空行,根据某一行打上标记
  • 原文地址:https://www.cnblogs.com/passedbylove/p/13587683.html
Copyright © 2020-2023  润新知