找回密码
 注册
查看: 3|回复: 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): h2 b: J8 Q% O! H' K/ a
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
& v! P1 }/ b& N) hPlease set them or make sure they are set and tested correctly in the CMake files:
8 _, O" [& z9 aLIBXML2_INCLUDE_DIR (ADVANCED)
0 A& {* `+ S: `  S   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
5 j. U8 k" E/ r: ], x6 Q, N# v   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql8 d4 C4 _) z7 O3 w2 f( H
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql5 A4 E/ j0 f5 N6 a8 \
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
1 f( k" R! q, l5 Z/ ^% y; a   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
6 ]8 }8 x0 m# Y- u4 g   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql; t; Z6 v3 q7 d4 ^% g
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
+ E3 X  V7 q5 }   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql( k8 u! W1 O" `% O# D; S0 @
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql0 G, O- G# x& R; d* C8 o6 h

, f( F, {5 E/ y4 c8 G9 n$ [( e-- Generating done (1.8s)
# p4 e  M. {; g  f% OCMake Generate step failed.  Build files cannot be regenerated correctly., f2 i$ i% m5 i# @3 k

9 J) B$ q& V8 ^( f# i9 j) z
! @9 o  Y0 s- D: i* ?3 i' V( U, _
解决过程:
" y! w4 w2 P- c, X2 [
3 q. }; }/ o, O2 ^* R5 N[root@wwwweb mariadb-12.3.2]# dnf install -y libxml2-devel libxml2
# \) p8 {9 ^+ e7 j+ A0 Y$ F6 JLast metadata expiration check: 0:57:44 ago on Wed 03 Jun 2026 06:21:14 AM CST.
+ ~8 h2 \6 o+ X/ J! qPackage libxml2-2.11.9-7.oe2403sp3.x86_64 is already installed.
7 q) t% \1 X/ ^5 A$ h  xDependencies resolved.. H4 T2 n) v: P# O: D! ^5 n
================================================================================================================================. h* B$ U& |$ \0 }( k
Package                          Architecture            Version                                 Repository               Size7 {0 v0 t1 y8 x% W
================================================================================================================================( o5 \2 U1 g) [7 A
Installing:
! m# e$ i) Y. `6 @- A7 i libxml2-devel                    x86_64                  2.11.9-13.oe2403sp3                     update                  1.2 M& o5 K8 @1 u) N9 d9 W' Y+ Q, G
Upgrading:1 }$ \4 @6 a/ p) ^5 N- W
libxml2                          x86_64                  2.11.9-13.oe2403sp3                     update                  679 k
# v6 G. r( D! U+ E python3-libxml2                  x86_64                  2.11.9-13.oe2403sp3                     update                  226 k/ `5 d% a% @" V, i5 ~
Installing dependencies:+ K7 f1 |8 s6 W! Z. O& ?- T" Z
xz-devel                         x86_64                  5.4.7-6.oe2403sp3                       OS                      167 k; ~/ v+ r* G% ?( p9 t. M8 h. i

- U9 I1 M6 L8 y9 cTransaction Summary8 _: n# d- j/ u* N5 C( k0 q* l' Y
================================================================================================================================' E6 w3 l/ B" Q; y2 G' s$ I
Install  2 Packages% U' _- \/ D- l$ @$ J
Upgrade  2 Packages
+ z; ~4 a/ K6 z+ @
& F, s0 ^* B* r5 t: \$ hTotal download size: 2.2 M) K% d6 g6 \5 [' q' h
Downloading Packages:$ P1 `; v! ?, p- R
(1/4): xz-devel-5.4.7-6.oe2403sp3.x86_64.rpm                                                    596 kB/s | 167 kB     00:00   
" A8 F# o0 l' I; h, g3 v(2/4): libxml2-2.11.9-13.oe2403sp3.x86_64.rpm                                                   2.2 MB/s | 679 kB     00:00    + i; e' Z$ _% ]. Q. [6 ]
(3/4): libxml2-devel-2.11.9-13.oe2403sp3.x86_64.rpm                                             3.5 MB/s | 1.2 MB     00:00    + F) h9 A" a0 @" M) A; h
(4/4): python3-libxml2-2.11.9-13.oe2403sp3.x86_64.rpm                                           2.7 MB/s | 226 kB     00:00   
) U6 [6 L/ Y$ j) r/ S5 _7 o1 Q, r--------------------------------------------------------------------------------------------------------------------------------1 E' ]8 ?2 i; e) O" ?% \+ @
Total                                                                                           367 kB/s | 2.2 MB     00:06     
5 g$ b# ~  f( W5 s  j, E- ERunning transaction check! M8 S( y' u; p, D' r& |7 _
Transaction check succeeded.
% [. p" D* M3 l" iRunning transaction test' \6 ^/ K0 P  v7 F" W4 `0 X
Transaction test succeeded.9 h- r6 K' {! P! B7 o3 q
Running transaction+ _1 P% I! }! m0 |/ K* Q
  Preparing        :                                                                                                        1/1 $ A0 v6 S& o7 ^; {2 D+ y3 t
  Upgrading        : libxml2-2.11.9-13.oe2403sp3.x86_64                                                                     1/6 ! \- h) _5 W$ k6 a# m, c# u
  Installing       : xz-devel-5.4.7-6.oe2403sp3.x86_64                                                                      2/6 9 y$ r# }2 A8 v
  Installing       : libxml2-devel-2.11.9-13.oe2403sp3.x86_64                                                               3/6 . d% \/ l5 ^7 G# A
  Upgrading        : python3-libxml2-2.11.9-13.oe2403sp3.x86_64                                                             4/6
# x, K) d2 T% _$ M. v2 t  Cleanup          : python3-libxml2-2.11.9-7.oe2403sp3.x86_64                                                              5/6
/ ?6 B6 ]! ^9 Q, ]; z  Cleanup          : libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      6/6 $ J! W4 Q5 H" j5 B5 O" P
  Running scriptlet: libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      6/6 & z7 i4 \6 h" f& R
  Verifying        : xz-devel-5.4.7-6.oe2403sp3.x86_64                                                                      1/6
