找回密码
 注册
查看: 0|回复: 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)
% m" Y  s8 r& f' JCMake Error: The following variables are used in this project, but they are set to NOTFOUND.- L* F' t* O" R0 [9 g& Z* Q& J
Please set them or make sure they are set and tested correctly in the CMake files:- I. N4 U9 G; S  s* _8 M* |: a. Q
LIBXML2_INCLUDE_DIR (ADVANCED)
. X1 N) ]$ ^" R" |& I: Q6 g2 r   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql/ i, K0 |9 ^5 v5 ^( W: ]. V! Y
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql3 G  Y* S3 ?, n: C) l8 L* d( Z
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
- r' |* F) @( T$ x- x- r   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
. }! v% L. c# I- U* }   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
8 J) X  R4 T1 ^( J6 R" b   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
# U) B! u0 w& a* J   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql7 J2 l! M" a1 i# D& w
   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql
# y# T7 B. c6 o9 u. d- y# v. @   used as include directory in directory /usr/src/mariadb-12.3.2/storage/columnstore/columnstore/dbcon/mysql* J& a6 D) h/ f/ k
: j% s3 X: u4 H0 g2 Q# |2 C4 y1 a% ]
-- Generating done (1.8s)
# @5 `! T6 z* T5 R) O3 q4 X9 j" _CMake Generate step failed.  Build files cannot be regenerated correctly.8 L" l7 L+ `9 ~7 E2 w$ Q

/ a# @2 K( g) b" N1 S: a5 s; `! B
% v: {) T9 u6 `+ c) R2 }9 W" \
: x* c( X$ J' j' @7 p4 R- x解决过程:: Q& z1 t7 r& D4 g! i
; y8 @6 J: A  X2 W% _+ u- r
[root@wwwweb mariadb-12.3.2]# dnf install -y libxml2-devel libxml2! _. ^' |6 z1 r$ B, a/ Z+ M* |
Last metadata expiration check: 0:57:44 ago on Wed 03 Jun 2026 06:21:14 AM CST.
% d- P2 A, A$ DPackage libxml2-2.11.9-7.oe2403sp3.x86_64 is already installed.
6 |8 p3 |9 s/ ADependencies resolved.
3 ?' Q0 d9 ]  p' v! ~1 {================================================================================================================================7 ~# {  w4 q' G, P% g) w  `) I, P% U6 a
Package                          Architecture            Version                                 Repository               Size
1 N. U- g0 v. A/ f* d1 E6 r================================================================================================================================$ S' K) \' z4 ?/ @& @
Installing:
2 Y& W6 J3 A# {" x libxml2-devel                    x86_64                  2.11.9-13.oe2403sp3                     update                  1.2 M. Y! Z% g" j9 E
Upgrading:, G8 S5 c0 W) k; }
libxml2                          x86_64                  2.11.9-13.oe2403sp3                     update                  679 k8 `4 ~/ `& a2 [, [
python3-libxml2                  x86_64                  2.11.9-13.oe2403sp3                     update                  226 k4 y9 E; r* t* N1 I9 Z
Installing dependencies:" ]5 ~0 q) Y; q
xz-devel                         x86_64                  5.4.7-6.oe2403sp3                       OS                      167 k2 j0 V% ~  b& Y/ A7 Z% g  `  Q

$ R1 q) P- c8 w, fTransaction Summary3 c6 l/ [6 d8 [1 z  e2 C4 h: x0 H
================================================================================================================================
9 K# }" H- R0 }1 _1 ?$ ^7 ]( XInstall  2 Packages
  D+ ?, k: r" zUpgrade  2 Packages/ y/ Z1 {% [0 Z& _4 c
1 @0 |' A6 A: _  J; ~4 B. E( v8 U
Total download size: 2.2 M
. {: R" N/ A! g  J* c2 }Downloading Packages:! e$ ~1 D$ v9 {, [5 _
(1/4): xz-devel-5.4.7-6.oe2403sp3.x86_64.rpm                                                    596 kB/s | 167 kB     00:00   
) ^2 x9 }1 P0 T(2/4): libxml2-2.11.9-13.oe2403sp3.x86_64.rpm                                                   2.2 MB/s | 679 kB     00:00   
3 o4 s# P  u$ G3 n! ^7 @(3/4): libxml2-devel-2.11.9-13.oe2403sp3.x86_64.rpm                                             3.5 MB/s | 1.2 MB     00:00   
5 g( z4 j# b# G$ S(4/4): python3-libxml2-2.11.9-13.oe2403sp3.x86_64.rpm                                           2.7 MB/s | 226 kB     00:00   
. m  C% _8 }, y1 A" h) q--------------------------------------------------------------------------------------------------------------------------------3 ^( H' Q8 L, ^
Total                                                                                           367 kB/s | 2.2 MB     00:06     ( v, M5 @  J5 U& C
Running transaction check( [7 a% q* e% a
Transaction check succeeded.6 l# A* I# W8 ]1 H, x: {+ {
Running transaction test, N, D+ `, \  P9 F/ O
Transaction test succeeded.
3 j. E0 |" }$ T4 [2 N3 z; qRunning transaction
5 n. Z- X' d  |4 u% J* a  Preparing        :                                                                                                        1/1 4 c, ]; O8 g* L! B8 a
  Upgrading        : libxml2-2.11.9-13.oe2403sp3.x86_64                                                                     1/6 % k' V/ z9 x) \& D. S4 f8 n! ]/ h
  Installing       : xz-devel-5.4.7-6.oe2403sp3.x86_64                                                                      2/6
# ^3 h8 d7 _" n: C  Installing       : libxml2-devel-2.11.9-13.oe2403sp3.x86_64                                                               3/6 + V7 K5 G5 f% W  ~8 S
  Upgrading        : python3-libxml2-2.11.9-13.oe2403sp3.x86_64                                                             4/6
  S4 w, J7 J5 i9 C3 l  Cleanup          : python3-libxml2-2.11.9-7.oe2403sp3.x86_64                                                              5/6 5 s3 L4 s' g! R
  Cleanup          : libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      6/6
) p/ @- ^* y) J9 D% W- a' h  Running scriptlet: libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      6/6
- K2 s7 E; E" ^: T5 R  Verifying        : xz-devel-5.4.7-6.oe2403sp3.x86_64                                                                      1/6   J: e+ O5 u. }, E; \6 v! Q
  Verifying        : libxml2-devel-2.11.9-13.oe2403sp3.x86_64                                                               2/6
