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

网友投稿 695 2022-09-26

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

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.clibtool: Version mismatch error. This is libtool 2.4.2 Debian-2.4.2-1.7ubuntu1, but thelibtool: 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.7ubuntu1libtool: and run autoconf again.make[2]: *** [stream.lo] Error 63

本地GCC版本

gcc -vUsing built-in specs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapperTarget: x86_64-redhat-linuxConfigured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=--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-linuxThread model: posixgcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)

修正方法:

autoreconf --force --install./configuremake

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

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

解决方法:

cd /opt/resin-4.0.53mkdir ../procd resin-4.0.53cp -r modules ../procd /opt/pro/modules/c/srcautoscancd /opt/pro/modules/c/src/resinautoscancd /opt/pro/modules/c/src/resinsslautoscanecho >/opt/pro/NEWS

echo >/opt/pro/AUTHORS

echo >/opt/pro/ChangeLog

[root@localhost resin-pro-4.0.53]# autoreconf --force --installlibtoolize: 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 andlibtoolize: 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 foundMakefile.am: error: required file './AUTHORS' not foundMakefile.am: error: required file './ChangeLog' not foundMakefile.am: installing './COPYING' using GNU General Public License v3 fileMakefile.am: Consider adding the COPYING file to the version control systemMakefile.am: for your code, to avoid questions about which license your project usesconfigure.ac:1610: error: required file '../pro/modules/c/src/Makefile.in' not foundconfigure.ac:1610: error: required file '../pro/modules/c/src/resin/Makefile.in' not foundconfigure.ac:1610: error: required file '../pro/modules/c/src/resinssl/Makefile.in' not foundautoreconf: 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-gnuchecking host system type... x86_64-unknown-linux-gnuchecking target system type... x86_64-unknown-linux-gnuchecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /usr/bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking for style of include used by make... GNUchecking dependency style of gcc... nonechecking for a sed that does not truncate output... /usr/bin/sedchecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for fgrep... /usr/bin/grep -Fchecking how to print strings... printfchecking for ld used by gcc... /usr/bin/ldchecking if the linker (/usr/bin/ld) is GNU ld... yeschecking for egrep... (cached) /usr/bin/grep -Echecking how to run the C preprocessor... gcc -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking sys/poll.h usability... yeschecking sys/poll.h presence... yeschecking for sys/poll.h... yeschecking sys/epoll.h usability... yeschecking sys/epoll.h presence... yeschecking for sys/epoll.h... yeschecking for JAVA_HOME... /usr/lib/jvm/java-1.8.0-openjdkchecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -Bchecking the name lister (/usr/bin/nm -B) interface... BSD nmchecking whether ln -s works... yeschecking the maximum length of command line arguments... 1572864checking whether the shell understands some XSI constructs... yeschecking whether the shell understands "+="... yeschecking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noopchecking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noopchecking for /usr/bin/ld option to reload object files... -rchecking for objdump... objdumpchecking how to recognize dependent libraries... pass_allchecking for dlltool... nochecking how to associate runtime and link libraries... printf %s\nchecking for ar... archecking for archiver @FILE support... @checking for strip... stripchecking for ranlib... ranlibchecking command to parse /usr/bin/nm -B output from gcc object... okchecking for sysroot... nochecking for mt... nochecking if : is a manifest tool... nochecking for dlfcn.h... yeschecking for objdir... .libschecking if gcc supports -fno-rtti -fno-exceptions... nochecking for gcc option to produce PIC... -fPIC -DPICchecking if gcc PIC flag -fPIC -DPIC works... yeschecking if gcc static flag -static works... nochecking if gcc supports -c -o file.o... yeschecking if gcc supports -c -o file.o... (cached) yeschecking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yeschecking whether -lc should be explicitly linked in... nochecking dynamic linker characteristics... GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... yeschecking whether to build static libraries... yes./configure: line 12058: test: too many argumentschecking if /usr/lib/jvm/java-1.8.0-openjdk/bin/java is Java 1.6... yeschecking if /usr/lib/jvm/java-1.8.0-openjdk/bin/java is 64-bit... yes./configure: line 12694: plugin_ld_shlib: command not foundchecking if /usr/bin/cp accepts -u... yeschecking for JNI in /usr/lib/jvm/java-1.8.0-openjdk/include/linux ... foundUsing JVMTI for class reloadingUsing openssl include in ... /usr/includeUsing openssl lib in ...Using openssl libraries ... -lssl -lcryptochecking that generated files are newer than configure... doneconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating modules/c/src/Makefileconfig.status: creating modules/c/src/common/Makefileconfig.status: creating modules/c/src/apache2/Makefileconfig.status: creating modules/c/src/resin_os/Makefileconfig.status: creating init.d/resinconfig.status: creating bin/resinctlconfig.status: executing depfiles commandsconfig.status: executing libtool commandschecking that generated files are newer than configure... doneconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating modules/c/src/Makefileconfig.status: creating modules/c/src/common/Makefileconfig.status: creating modules/c/src/apache2/Makefileconfig.status: creating modules/c/src/resin_os/Makefileconfig.status: creating init.d/resinconfig.status: creating bin/resinctlconfig.status: creating modules/c/src/resin/Makefileconfig.status: creating modules/c/src/resinssl/Makefileconfig.status: executing depfiles commandsconfig.status: executing libtool commandsResin 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

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:华为云编译安装emqtt Broker社区版
下一篇:Centos挂载硬盘
相关文章

 发表评论

暂时没有评论,来抢沙发吧~