找回密码
 注册
查看: 1|回复: 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)8 p( ]5 `% L3 }/ t" c9 }
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
0 u- C: V/ G0 u, c4 x3 ?% s0 DPlease set them or make sure they are set and tested correctly in the CMake files:
4 w9 @$ ?) ~  s% [LIBXML2_INCLUDE_DIR (ADVANCED): U7 I1 a2 p% \( i" F
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql! x+ d/ |8 Y( _: E
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
% i1 N! B) Y7 P2 e9 Q0 `% b7 V   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql! E  ?) Z3 R- ^4 g
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
! ^4 T3 a7 c. F. U9 f2 g! H1 x   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql3 j7 M- \. P* o# p) z2 [2 @; u7 A5 e; R
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql( ], }# O# R% b( L: o- A
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
8 c/ m% k: D. f   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql; i) Z- g- d* I8 L" ~
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql' ?: ]" `3 x& H0 E& c8 Y

% P( _1 i; W; f-- Generating done (1.8s)- F5 E$ J% o5 _* o# P  [
CMake Generate step failed.  Build files cannot be regenerated correctly.- j! ~( P' Z) \- X$ V5 v6 `- O  K

" b6 V* Z5 |$ C6 F
# l! F" X- |5 \$ }0 G4 I, [5 R: M+ H1 u8 W; x
解决过程:: ~6 N  F6 q; S& g0 D* l& l

$ Z- _3 j2 P2 A( M" R6 M[root@wwwweb mariadb-12.3.2]# dnf install -y libxml2-devel libxml2
+ V! B- \3 C# R$ Z. s: ~Last metadata expiration check: 0:57:44 ago on Wed 03 Jun 2026 06:21:14 AM CST.+ \9 I# o& K1 @4 s# P% }& {
Package libxml2-2.11.9-7.oe2403sp3.x86_64 is already installed.
  {8 S! U' O. BDependencies resolved.% T/ _; T% t6 |( ~
================================================================================================================================
) D  M! o& c2 Z( s5 N! M0 u Package                          Architecture            Version                                 Repository               Size. H: V1 v% [7 K* C% m
================================================================================================================================
( g5 F/ I2 b6 u1 N3 UInstalling:
8 b; U& V# R2 }3 X libxml2-devel                    x86_64                  2.11.9-13.oe2403sp3                     update                  1.2 M
  o0 p1 s1 I% A" h! T. @Upgrading:
8 y" f( J) D8 V, m5 i  ?/ u# Q libxml2                          x86_64                  2.11.9-13.oe2403sp3                     update                  679 k
3 r! h. m4 Q% P- i% b python3-libxml2                  x86_64                  2.11.9-13.oe2403sp3                     update                  226 k
  U+ ~6 b4 o$ V1 X! NInstalling dependencies:
+ e1 Y3 Q% D3 Z, D8 M1 l, Q xz-devel                         x86_64                  5.4.7-6.oe2403sp3                       OS                      167 k: P6 g9 t  v1 n; x$ d+ a) w5 v

2 C( o1 A% F: D9 H( TTransaction Summary
+ r" X: {, w7 ~* Y0 g" W1 O' n' q================================================================================================================================4 t( a" v  {. j; O  H7 x
Install  2 Packages
9 H8 t/ N- a+ u4 K0 |- E+ B! L& IUpgrade  2 Packages9 k% q! h9 e# U2 x& g" Y+ \8 o

( K6 H3 x2 H9 J; D* OTotal download size: 2.2 M
# a3 N# s* Z6 j9 q- |" IDownloading Packages:
3 S( ?4 y" f/ f# ~. h1 K(1/4): xz-devel-5.4.7-6.oe2403sp3.x86_64.rpm                                                    596 kB/s | 167 kB     00:00   
, a" H+ ]1 r0 @8 @* ^  ~/ u(2/4): libxml2-2.11.9-13.oe2403sp3.x86_64.rpm                                                   2.2 MB/s | 679 kB     00:00   
, y: l% `. V& B- _; s" a(3/4): libxml2-devel-2.11.9-13.oe2403sp3.x86_64.rpm                                             3.5 MB/s | 1.2 MB     00:00   
8 r# K7 Z! d3 G& }) L) E$ S: M(4/4): python3-libxml2-2.11.9-13.oe2403sp3.x86_64.rpm                                           2.7 MB/s | 226 kB     00:00    * O5 M1 d* G0 k. }0 D! b8 l
--------------------------------------------------------------------------------------------------------------------------------9 V4 m5 V8 G" _7 o; x$ Z- i
Total                                                                                           367 kB/s | 2.2 MB     00:06     
; b  L8 N* r8 a9 s% q& PRunning transaction check3 F* y, ]& x0 C. I0 R! X. X/ i
Transaction check succeeded.7 {  L6 G& W' \2 T' T
Running transaction test
: G3 f6 L1 g4 C+ I9 N$ qTransaction test succeeded.# R4 [5 Y& ~/ O* L- \5 k& D
Running transaction
. f3 G- b$ F1 i% R/ f4 O3 z( L# G  Preparing        :                                                                                                        1/1
4 M1 x1 S3 x& n1 A8 v0 M% p: e  Upgrading        : libxml2-2.11.9-13.oe2403sp3.x86_64                                                                     1/6
0 V) O0 G7 W' e4 r  e( W  Installing       : xz-devel-5.4.7-6.oe2403sp3.x86_64                                                                      2/6
2 @0 E- v5 o3 `  Installing       : libxml2-devel-2.11.9-13.oe2403sp3.x86_64                                                               3/6
0 t: w7 ]) d; Q% |$ o7 y" j  Upgrading        : python3-libxml2-2.11.9-13.oe2403sp3.x86_64                                                             4/6
. E; R4 \4 b5 l. _* }  Cleanup          : python3-libxml2-2.11.9-7.oe2403sp3.x86_64                                                              5/6
- @- E* q+ h+ t9 j4 B6 S  Cleanup          : libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      6/6
- Q) T# N7 M( {/ n  Running scriptlet: libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      6/6 : D  t* I9 v. }) l4 c& \1 E* b
  Verifying        : xz-devel-5.4.7-6.oe2403sp3.x86_64                                                                      1/6
6 y( H1 ^8 I* m( _8 d, p, k  Verifying        : libxml2-devel-2.11.9-13.oe2403sp3.x86_64                                                               2/6 ! a& g4 `4 b& w, w
  Verifying        : libxml2-2.11.9-13.oe2403sp3.x86_64                                                                     3/6
4 L; E" \4 \& a* t" B  Verifying        : libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      4/6
- H; L& C, ]- _* [  Verifying        : python3-libxml2-2.11.9-13.oe2403sp3.x86_64                                                             5/6
( }# l( `  O. j9 Q- n& C  J9 n  Verifying        : python3-libxml2-2.11.9-7.oe2403sp3.x86_64                                                              6/6
! t' T+ N+ K1 r( u6 X: Y3 E4 U+ H: a3 O% ~$ K) k4 f/ n1 c
Upgraded:8 h' ?4 M! |  l7 u) L
  libxml2-2.11.9-13.oe2403sp3.x86_64                         python3-libxml2-2.11.9-13.oe2403sp3.x86_64                        * Q, D" r( k: I$ Z5 a
Installed:! K/ a8 {( |6 b' j* o! a/ `  Y
  libxml2-devel-2.11.9-13.oe2403sp3.x86_64                           xz-devel-5.4.7-6.oe2403sp3.x86_64                          
3 A. F6 s) G: w
' M9 h8 t1 U( S0 m  F8 v- @' ^/ gComplete!
* c- F& ?# a. f9 h( m. Y[root@wwwweb mariadb-12.3.2]#
! h: e0 C: N2 |8 F[root@wwwweb mariadb-12.3.2]#
6 ]7 S0 t% g* J# ^" m1 h[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  
4 V5 v& p3 a' F' ?: G( V9 x; fCMake Warning:
; m* z+ n4 q) J: N  u6 Z  No source or binary directory provided.  Both will be assumed to be the. h! s, W6 _; t" B  c6 J6 {
  same as the current working directory, but note that this warning will2 M9 E  M7 z  m1 w* U  t
  become a fatal error in future CMake releases.3 F2 {: H3 v9 l9 k: q
7 Z* v9 ^: L' A
' I* b5 r& m$ w$ s2 e3 S
-- Running cmake version 3.31.12
* M. V/ m% ?. ]- Y-- MariaDB 12.3.2  H/ U/ F# t! M8 M; o, j) K% r
-- Wsrep-lib version: 1.0.0
1 _# D6 @7 }; C+ H! e+ n-- Checking for module 'libpcre2-8'9 \" R/ V% T+ |) V+ \
--   Package 'libpcre2-8', required by 'virtual:world', not found& m& j- Y- {; g: r6 @) }' X
-- Will download and bundle pcre24 F. x. b+ O8 U7 s
== Configuring MariaDB Connector/C
; V" X$ i4 b& V' R4 j/ F-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
2 r6 J& O: Y; F* }, y-- Could NOT find ZSTD (missing: ZSTD_LIBRARIES ZSTD_INCLUDE_DIRS)
& `0 l$ }0 t. D/ S! X, G$ O3 C-- SYSTEM_LIBS: /usr/lib64/libz.so;dl;m;dl;m;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libz.so! s% f3 L$ A: t0 F% M+ ]  @: C6 |
-- Dynamic column API support: ON
; m& _9 ^, u5 a4 {7 _# ]WARNING: Package(s) not found: pyopenssl! p+ [  P4 J5 }  P2 d
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.11.9")0 u$ I3 g; \0 X) ^: N7 |2 t8 u
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
4 |0 f) f# |3 o# O3 A-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) , B" J- w* Y( Q
-- CURL not found. VIDEX will not be compiled  S) }5 r: d/ j5 g
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
2 W/ Q0 M5 o3 X  c- j4 S-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
  w  Y. o" V# x; ?. E' C% B-- Could NOT find LZ4 (missing: LZ4_LIBRARIES LZ4_INCLUDE_DIRS) (Required is at least version "1.6")/ @# X4 X. u! h/ H) r- a2 `
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so3 L% [0 _& c3 }9 C; f6 K2 a
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so - found
% s: F7 _# m; v( d) Q. r" `-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so
5 z9 H+ t0 q! r6 p: O8 E- s-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so - found4 t; e* W7 v. ]) e
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so- A% a$ g3 S& [  l1 p% K
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so - found
- I, F% m  F, r  N* |-- Found LibLZMA: /usr/lib64/liblzma.so (found version "5.4.7")  w' l- m. o8 ?. ~3 b3 Z3 X/ |
-- Could NOT find LZO (missing: LZO_LIBRARIES LZO_INCLUDE_DIRS)
/ X/ T( d8 o) |% u3 z9 U3 A-- Could NOT find Snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIRS)
3 W: ^/ j# w" Z2 H-- Configuring done (17.5s); X# s7 O1 [0 R
-- Generating done (1.8s)3 a7 a+ `/ m" _5 E5 m$ W; M$ f
-- Build files have been written to: /usr/src/mariadb-12.3.2
% ]- k5 M* u; f8 e5 T; e9 y& ]/ A[root@wwwweb mariadb-12.3.2]# 4 V; u% i" ?- ]" \, R* p. Q

8 ~) k  W. ?# h; Z3 T
: B# J1 K( c9 ?/ f# S5 v5 w
" w: o  B4 _2 L9 G0 Y0 @$ p- W
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-11 23:36 , Processed in 0.019288 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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