Open mingjing99 opened 2 years ago
在不同的机器上编译都是如下结果,能帮忙看看么,谢谢先 安装了xmlto也是同样结果 Log 如下,
环境 ubuntu 20.4
/bin/sh ../libtool --tag=CXX --mode=link g++ -std=c++11 -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -release 6.4 -rpath /usr/local/lib -L/usr/lib -o libpqxx.la -rpath /usr/local/lib array.lo binarystring.lo connection_base.lo connection.lo cursor.lo dbtransaction.lo encodings.lo errorhandler.lo except.lo field.lo largeobject.lo nontransaction.lo notification.lo pipeline.lo prepared_statement.lo result.lo robusttransaction.lo sql_cursor.lo statement_parameters.lo strconv.lo stream_base.lo stream_from.lo stream_to.lo subtransaction.lo tablereader.lo tablestream.lo tablewriter.lo transaction.lo transaction_base.lo row.lo util.lo version.lo -lpq libtool: link: ar cr .libs/libpqxx.a array.o binarystring.o connection_base.o connection.o cursor.o dbtransaction.o encodings.o errorhandler.o except.o field.o largeobject.o nontransaction.o notification.o pipeline.o prepared_statement.o result.o robusttransaction.o sql_cursor.o statement_parameters.o strconv.o stream_base.o stream_from.o stream_to.o subtransaction.o tablereader.o tablestream.o tablewriter.o transaction.o transaction_base.o row.o util.o version.o libtool: link: ranlib .libs/libpqxx.a libtool: link: ( cd ".libs" && rm -f "libpqxx.la" && ln -s "../libpqxx.la" "libpqxx.la" ) make[1]: Leaving directory '/src/libpqxx/src' Making all in test make[1]: Entering directory '/src/libpqxx/test' Making all in unit make[2]: Entering directory '/src/libpqxx/test/unit' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/src/libpqxx/test/unit' make[2]: Entering directory '/src/libpqxx/test' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/src/libpqxx/test' make[1]: Leaving directory '/src/libpqxx/test' Making all in tools make[1]: Entering directory '/src/libpqxx/tools' g++ -std=c++11 -DHAVE_CONFIG_H -I../include -I../include -I/usr/include -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -MT rmlo.o -MD -MP -MF .deps/rmlo.Tpo -c -o rmlo.o rmlo.cxx mv -f .deps/rmlo.Tpo .deps/rmlo.Po /bin/sh ../libtool --tag=CXX --mode=link g++ -std=c++11 -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -L/usr/lib -o rmlo rmlo.o ../src/libpqxx.la -lpq libtool: link: g++ -std=c++11 -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -o rmlo rmlo.o -L/usr/lib ../src/.libs/libpqxx.a -lpq g++ -std=c++11 -DHAVE_CONFIG_H -I../include -I../include -I/usr/include -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -MT pqxxthreadsafety.o -MD -MP -MF .deps/pqxxthreadsafety.Tpo -c -o pqxxthreadsafety.o pqxxthreadsafety.cxx mv -f .deps/pqxxthreadsafety.Tpo .deps/pqxxthreadsafety.Po /bin/sh ../libtool --tag=CXX --mode=link g++ -std=c++11 -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -L/usr/lib -o pqxxthreadsafety pqxxthreadsafety.o ../src/libpqxx.la -lpq libtool: link: g++ -std=c++11 -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -o pqxxthreadsafety pqxxthreadsafety.o -L/usr/lib ../src/.libs/libpqxx.a -lpq make[1]: Leaving directory '/src/libpqxx/tools' Making all in win32 make[1]: Entering directory '/src/libpqxx/win32' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/src/libpqxx/win32' Making all in config make[1]: Entering directory '/src/libpqxx/config' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/src/libpqxx/config' Making all in doc make[1]: Entering directory '/src/libpqxx/doc' if test -x "noxmlto"; then \ noxmlto -o html/Tutorial xhtml libpqxx.xml; \ touch tutorial-stamp; \ else \ echo >&2; \ echo >&2 ""; \ echo >&2; \ echo >&2 "xmlto not found."; \ echo >&2 "Install it, or configure with --disable-documentation"; \ echo >&2; \ echo >&2 ""; \ exit 1; \ fi
xmlto not found. Install it, or configure with --disable-documentation
make[1]: Leaving directory '/src/libpqxx/doc' make[1]: [Makefile:508: tutorial-stamp] Error 1 make: [Makefile:641: all-recursive] Error 1 Removing intermediate container 97c459be2308 The command '/bin/sh -c LIBPQXX_VERSION=curl --silent "https://api.github.com/repos/jtv/libpqxx/releases" | jq -r ".[0].tag_name" && curl https://codeload.github.com/jtv/libpqxx/tar.gz/refs/tags/${LIBPQXX_VERSION} --output /tmp/libpqxx.tar.gz && mkdir -p /src && cd /src && tar fxz /tmp/libpqxx.tar.gz && mv /src/libpqxx-* /src/libpqxx && rm -rf /tmp/libpqxx.tar.gz && cd /src/libpqxx && /src/libpqxx/configure && make && make install' returned a non-zero code: 2
curl --silent "https://api.github.com/repos/jtv/libpqxx/releases" | jq -r ".[0].tag_name"
脚本问题 在构建脚本 apk add 加入xmlto编译之后后面postgre库文件又丢失了 软件有问题无法构建镜像成功 估计作者改坏了 我用centos构建镜像失败了
注意要在脚本中添加国内repo否则中间安装软件卡的很
本机安装无效 要在镜像脚本中安装
在不同的机器上编译都是如下结果,能帮忙看看么,谢谢先 安装了xmlto也是同样结果 Log 如下,
环境 ubuntu 20.4
/bin/sh ../libtool --tag=CXX --mode=link g++ -std=c++11 -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -release 6.4 -rpath /usr/local/lib -L/usr/lib -o libpqxx.la -rpath /usr/local/lib array.lo binarystring.lo connection_base.lo connection.lo cursor.lo dbtransaction.lo encodings.lo errorhandler.lo except.lo field.lo largeobject.lo nontransaction.lo notification.lo pipeline.lo prepared_statement.lo result.lo robusttransaction.lo sql_cursor.lo statement_parameters.lo strconv.lo stream_base.lo stream_from.lo stream_to.lo subtransaction.lo tablereader.lo tablestream.lo tablewriter.lo transaction.lo transaction_base.lo row.lo util.lo version.lo -lpq libtool: link: ar cr .libs/libpqxx.a array.o binarystring.o connection_base.o connection.o cursor.o dbtransaction.o encodings.o errorhandler.o except.o field.o largeobject.o nontransaction.o notification.o pipeline.o prepared_statement.o result.o robusttransaction.o sql_cursor.o statement_parameters.o strconv.o stream_base.o stream_from.o stream_to.o subtransaction.o tablereader.o tablestream.o tablewriter.o transaction.o transaction_base.o row.o util.o version.o libtool: link: ranlib .libs/libpqxx.a libtool: link: ( cd ".libs" && rm -f "libpqxx.la" && ln -s "../libpqxx.la" "libpqxx.la" ) make[1]: Leaving directory '/src/libpqxx/src' Making all in test make[1]: Entering directory '/src/libpqxx/test' Making all in unit make[2]: Entering directory '/src/libpqxx/test/unit' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/src/libpqxx/test/unit' make[2]: Entering directory '/src/libpqxx/test' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/src/libpqxx/test' make[1]: Leaving directory '/src/libpqxx/test' Making all in tools make[1]: Entering directory '/src/libpqxx/tools' g++ -std=c++11 -DHAVE_CONFIG_H -I../include -I../include -I/usr/include -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -MT rmlo.o -MD -MP -MF .deps/rmlo.Tpo -c -o rmlo.o rmlo.cxx mv -f .deps/rmlo.Tpo .deps/rmlo.Po /bin/sh ../libtool --tag=CXX --mode=link g++ -std=c++11 -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -L/usr/lib -o rmlo rmlo.o ../src/libpqxx.la -lpq libtool: link: g++ -std=c++11 -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -o rmlo rmlo.o -L/usr/lib ../src/.libs/libpqxx.a -lpq g++ -std=c++11 -DHAVE_CONFIG_H -I../include -I../include -I/usr/include -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -MT pqxxthreadsafety.o -MD -MP -MF .deps/pqxxthreadsafety.Tpo -c -o pqxxthreadsafety.o pqxxthreadsafety.cxx mv -f .deps/pqxxthreadsafety.Tpo .deps/pqxxthreadsafety.Po /bin/sh ../libtool --tag=CXX --mode=link g++ -std=c++11 -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -L/usr/lib -o pqxxthreadsafety pqxxthreadsafety.o ../src/libpqxx.la -lpq libtool: link: g++ -std=c++11 -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -o pqxxthreadsafety pqxxthreadsafety.o -L/usr/lib ../src/.libs/libpqxx.a -lpq make[1]: Leaving directory '/src/libpqxx/tools' Making all in win32 make[1]: Entering directory '/src/libpqxx/win32' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/src/libpqxx/win32' Making all in config make[1]: Entering directory '/src/libpqxx/config' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/src/libpqxx/config' Making all in doc make[1]: Entering directory '/src/libpqxx/doc' if test -x "noxmlto"; then \ noxmlto -o html/Tutorial xhtml libpqxx.xml; \ touch tutorial-stamp; \ else \ echo >&2; \ echo >&2 ""; \ echo >&2; \ echo >&2 "xmlto not found."; \ echo >&2 "Install it, or configure with --disable-documentation"; \ echo >&2; \ echo >&2 ""; \ exit 1; \ fi
xmlto not found. Install it, or configure with --disable-documentation
make[1]: Leaving directory '/src/libpqxx/doc' make[1]: [Makefile:508: tutorial-stamp] Error 1 make: [Makefile:641: all-recursive] Error 1 Removing intermediate container 97c459be2308 The command '/bin/sh -c LIBPQXX_VERSION=
curl --silent "https://api.github.com/repos/jtv/libpqxx/releases" | jq -r ".[0].tag_name"
&& curl https://codeload.github.com/jtv/libpqxx/tar.gz/refs/tags/${LIBPQXX_VERSION} --output /tmp/libpqxx.tar.gz && mkdir -p /src && cd /src && tar fxz /tmp/libpqxx.tar.gz && mv /src/libpqxx-* /src/libpqxx && rm -rf /tmp/libpqxx.tar.gz && cd /src/libpqxx && /src/libpqxx/configure && make && make install' returned a non-zero code: 2