' f0 z' f% ~6 J/ t% F  Verifying        : libxml2-2.11.9-13.oe2403sp3.x86_64                                                                     3/6 4 }2 f  U: ?0 f* ?
  Verifying        : libxml2-2.11.9-7.oe2403sp3.x86_64                                                                      4/6
" N$ c/ U& j; h  Verifying        : python3-libxml2-2.11.9-13.oe2403sp3.x86_64                                                             5/6
, b4 z" W4 g: \  V7 j- W  Verifying        : python3-libxml2-2.11.9-7.oe2403sp3.x86_64                                                              6/6
1 B3 w# m9 q% }
$ g/ D; R0 z* r, ]: l6 `  ~/ O. RUpgraded:
5 q) S" [0 L& }1 }( i# }$ R  libxml2-2.11.9-13.oe2403sp3.x86_64                         python3-libxml2-2.11.9-13.oe2403sp3.x86_64                        / {% J% O/ w1 C2 ]2 Q6 B( ?
Installed:
: y- |$ r6 g) _' S8 e0 Q  N  libxml2-devel-2.11.9-13.oe2403sp3.x86_64                           xz-devel-5.4.7-6.oe2403sp3.x86_64                          $ s/ s; O$ Z( [( Z1 Y- |# |) W
/ g4 e, i9 p6 J# e: \  J) o
Complete!: F& R, T( N: y$ r
[root@wwwweb mariadb-12.3.2]#
; T* d! Q( ?0 {" z( S+ J1 x[root@wwwweb mariadb-12.3.2]#
6 H* G7 _" G- \[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  
1 Q* e9 ?) i1 O3 Y  @1 nCMake Warning:( F3 Y6 v) I/ h) g5 G
  No source or binary directory provided.  Both will be assumed to be the
& K/ `2 \8 a+ W2 {  same as the current working directory, but note that this warning will
" D9 @+ `$ _; _" P+ E! _- K  become a fatal error in future CMake releases.2 t6 d& b. r+ D9 Q4 w1 @

9 m% V, q$ {, P% E6 R+ v; ^8 v3 P$ s9 {) u$ c; k( _2 u
-- Running cmake version 3.31.12" k. p  A. {5 K+ _# f( l
-- MariaDB 12.3.2, e$ O1 z$ c- Z$ c5 n& `
-- Wsrep-lib version: 1.0.0
4 a. m4 w2 z3 u- i0 w8 m" j7 x8 s-- Checking for module 'libpcre2-8'6 ]9 h( k7 n$ d& l8 ~
--   Package 'libpcre2-8', required by 'virtual:world', not found
! n# |: \  @/ d( f6 m) ^* r$ g-- Will download and bundle pcre24 F+ L) j' m2 x( h4 s
== Configuring MariaDB Connector/C
% ]8 W4 _3 r/ g-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) 4 \# {* I$ K6 q5 ]3 Q. n) r
-- Could NOT find ZSTD (missing: ZSTD_LIBRARIES ZSTD_INCLUDE_DIRS) , }5 H# w" t% r' u( b% R
-- SYSTEM_LIBS: /usr/lib64/libz.so;dl;m;dl;m;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libz.so
9 l0 b, T2 O" \1 K-- Dynamic column API support: ON
$ k/ U- r; {! l* s* t" N4 T: KWARNING: Package(s) not found: pyopenssl3 U+ p0 [+ m& E: Q( F- S
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.11.9"), n6 D9 J2 O3 H. E
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
2 `7 `) C# k' g3 s+ X6 ~0 f-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) 8 N/ W5 A( L! G1 j* e
-- CURL not found. VIDEX will not be compiled
, v# h3 m5 x) M& C& y! e) l-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
- W5 [6 t# ~' k; ]" R/ F+ B-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
4 f  |! K$ W7 d, I2 ?-- Could NOT find LZ4 (missing: LZ4_LIBRARIES LZ4_INCLUDE_DIRS) (Required is at least version "1.6")
5 ~) y8 i3 J" E% L. B9 R-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so8 r4 O1 P) R. v7 ^4 @
-- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so - found8 F' i; G9 h* t
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so1 A3 @/ e( A3 M* k5 _9 @; b
-- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so - found4 O: Q: J  ~8 ?& b
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so& D+ @4 \( N/ H3 K, Z, A! l" E
-- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so - found
6 f9 ]. V3 |) h! b: k-- Found LibLZMA: /usr/lib64/liblzma.so (found version "5.4.7")5 S# t( x3 w" x: \) H
-- Could NOT find LZO (missing: LZO_LIBRARIES LZO_INCLUDE_DIRS)
& i# p1 U  Q6 ]-- Could NOT find Snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIRS)
, t2 c% g5 |/ C* ?6 S/ `-- Configuring done (17.5s)
* `' F. i! O- L9 {' M* S3 c. ?-- Generating done (1.8s)
$ T6 W' v, F( w' n4 i-- Build files have been written to: /usr/src/mariadb-12.3.2$ ~* u; k7 B; G( S* N
[root@wwwweb mariadb-12.3.2]# ' \7 P5 ^0 a, `2 x/ m
2 I2 A4 b7 M% j) k
* c7 G) E8 Y' Q7 p
2 Z2 a; A* i2 O- `/ h: K
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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