找回密码
 注册
查看: 2|回复: 0

CMake Error: The following variables are used in this project, but they are set

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2026-6-2 23:19:52 | 显示全部楼层 |阅读模式
-- Configuring done (55.5s)4 z- q6 t( R" K% D
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
6 |2 `3 E4 S3 C0 n5 p% d  O3 P3 rPlease set them or make sure they are set and tested correctly in the CMake files:
1 B$ ]& J9 N( U1 o! K6 G7 K- LLIBXML2_INCLUDE_DIR (ADVANCED)
) K6 d( j5 U$ ]& G2 E   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql, T. u0 D0 j  P6 A6 c0 H6 @  }
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql! f5 P. t8 H8 j/ _/ {
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
( ~3 [3 I4 U! D" q: J   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
& I- t+ B8 j' r1 ]5 Z   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
/ E! A: t7 @& t7 n3 T& M0 o" I5 g   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
% o4 [9 F3 x! A   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql& K  i6 I$ N9 R  E& \2 p
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
# E% s$ a4 w& D/ A   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql' j' _! ?$ D# s1 B& Q, m
% L* `+ Q# ~9 T1 s/ {
-- Generating done (1.8s)
2 f+ o1 }" |2 X6 e" p+ n5 f3 RCMake Generate step failed.  Build files cannot be regenerated correctly.
& ?- M  f8 J$ f$ A# U7 I. o/ E7 H6 C9 {. v( w! r5 K

