当前位置: 首页 > news >正文

现在建设网站都用什么软件下载logo免费自动生成器app

现在建设网站都用什么软件下载,logo免费自动生成器app,软件程序开发,wordpress导入文件太大ubuntu下编译libpq和libpqxx库#xff0c;用于链接人大金仓 上篇文章验证了libpqxx可以链接人大金仓数据库#xff0c;这篇文章尝试自己编译libpq和libpqxx库。 文章目录ubuntu下编译libpq和libpqxx库#xff0c;用于链接人大金仓libpq下载libpq库看看有没有libpq库编译lib…ubuntu下编译libpq和libpqxx库用于链接人大金仓 上篇文章验证了libpqxx可以链接人大金仓数据库这篇文章尝试自己编译libpq和libpqxx库。 文章目录ubuntu下编译libpq和libpqxx库用于链接人大金仓libpq下载libpq库看看有没有libpq库编译libpqreadline问题编译postgresql尝试单独编译libpq库libpqxx下载libpqxx选版本configure --help编译配置编译再编译再再编译看看依赖好像没有问题收工libpq 下载libpq库 找了以打晌儿就是找不到咋办放弃吧等等好像在postgresql源码中。 下载源码看看有没有。 官网走起https://www.postgresql.org/ 两会期间网速贼慢物理吐槽等版半天打开了一次就不知道怎么遭到下载地址了。 先按照ubuntu18源中的版本进行下载。 $ dpkg -L libpq-dev | grep -F .pc | xargs cat Name: libpq Description: PostgreSQL libpq library Url: http://www.postgresql.org/ Version: 10.23 Requires: Requires.private: Cflags: -I/usr/include/postgresql Libs: -L/usr/lib/x86_64-linux-gnu -lpq Libs.private: -L/usr/lib/x86_64-linux-gnu/mit-krb5 -lssl -lcrypto -lgssapi_krb5 -lcrypt -lldap_r 最终的下载位置为https://ftp.postgresql.org/pub/source/v10.23/postgresql-10.23.tar.gz 需要其他版本呢自己找,自己在官网找好了。 看看有没有libpq库 解压后搜一下libpq关键字 # root ubuntu in ~/workspace/postgresql-10.23 [8:10:53] $ find . -name *libpq* ./src/backend/libpq ./src/backend/replication/libpqwalreceiver ./src/backend/replication/libpqwalreceiver/libpqwalreceiver.c ./src/interfaces/libpq ./src/interfaces/libpq/libpq-fe.h ./src/interfaces/libpq/libpq-int.h ./src/interfaces/libpq/libpq.rc.in ./src/interfaces/libpq/libpq-events.h ./src/interfaces/libpq/libpq-events.c ./src/interfaces/libpq/libpqddll.def ./src/interfaces/libpq/libpqdll.def ./src/interfaces/libpq/libpq-dist.rc ./src/include/libpq ./src/include/libpq/libpq-be.h ./src/include/libpq/libpq.h ./src/include/libpq/libpq-fs.h ./src/bin/pg_rewind/libpq_fetch.c ./src/test/examples/testlibpq3.sql ./src/test/examples/testlibpq2.c ./src/test/examples/testlibpq2.sql ./src/test/examples/testlibpq.c ./src/test/examples/testlibpq4.c ./src/test/examples/testlibpq3.c ./doc/src/sgml/html/libpq-copy.html ./doc/src/sgml/html/libpq-connect.html ./doc/src/sgml/html/libpq.html ./doc/src/sgml/html/libpq-example.html ./doc/src/sgml/html/libpq-fastpath.html ./doc/src/sgml/html/libpq-misc.html ./doc/src/sgml/html/libpq-events.html ./doc/src/sgml/html/libpq-threading.html ./doc/src/sgml/html/libpq-pgpass.html ./doc/src/sgml/html/libpq-status.html ./doc/src/sgml/html/libpq-cancel.html ./doc/src/sgml/html/libpq-ldap.html ./doc/src/sgml/html/libpq-control.html ./doc/src/sgml/html/libpq-build.html ./doc/src/sgml/html/libpq-ssl.html ./doc/src/sgml/html/libpq-envars.html ./doc/src/sgml/html/libpq-async.html ./doc/src/sgml/html/libpq-notify.html ./doc/src/sgml/html/libpq-notice-processing.html ./doc/src/sgml/html/libpq-exec.html ./doc/src/sgml/html/libpq-pgservice.html ./doc/src/sgml/html/libpq-single-row-mode.html ./doc/src/sgml/libpq.sgml 浪费了好大一会儿时间原来在数据库的源码库中。 编译libpq 怎么单独编译libpq呢。 ./configure --help 走起 # root ubuntu in ~/workspace/postgresql-10.23 [8:14:49] $ ./configure --help configure configures PostgreSQL 10.23 to adapt to many kinds of systems.Usage: ./configure [OPTION]... [VARVALUE]...To assign environment variables (e.g., CC, CFLAGS...), specify them as VARVALUE. See below for descriptions of some of the useful variables.Defaults for the options are specified in brackets.Configuration:-h, --help display this help and exit--helpshort display options specific to this package--helprecursive display the short help of all the included packages-V, --version display version information and exit-q, --quiet, --silent do not print checking ... messages--cache-fileFILE cache test results in FILE [disabled]-C, --config-cache alias for --cache-fileconfig.cache-n, --no-create do not create output files--srcdirDIR find the sources in DIR [configure dir or ..]Installation directories:--prefixPREFIX install architecture-independent files in PREFIX[/usr/local/pgsql]--exec-prefixEPREFIX install architecture-dependent files in EPREFIX[PREFIX]By default, make install will install all the files in /usr/local/pgsql/bin, /usr/local/pgsql/lib etc. You can specify an installation prefix other than /usr/local/pgsql using --prefix, for instance --prefix$HOME.For better control, use the options below.Fine tuning of the installation directories:--bindirDIR user executables [EPREFIX/bin]--sbindirDIR system admin executables [EPREFIX/sbin]--libexecdirDIR program executables [EPREFIX/libexec]--sysconfdirDIR read-only single-machine data [PREFIX/etc]--sharedstatedirDIR modifiable architecture-independent data [PREFIX/com]--localstatedirDIR modifiable single-machine data [PREFIX/var]--libdirDIR object code libraries [EPREFIX/lib]--includedirDIR C header files [PREFIX/include]--oldincludedirDIR C header files for non-gcc [/usr/include]--datarootdirDIR read-only arch.-independent data root [PREFIX/share]--datadirDIR read-only architecture-independent data [DATAROOTDIR]--infodirDIR info documentation [DATAROOTDIR/info]--localedirDIR locale-dependent data [DATAROOTDIR/locale]--mandirDIR man documentation [DATAROOTDIR/man]--docdirDIR documentation root [DATAROOTDIR/doc/postgresql]--htmldirDIR html documentation [DOCDIR]--dvidirDIR dvi documentation [DOCDIR]--pdfdirDIR pdf documentation [DOCDIR]--psdirDIR ps documentation [DOCDIR]System types:--buildBUILD configure for building on BUILD [guessed]--hostHOST cross-compile to build programs to run on HOST [BUILD]Optional Features:--disable-option-checking ignore unrecognized --enable/--with options--disable-FEATURE do not include FEATURE (same as --enable-FEATUREno)--enable-FEATURE[ARG] include FEATURE [ARGyes]--disable-integer-datetimesobsolete option, no longer supported--enable-nls[LANGUAGES]enable Native Language Support--disable-rpath do not embed shared library search path inexecutables--disable-spinlocks do not use spinlocks--disable-atomics do not use atomic operations--disable-strong-random do not use a strong random number source--enable-debug build with debugging symbols (-g)--enable-profiling build with profiling enabled--enable-coverage build with coverage testing instrumentation--enable-dtrace build with DTrace support--enable-tap-tests enable TAP tests (requires Perl and IPC::Run)--enable-depend turn on automatic dependency tracking--enable-cassert enable assertion checks (for debugging)--disable-thread-safety disable thread-safety in client libraries--disable-largefile omit support for large files--disable-float4-byval disable float4 passed by value--disable-float8-byval disable float8 passed by valueOptional Packages:--with-PACKAGE[ARG] use PACKAGE [ARGyes]--without-PACKAGE do not use PACKAGE (same as --with-PACKAGEno)--with-extra-versionSTRINGappend STRING to version--with-templateNAME override operating system template--with-includesDIRS look for additional header files in DIRS--with-librariesDIRS look for additional libraries in DIRS--with-libsDIRS alternative spelling of --with-libraries--with-pgportPORTNUM set default port number [5432]--with-blocksizeBLOCKSIZEset table block size in kB [8]--with-segsizeSEGSIZE set table segment size in GB [1]--with-wal-blocksizeBLOCKSIZEset WAL block size in kB [8]--with-wal-segsizeSEGSIZEset WAL segment size in MB [16]--with-CCCMD set compiler (deprecated)--with-icu build with ICU support--with-tcl build Tcl modules (PL/Tcl)--with-tclconfigDIR tclConfig.sh is in DIR--with-perl build Perl modules (PL/Perl)--with-python build Python modules (PL/Python)--with-gssapi build with GSSAPI support--with-krb-srvnamNAME default service principal name in Kerberos (GSSAPI)[postgres]--with-pam build with PAM support--with-bsd-auth build with BSD Authentication support--with-ldap build with LDAP support--with-bonjour build with Bonjour support--with-openssl build with OpenSSL support--with-selinux build with SELinux support--with-systemd build with systemd support--without-readline do not use GNU Readline nor BSD Libedit for editing--with-libedit-preferredprefer BSD Libedit over GNU Readline--with-uuidLIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)--with-ossp-uuid obsolete spelling of --with-uuidossp--with-libxml build with XML support--with-libxslt use XSLT support when building contrib/xml2--with-system-tzdataDIRuse system time zone data in DIR--without-zlib do not use Zlib--with-gnu-ld assume the C compiler uses GNU ld [defaultno]Some influential environment variables:CC C compiler commandCFLAGS C compiler flagsLDFLAGS linker flags, e.g. -Llib dir if you have libraries in anonstandard directory lib dirLIBS libraries to pass to the linker, e.g. -llibraryCPPFLAGS (Objective) C/C preprocessor flags, e.g. -Iinclude dir ifyou have headers in a nonstandard directory include dirCPP C preprocessorPKG_CONFIG path to pkg-config utilityPKG_CONFIG_PATHdirectories to add to pkg-configs search pathPKG_CONFIG_LIBDIRpath overriding pkg-configs built-in search pathICU_CFLAGS C compiler flags for ICU, overriding pkg-configICU_LIBS linker flags for ICU, overriding pkg-configXML2_CONFIG path to xml2-config utilityXML2_CFLAGS C compiler flags for XML2, overriding pkg-configXML2_LIBS linker flags for XML2, overriding pkg-configLDFLAGS_EX extra linker flags for linking executables onlyLDFLAGS_SL extra linker flags for linking shared libraries onlyUse these variables to override the choices made by configure or to help it to find libraries and programs with nonstandard names/locations.Report bugs to pgsql-bugspostgresql.org. 嗨~,看的头痛完整编译以便。 ./configure --prefix/opt/postgresql checking for library containing readline... no configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isnt looking in the proper directory. Use --without-readline to disable readline support.报错没有readline readline问题 请教一下apt老师 $ apt install postgresql Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required:libsecret-1-0 libsecret-common python-asn1crypto python-backports.ssl-match-hostname python-cached-property python-certifi python-cffi-backend python-chardetpython-cryptography python-dockerpty python-docopt python-enum34 python-funcsigs python-functools32 python-idna python-ipaddress python-jsonschema python-mock python-opensslpython-pbr python-pkg-resources python-requests python-six python-texttable python-urllib3 python-websocket python-yaml Use apt autoremove to remove them. The following additional packages will be installed:postgresql-10 postgresql-client-10 postgresql-client-common postgresql-common ssl-cert sysstat Suggested packages:postgresql-doc locales-all postgresql-doc-10 libjson-perl openssl-blacklist isag The following NEW packages will be installed:postgresql postgresql-10 postgresql-client-10 postgresql-client-common postgresql-common ssl-cert sysstat 0 upgraded, 7 newly installed, 0 to remove and 86 not upgraded. Need to get 5,227 kB of archives. After this operation, 20.5 MB of additional disk space will be used. Do you want to continue? [Y/n] n Abort.没有看到有readline相关依赖跳过把不管了。 ./configure --prefix/opt/postgresql --without-readline configure: using compilergcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 configure: using CFLAGS-Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precisionstandard -Wno-format-truncation -O2 configure: using CPPFLAGS -D_GNU_SOURCE configure: using LDFLAGS -Wl,--as-needed configure: creating ./config.status config.status: creating GNUmakefile config.status: creating src/Makefile.global config.status: creating src/include/pg_config.h config.status: creating src/include/pg_config_ext.h config.status: creating src/interfaces/ecpg/include/ecpg_config.h config.status: linking src/backend/port/tas/dummy.s to src/backend/port/tas.s config.status: linking src/backend/port/dynloader/linux.c to src/backend/port/dynloader.c config.status: linking src/backend/port/posix_sema.c to src/backend/port/pg_sema.c config.status: linking src/backend/port/sysv_shmem.c to src/backend/port/pg_shmem.c config.status: linking src/backend/port/dynloader/linux.h to src/include/dynloader.h config.status: linking src/include/port/linux.h to src/include/pg_config_os.h config.status: linking src/makefiles/Makefile.linux to src/Makefile.port好像没有报错开始编译 编译postgresql make make install 漫长的等待终于编译好了但是东西有点多怎么分离出来有用的文件呢 继续请教apt老师。 相关的头文件 $ dpkg -L libpq-dev | grep -F /usr/include/postgresql /usr/include/postgresql /usr/include/postgresql/internal /usr/include/postgresql/internal/c.h /usr/include/postgresql/internal/libpq /usr/include/postgresql/internal/libpq/pqcomm.h /usr/include/postgresql/internal/libpq-int.h /usr/include/postgresql/internal/port.h /usr/include/postgresql/internal/postgres_fe.h /usr/include/postgresql/internal/pqexpbuffer.h /usr/include/postgresql/libpq /usr/include/postgresql/libpq/libpq-fs.h /usr/include/postgresql/libpq-events.h /usr/include/postgresql/libpq-fe.h /usr/include/postgresql/pg_config.h /usr/include/postgresql/pg_config_ext.h /usr/include/postgresql/pg_config_manual.h /usr/include/postgresql/pg_config_os.h /usr/include/postgresql/postgres_ext.h 相关的库文件 $ dpkg -L libpq-dev | grep -F /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libpgcommon.a /usr/lib/x86_64-linux-gnu/libpgfeutils.a /usr/lib/x86_64-linux-gnu/libpgport.a /usr/lib/x86_64-linux-gnu/libpq.a /usr/lib/x86_64-linux-gnu/pkgconfig /usr/lib/x86_64-linux-gnu/pkgconfig/libpq.pc /usr/lib/x86_64-linux-gnu/libpq.so库还好可以分离出来但是头文件有些麻烦如果编译其他版本头文件目录不一致也是问题。 尝试单独编译libpq库 人家就是不支持非得单独编译嗨 头文件直接不分离实在不行开发时把真个头文件目录整个拷贝过去多了也没有关系。 libpqxx 下载libpqxx 找到libpqxx与libpq的版本对应关系 还是按照apt的版本对应关系。 $ dpkg -L libpqxx-dev | grep -F .pc | xargs cat prefix/usr exec_prefix${prefix} libdir${prefix}/lib/x86_64-linux-gnu includedir${prefix}/includeName: libpqxx Description: a C API to the PostgreSQL database management system. Version: 4.0.1 Libs: -L${libdir} -L/usr/lib/x86_64-linux-gnu -lpqxx Cflags: -I${includedir} -I/usr/include/postgresqlgithub源码地址https://github.com/jtv/libpqxx 然并卵libpqxx都没有这个4.01版本了咋办。 选版本 libpqxx 从7.0.0版本开始要求基于C17我这个的开发环境还是C11 所以就用libpqxx的6.x.x的最后一个版本6.4.8好了。 https://github.com/jtv/libpqxx/archive/refs/tags/6.4.8.tar.gz configure --help # root ubuntu in ~/workspace/libpqxx-6.4.8 [9:19:51] $ ./configure --help configure configures libpqxx 6.4.8 to adapt to many kinds of systems.Usage: ./configure [OPTION]... [VARVALUE]...To assign environment variables (e.g., CC, CFLAGS...), specify them as VARVALUE. See below for descriptions of some of the useful variables.Defaults for the options are specified in brackets.Configuration:-h, --help display this help and exit--helpshort display options specific to this package--helprecursive display the short help of all the included packages-V, --version display version information and exit-q, --quiet, --silent do not print checking ... messages--cache-fileFILE cache test results in FILE [disabled]-C, --config-cache alias for --cache-fileconfig.cache-n, --no-create do not create output files--srcdirDIR find the sources in DIR [configure dir or ..]Installation directories:--prefixPREFIX install architecture-independent files in PREFIX[/usr/local]--exec-prefixEPREFIX install architecture-dependent files in EPREFIX[PREFIX]By default, make install will install all the files in /usr/local/bin, /usr/local/lib etc. You can specify an installation prefix other than /usr/local using --prefix, for instance --prefix$HOME.For better control, use the options below.Fine tuning of the installation directories:--bindirDIR user executables [EPREFIX/bin]--sbindirDIR system admin executables [EPREFIX/sbin]--libexecdirDIR program executables [EPREFIX/libexec]--sysconfdirDIR read-only single-machine data [PREFIX/etc]--sharedstatedirDIR modifiable architecture-independent data [PREFIX/com]--localstatedirDIR modifiable single-machine data [PREFIX/var]--runstatedirDIR modifiable per-process data [LOCALSTATEDIR/run]--libdirDIR object code libraries [EPREFIX/lib]--includedirDIR C header files [PREFIX/include]--oldincludedirDIR C header files for non-gcc [/usr/include]--datarootdirDIR read-only arch.-independent data root [PREFIX/share]--datadirDIR read-only architecture-independent data [DATAROOTDIR]--infodirDIR info documentation [DATAROOTDIR/info]--localedirDIR locale-dependent data [DATAROOTDIR/locale]--mandirDIR man documentation [DATAROOTDIR/man]--docdirDIR documentation root [DATAROOTDIR/doc/libpqxx]--htmldirDIR html documentation [DOCDIR]--dvidirDIR dvi documentation [DOCDIR]--pdfdirDIR pdf documentation [DOCDIR]--psdirDIR ps documentation [DOCDIR]Program names:--program-prefixPREFIX prepend PREFIX to installed program names--program-suffixSUFFIX append SUFFIX to installed program names--program-transform-namePROGRAM run sed PROGRAM on installed program namesSystem types:--buildBUILD configure for building on BUILD [guessed]--hostHOST cross-compile to build programs to run on HOST [BUILD]Optional Features:--disable-option-checking ignore unrecognized --enable/--with options--disable-FEATURE do not include FEATURE (same as --enable-FEATUREno)--enable-FEATURE[ARG] include FEATURE [ARGyes]--enable-dependency-trackingdo not reject slow dependency extractors--disable-dependency-trackingspeeds up one-time build--enable-silent-rules less verbose build output (undo: make V1)--disable-silent-rules verbose build output (undo: make V0)--enable-shared[PKGS] build shared libraries [defaultno]--enable-static[PKGS] build static libraries [defaultyes]--enable-fast-install[PKGS]optimize for fast installation [defaultyes]--disable-libtool-lock avoid locking (might break parallel builds)--enable-documentation Generate documentation--enable-maintainer-modeenable make rules and dependencies not useful (andsometimes confusing) to the casual installer--enable-poll System supports poll().Optional Packages:--with-PACKAGE[ARG] use PACKAGE [ARGyes]--without-PACKAGE do not use PACKAGE (same as --with-PACKAGEno)--with-pic[PKGS] try to use only PIC/non-PIC objects [defaultuseboth]--with-aix-sonameaix|svr4|bothshared library versioning (aka SONAME) variant toprovide on AIX, [defaultaix].--with-gnu-ld assume the C compiler uses GNU ld [defaultno]--with-sysroot[DIR] Search for dependent libraries within DIR (or thecompilers sysroot if not specified).--with-postgres-includeDIRUse PostgreSQL includes from DIR. Defaults toquerying pg_config or pkg-config, whichever isavailable.--with-postgres-libDIR Use PostgreSQL libraries from DIR. Defaults toquerying pg_config.Some influential environment variables:CXX C compiler commandCXXFLAGS C compiler flagsLDFLAGS linker flags, e.g. -Llib dir if you have libraries in anonstandard directory lib dirLIBS libraries to pass to the linker, e.g. -llibraryCPPFLAGS (Objective) C/C preprocessor flags, e.g. -Iinclude dir ifyou have headers in a nonstandard directory include dirCC C compiler commandCFLAGS C compiler flagsLT_SYS_LIBRARY_PATHUser-defined run-time library search path.CPP C preprocessorCXXCPP C preprocessorDOXYGEN Path to doxygen needed to build reference documentationHAVE_DOT Variable used by doxygen to declare availibility of dotXMLTO Path to xmlto needed to build tutorial documentationUse these variables to override the choices made by configure or to help it to find libraries and programs with nonstandard names/locations.Report bugs to Jeroen T. Vermeulen. 编译配置 ./configure --prefix/opt/libpqxx --with-postgres-include/opt/postgresql/include --with-postgres-lib/opt/postgresql/lib $ ./configure --prefix/opt/libpqxx --with-postgres-include/opt/postgresql/include --with-postgres-lib/opt/postgresql/lib checking for g... g 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 g accepts -g... yes checking whether g supports C11 features with -stdc11... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of g -stdc11... gcc3 checking whether we are using the GNU C compiler... (cached) yes checking whether g -stdc11 accepts -g... (cached) 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 gcc... gcc 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 whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /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 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 a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs4096 count1 checking for mt... mt checking if mt is a manifest tool... no 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 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... yes 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 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... no checking whether to build static libraries... yes checking how to run the C preprocessor... g -stdc11 -E checking for ld used by g -stdc11... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g -stdc11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g -stdc11 option to produce PIC... -fPIC -DPIC checking if g -stdc11 PIC flag -fPIC -DPIC works... yes checking if g -stdc11 static flag -static works... yes checking if g -stdc11 supports -c -o file.o... yes checking if g -stdc11 supports -c -o file.o... (cached) yes checking whether the g -stdc11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether make sets $(MAKE)... (cached) yes checking for mkdir... /bin/mkdir checking for doxygen... no checking for dot... no checking for xmlto... no checking whether to enable maintainer-specific portions of Makefiles... no checking maintainer mode... checking audit... checking g visibility attribute... yes checking whether the compiler supports function __attribute__((__const__))... yes checking g deprecation attribute... yes checking g pure attribute... yes checking C14 deprecation attribute... yes checking for C17 std::optional support... no checking for experimental C17 std::optional support... no checking for C17 charconv integer conversion... no checking for C17 charconv floating-point conversion... no checking for poll(2)... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for pg_config... /usr/bin/pg_config checking for pkg-config... /usr/bin/pkg-config configure: using PostgreSQL headers at /opt/postgresql/include configure: using PostgreSQL libraries at /opt/postgresql/lib checking /opt/postgresql/include/libpq-fe.h usability... yes checking /opt/postgresql/include/libpq-fe.h presence... yes checking for /opt/postgresql/include/libpq-fe.h... yes checking for ability to compile source files using libpq... yes checking for PQexec in -lpq... yes checking that type of libpqs Oid is as expected... yes checking whether make sets $(MAKE)... (cached) yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config/Makefile config.status: creating doc/Makefile config.status: creating doc/Doxyfile config.status: creating src/Makefile config.status: creating test/Makefile config.status: creating test/unit/Makefile config.status: creating tools/Makefile config.status: creating win32/Makefile config.status: creating include/Makefile config.status: creating include/pqxx/Makefile config.status: creating libpqxx.pc config.status: creating include/pqxx/config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing configitems commands Generating b/root/workspace/libpqxx-6.4.8/include/pqxx/config-internal-autotools.h: 7 item(s). Generating b/root/workspace/libpqxx-6.4.8/include/pqxx/config-internal-compiler.h: 5 item(s). Generating b/root/workspace/libpqxx-6.4.8/include/pqxx/config-public-autotools.h: no items--skipping. Generating b/root/workspace/libpqxx-6.4.8/include/pqxx/config-public-compiler.h: 4 item(s). 好像没有问题 编译 make make install 报错 *****************************************************xmlto not found. Install it, or configure with --disable-documentation***************************************************** Makefile:508: recipe for target tutorial-stamp failed make[1]: *** [tutorial-stamp] Error 1 make[1]: Leaving directory /root/workspace/libpqxx-6.4.8/doc Makefile:641: recipe for target all-recursive failed make: *** [all-recursive] Error 1 CNMconfigure时不报错非得在编译时报错。 再编译 ./configure --prefix/opt/libpqxx --with-postgres-include/opt/postgresql/include --with-postgres-lib/opt/postgresql/lib --disable-documentation make make install # root ubuntu in /opt/libpqxx [9:32:58] $ tree -L 2 . ├── include │ └── pqxx └── lib├── libpqxx.a├── libpqxx.la└── pkgconfig 操了没有动态库。make clean再来。 再再编译 make clean ./configure --prefix/opt/libpqxx --with-postgres-include/opt/postgresql/include --with-postgres-lib/opt/postgresql/lib --disable-documentation --enable-sharedyes make make install # root ubuntu in /opt/libpqxx [10:15:59] $ tree -L 2 . ├── include │ └── pqxx └── lib├── libpqxx-6.4.so├── libpqxx.a├── libpqxx.la├── libpqxx.so - libpqxx-6.4.so└── pkgconfig看看依赖 先配置一下环境变量 export LD_LIBRARY_PATH/opt/postgresql/lib;$LD_LIBRARY_PATH # root ubuntu in /opt/libpqxx/lib [10:22:26] $ ldd libpqxx.so linux-vdso.so.1 (0x00007ffea9739000)libpq.so.5 /opt/postgresql/lib/libpq.so.5 (0x00007f2579620000)libstdc.so.6 /usr/lib/x86_64-linux-gnu/libstdc.so.6 (0x00007f2579297000)libc.so.6 /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2578ea6000)/lib64/ld-linux-x86-64.so.2 (0x00007f2579acf000)libgcc_s.so.1 /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2578c8e000)libpthread.so.0 /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2578a6f000)libm.so.6 /lib/x86_64-linux-gnu/libm.so.6 (0x00007f25786d1000) 好像没有问题收工
http://www.hkea.cn/news/14299283/