: b) L: N* u9 K' n5 Z; G3 A  Verifying        : libxml2-devel-2.11.9-13.oe2403sp3.x86_64                                                               2/6
' }; ~* t! u( Y0 g9 F8 }6 O  Verifying        : libxml2-2.11.9-13.oe2403sp3.x86_64                                                                     3/6
8 f3 q; e1 ^! b) L4 w' t  Verifying        : libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      4/6
, [" `2 g( G* k) D  Verifying        : python3-libxml2-2.11.9-13.oe2403sp3.x86_64                                                             5/6 2 O' N% z( z5 f: J; Z8 |. O
  Verifying        : python3-libxml2-2.11.9-7.oe2403sp3.x86_64                                                              6/6
  s9 E' l' E: T3 z4 A# N
5 ^9 l: H0 ^# C; C* ]' m& DUpgraded:3 j: t% v: u3 E6 t
  libxml2-2.11.9-13.oe2403sp3.x86_64                         python3-libxml2-2.11.9-13.oe2403sp3.x86_64                        
* j- {( u5 a6 l! b" H9 }1 b/ ZInstalled:' j- E/ O; B# W: U2 l
  libxml2-devel-2.11.9-13.oe2403sp3.x86_64                           xz-devel-5.4.7-6.oe2403sp3.x86_64                          0 h/ c" D+ i; S0 L9 f
3 M! \- R4 _" C/ K' l) F
Complete!
& a+ I7 g$ _+ x! F" F# ~[root@wwwweb mariadb-12.3.2]#
6 Q% x+ {' y- \  p# J[root@wwwweb mariadb-12.3.2]# 3 S7 D- e- N, Z, b
[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  
" j# t! T* Q" f" ECMake Warning:
0 O- @! G) Q8 N5 P  No source or binary directory provided.  Both will be assumed to be the
- _# U) `) c$ [# D. s  same as the current working directory, but note that this warning will7 Y1 M$ Q6 H  V# A
  become a fatal error in future CMake releases.  c5 z- S+ X# C/ x
# [' w+ j; V' a; n7 `
7 n3 U" k  c! j6 V. w
-- Running cmake version 3.31.12
  ~2 b* w4 M9 d/ M9 d-- MariaDB 12.3.2
$ v! y' U( s8 L5 G' I" k# |-- Wsrep-lib version: 1.0.0
( z9 B4 n3 f9 o9 P! b-- Checking for module 'libpcre2-8'
4 C2 ~# L! L* P! A) v/ S# j) k" Y--   Package 'libpcre2-8', required by 'virtual:world', not found
. g- t+ \- I% J1 N  @3 j-- Will download and bundle pcre23 }/ H* r: ^" @* C: X6 ?7 V
== Configuring MariaDB Connector/C' ]" P) E* v* |5 q- j5 A
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
9 t2 v' @) H* [* E/ t. `3 z( J; q2 ?-- Could NOT find ZSTD (missing: ZSTD_LIBRARIES ZSTD_INCLUDE_DIRS)
' f+ x- O/ v+ U3 F: j1 y4 H-- SYSTEM_LIBS: /usr/lib64/libz.so;dl;m;dl;m;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libz.so
: q+ u$ f& x1 g/ Q' N" y- x-- Dynamic column API support: ON* L' S& l9 h, c* H3 p
WARNING: Package(s) not found: pyopenssl
- D1 {7 e$ a! E9 l0 e-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.11.9")
/ Z( P6 o' W9 [) U, k! i$ T-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
2 i0 S" L3 [0 v  R; \, h; s-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) * H0 n8 u. R6 n$ o. A& Q" Y
-- CURL not found. VIDEX will not be compiled2 {$ l. G  t1 F! _( H, S9 j
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
: Y7 o2 K& N/ F3 j2 V; x( }-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) ) X$ ~9 x! ~2 h% Z3 M0 S
-- Could NOT find LZ4 (missing: LZ4_LIBRARIES LZ4_INCLUDE_DIRS) (Required is at least version "1.6")$ |( s2 ]! ]0 _
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so
; q7 U( C# L) l  J-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so - found. V1 W" q/ u/ z( g6 Z
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so. T# h7 h9 a- ?
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so - found
( U1 d7 c) ]0 e! A-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so3 a. x; Y. Y& u0 z; d
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so - found
; I7 s3 x- U0 ]0 @9 k( ]& V-- Found LibLZMA: /usr/lib64/liblzma.so (found version "5.4.7")9 _2 p9 P* w# F; X" e
-- Could NOT find LZO (missing: LZO_LIBRARIES LZO_INCLUDE_DIRS) 4 z6 f7 w+ ?# i) J" @
-- Could NOT find Snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIRS) 2 X" b, y8 `) k/ g0 K8 p3 k
-- Configuring done (17.5s)5 X8 R4 V' i9 N) \
-- Generating done (1.8s)
6 I! g* H) n9 R3 v* _/ M1 S8 Q-- Build files have been written to: /usr/src/mariadb-12.3.2( K* @2 @; `& u) D) B; a
[root@wwwweb mariadb-12.3.2]#
9 Z; `$ v6 t. N" `: k+ [$ R- X) Q
2 y7 n( |9 U3 i! {( K: T0 ^# _( m5 M% h
0 G5 I/ i! r: L" I" u
2 i% `3 o! S, `; D5 d6 S8 p
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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