Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
10.9.3, 10.11.0
-
Ubuntu 22.04
Own package installations from source...
Description
Hi.
This problem i had also in previous releases.
I've installed openssl, pcre2, curl, zlib, ncurses ect. from source.
My installation structure is "/own/dep/..."
The .pc-files (PKG-Config) are in /usr/share/pkgconfig and if i test each of them with pkg-config (e.g "pkg-config zlib --libs / --cflags") all is fine.
For compiling mariadb i set the cmake-options:
- -DWITH_ZLIB=system
- -DWITH_LIBFMT=system
- -DWITH_PCRE=system
- ...
but zlib, libfmt, pcre2-8 and ncurses are not found:
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
|
...
|
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
|
Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
|
...
|
CMake Error at cmake/pcre.cmake:84 (MESSAGE):
|
system pcre2-8 library is not found or unusable
|
Why mariadb doesn't find these packages while others like openssl and curl are found?
The output of pkg-config (libdir | includedir | libs | cflags):
zlib:
====================================
- /own/dep/zlib/lib
- /own/dep/zlib/include
- -L/own/dep/zlib/lib -lz
- -I/own/dep/zlib/include
====================================
fmt:
====================================
- /own/dep/libfmt/lib
- /own/dep/libfmt/include
- -L/own/dep/libfmt/lib -lfmt
- -I/own/dep/libfmt/include
====================================
ncurses:
====================================
- /own/dep/libncurses/lib
- /own/dep/libncurses/include/ncurses
- -L/own/dep/pcre2/lib -lncurses -lpcre2-posix
- -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/own/dep/libncurses/include/ncurses -I/own/dep/libncurses/include
====================================
libpcre2-8 / libpcre2-posix
====================================
- /own/dep/pcre2/lib
- /own/dep/pcre2/include
- -L/own/dep/pcre2/lib -lpcre2-8 / -lpcre2-posix
- -I/own/dep/pcre2/include
====================================
I know that i can use additional options like -DZLIB_... or -DCURSES_...
But why, as i said mariadb found openssl and curl with pkg-config but not the others?
Other programs like nginx and php found all of them!