相关文章:

  • clo3d代做网站织梦淘宝客网站
  • 可信网站认证服务中心眼科医院网站建设方案
  • 丰润网站建设品质好是什么意思
  • 个人网站域名申请个人养老金怎么缴纳
  • 旅游网站设计代码html软件推广方法
  • 游戏建设网站装修设计师培训班
  • 北京改网站邢台信息发布平台
  • 中国能源建设集团网站深圳做网站哪个平台好
  • 做微信h5的网站宝德科技专业嘉兴网站建设
  • 广西智能网站建设方案营销顾问
  • 对网站政务建设的建议网站建设优化价格
  • 沈阳网站建设团队wordpress 文章带字段
  • 榆林北京网站建设商洛网站制作
  • wordpress升级vipseo效果检测步骤
  • 营销型网站建设公司哪家好查询网站是否正规
  • 网站建设改版目的部门网站建设方案
  • 网站后台安全网页设计模板素材美食
  • 网络营销案例ppt课件seo技术团队
  • 网站收录入口南京建设工程公共资源交易中心网站
  • 电子商务网站的作用有哪些建设项目环境影响评价公示网站
  • 国内新闻最近新闻今天提升网页优化排名
  • 做网站需要的技能wordpress菜单和导航栏
  • 哪里可以建设网站免费发布商品的电商平台
  • json取数据做网站荣耀手机价格表大全一览
  • 网站建设在电子商务中意义中国最大跨境电商平台
  • 中国交通建设监理协会网站打不开网站备案信息批量查询
  • 大型网站开发团队短视频脚本制作教程
  • 网站设计建设收费标准17网一起做网店普宁潮汕
  • 网站建设进程方案网站建设和管理情况自查报告
  • 专业外贸公司网站加大网站和微信号建设发挥宣传平台实效性