$ a! l5 S( x- P! _; Y
1 O* L" [0 I/ Q+ a8 E$ u$ F解决过程:
7 p' @) {3 ?$ r  _% {) u/ c% _) S
[root@wwwweb mariadb-12.3.2]# dnf install -y libxml2-devel libxml29 p9 x. M5 X8 f9 u5 q' r* g) y
Last metadata expiration check: 0:57:44 ago on Wed 03 Jun 2026 06:21:14 AM CST.  d# K6 q0 [  M$ x- \8 E
Package libxml2-2.11.9-7.oe2403sp3.x86_64 is already installed.
' G  D3 y; E+ mDependencies resolved.
6 C+ H. N( W* [================================================================================================================================
: F8 N  @5 d0 R/ E7 P Package                          Architecture            Version                                 Repository               Size
( z& N  K0 w! U, l+ z4 P================================================================================================================================
1 Z* ?% |  F# q8 G* q: n7 mInstalling:/ c6 N, d, I3 i+ \) p& j+ L- j2 A
libxml2-devel                    x86_64                  2.11.9-13.oe2403sp3                     update                  1.2 M
1 C5 ?; w: y2 [+ r1 u4 `Upgrading:
! l1 u1 s+ X9 g( c8 g; n7 f3 c- @ libxml2                          x86_64                  2.11.9-13.oe2403sp3                     update                  679 k
" R/ e( j. o( g' c0 p! `, d6 J python3-libxml2                  x86_64                  2.11.9-13.oe2403sp3                     update                  226 k
+ ?' w* T  \: @2 T* p- h$ L# YInstalling dependencies:
% X8 e3 O( D6 r xz-devel                         x86_64                  5.4.7-6.oe2403sp3                       OS                      167 k
' X; w$ x, w+ a) n) N7 C9 a! q  P- t  S" ^
Transaction Summary# y- N/ u/ c3 m2 v8 d8 M" R
================================================================================================================================3 q8 [7 |! @& Y4 _9 e5 f2 M; o
Install  2 Packages
/ R- Q2 ~! s2 }6 C1 N, _- ZUpgrade  2 Packages
( c/ w2 ^; q* U) x( m
/ _: D6 v1 J; a* N# bTotal download size: 2.2 M
0 t2 {. F' T7 E$ b3 ^  u) ~$ M$ IDownloading Packages:  t' s& N2 g1 o# Z2 [% u* F
(1/4): xz-devel-5.4.7-6.oe2403sp3.x86_64.rpm                                                    596 kB/s | 167 kB     00:00    % w. Z7 {: F* p0 Y8 q$ w
(2/4): libxml2-2.11.9-13.oe2403sp3.x86_64.rpm                                                   2.2 MB/s | 679 kB     00:00    * K# t8 ]8 X. z, p
(3/4): libxml2-devel-2.11.9-13.oe2403sp3.x86_64.rpm                                             3.5 MB/s | 1.2 MB     00:00   
/ S2 z9 k7 [; b7 O4 {( Y# [(4/4): python3-libxml2-2.11.9-13.oe2403sp3.x86_64.rpm                                           2.7 MB/s | 226 kB     00:00    5 e& a4 J* Y$ b  \" s
--------------------------------------------------------------------------------------------------------------------------------" Y! @& s8 |4 Y: R: @0 S2 `. t# {) D
Total                                                                                           367 kB/s | 2.2 MB     00:06     # f3 n# t$ N/ _& S
Running transaction check! y& D8 }* P" G% k
Transaction check succeeded.
+ N8 p& a0 }' R- s4 y; D8 WRunning transaction test9 g! Z/ Y( ~0 H% A0 w9 I; M
Transaction test succeeded./ N& }( \8 {' b
Running transaction
5 K) [' S! m8 e) F' x2 e  Preparing        :                                                                                                        1/1
4 c3 Z7 w$ e% n6 U8 Y  Upgrading        : libxml2-2.11.9-13.oe2403sp3.x86_64                                                                     1/6 # o: I* Q/ L& O$ h1 Q
  Installing       : xz-devel-5.4.7-6.oe2403sp3.x86_64                                                                      2/6 ' t4 J9 W# Y! R+ Z
  Installing       : libxml2-devel-2.11.9-13.oe2403sp3.x86_64                                                               3/6
  w. }5 h7 n4 W' b  Upgrading        : python3-libxml2-2.11.9-13.oe2403sp3.x86_64                                                             4/6 ( B: l) i7 D1 [1 M& U9 H
  Cleanup          : python3-libxml2-2.11.9-7.oe2403sp3.x86_64                                                              5/6
. \1 C8 K2 i* O- A0 j. l  Cleanup          : libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      6/6 ) e4 |4 K' f  b9 I6 }* {
  Running scriptlet: libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      6/6 2 v- D! A4 }1 z5 L/ M' P( A
  Verifying        : xz-devel-5.4.7-6.oe2403sp3.x86_64                                                                      1/6 ; G* _6 V7 p. I3 O* \  C, A
  Verifying        : libxml2-devel-2.11.9-13.oe2403sp3.x86_64                                                               2/6 ( _9 x0 {& S& E5 E
  Verifying        : libxml2-2.11.9-13.oe2403sp3.x86_64                                                                     3/6 " ^! I1 N. l; V4 _0 c6 H
  Verifying        : libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      4/6
1 b+ V+ O% U9 _( C% b7 `+ C  Verifying        : python3-libxml2-2.11.9-13.oe2403sp3.x86_64                                                             5/6 % i1 i- \$ H  X: W+ G- w2 Y1 c
  Verifying        : python3-libxml2-2.11.9-7.oe2403sp3.x86_64                                                              6/6 ' G# I, U1 x+ R  G/ i
3 D9 h  [( X" O& h% y
Upgraded:
; b2 o( v2 _" p/ E4 n  libxml2-2.11.9-13.oe2403sp3.x86_64                         python3-libxml2-2.11.9-13.oe2403sp3.x86_64                        ; V9 v# q7 [  |/ Q, a
Installed:
1 ~" S3 C! d. X6 i  r" g+ \0 u7 a  libxml2-devel-2.11.9-13.oe2403sp3.x86_64                           xz-devel-5.4.7-6.oe2403sp3.x86_64                          
& L! j, j# s3 a0 \# T9 ~# P5 |3 N) ^
7 `' u( E% g- \! u7 n; k: x; |Complete!) M4 b8 L* o& E/ w
[root@wwwweb mariadb-12.3.2]#
5 `/ J5 ^' |0 c2 }6 O, v( u6 \: a% }[root@wwwweb mariadb-12.3.2]#
( U/ ?" d% D! R[root@wwwweb mariadb-12.3.2]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mariadb -DDEFAULT_CHARSET=utf8mb4 -DDEFAULT_COLLATION=utf8mb4_general_ci -DWITH_EXTRA_CHARSETS=all -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITH_SSL=system -DEXTRA_CHARSETS=all -DWITH_READLINE=1 -DMYSQL_DATADIR=/usr/local/mariadb/data -DWITH_ZLIB=system -DWITHOUT_TOKUDB=1  
, d0 N* r4 r& O8 m  D$ N/ _5 yCMake Warning:
# P* ^. N. U1 ]* I+ v  No source or binary directory provided.  Both will be assumed to be the
$ E; q$ v9 g- K% Z% j  same as the current working directory, but note that this warning will; B1 ~, R2 A* T9 z
  become a fatal error in future CMake releases.
% J- [$ u7 B3 g; \' t" o
8 f3 ~, l: G8 _& [: L5 T- c# N/ l* Y3 a: H
-- Running cmake version 3.31.122 H9 R, T( f# }- _
-- MariaDB 12.3.22 r  F4 T% [  p! f) W7 j0 b
-- Wsrep-lib version: 1.0.0! ~- C# Z! T( F8 b# ^9 p- k
-- Checking for module 'libpcre2-8'
$ }2 V4 g9 J6 I1 H--   Package 'libpcre2-8', required by 'virtual:world', not found. E& P6 n" ~5 }) k/ Q: X2 p
-- Will download and bundle pcre2
, b" e2 z/ h: n$ J/ h# y, c/ i== Configuring MariaDB Connector/C
+ T1 B* y, k9 F9 [, k) m-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
* P# n' `: J6 U& e1 J* A-- Could NOT find ZSTD (missing: ZSTD_LIBRARIES ZSTD_INCLUDE_DIRS)
, Q$ y+ Z' V" a7 U9 X$ P3 K-- SYSTEM_LIBS: /usr/lib64/libz.so;dl;m;dl;m;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libz.so; p. G4 t( a+ V4 Q0 f" {* A/ c8 V2 {
-- Dynamic column API support: ON' g2 t! V+ ^, `, |$ i9 m
WARNING: Package(s) not found: pyopenssl
  B# J$ k8 L" ~. t1 l-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.11.9")
% s4 R7 u) ]& @8 f-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) 2 r* }7 a* Z  d/ _; T
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) ( a) _3 j& D( K2 I- ?6 y
-- CURL not found. VIDEX will not be compiled
; R5 S1 y& q; s5 n-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) ! a) g% c. J, g6 P2 K3 V: I0 V: h
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
% a0 S9 ~; `: I-- Could NOT find LZ4 (missing: LZ4_LIBRARIES LZ4_INCLUDE_DIRS) (Required is at least version "1.6")% b$ i' q' a# w
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so
9 P# `; c  [, J-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so - found
4 e- s$ C) _, v( v" J-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so6 [. C# I8 k5 K  j
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so - found
' R1 Q8 W+ _0 m- [-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so
1 K* f! a. }3 z-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so - found1 Q  T5 ?- r; n4 F1 v: ]8 H9 l
-- Found LibLZMA: /usr/lib64/liblzma.so (found version "5.4.7")! s* C& l  K8 T/ Y
-- Could NOT find LZO (missing: LZO_LIBRARIES LZO_INCLUDE_DIRS)
( M" v" Q2 E9 S2 {- k-- Could NOT find Snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIRS)
$ i  K6 P' {, W3 k-- Configuring done (17.5s)
; G& P5 n: `) k1 v-- Generating done (1.8s)- G/ Z: ]) y8 B$ P! W2 j
-- Build files have been written to: /usr/src/mariadb-12.3.2
! c- q( @2 \; G6 a$ t5 L2 V8 ~[root@wwwweb mariadb-12.3.2]#
7 Y' t% z  M  s2 X2 d+ X# s7 X1 l( M1 {) X
  }0 p7 I( Q. j+ [/ ?

# d! T) |1 m# ?" h
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:25 , Processed in 0.019868 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表