[shawnyan@rocky9 ~]$ cat /etc/redhat-release Rocky Linux release 9.2 (Blue Onyx) [shawnyan@rocky9 ~]$ uname -a Linux rocky9.shawnyan.cn 5.14.0-284.30.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Sep 16 09:55:41 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux [shawnyan@rocky9 ~]$ [shawnyan@rocky9 ~]$ gcc --version gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[shawnyan@rocky9 ~]$ cmake --version cmake version 3.20.2
CMake suite maintained and supported by Kitware (kitware.com/cmake). [shawnyan@rocky9 ~]$ top top - 15:28:57 up 12 days, 1:23, 2 users, load average: 0.01, 0.03, 0.00 Tasks: 272 total, 1 running, 271 sleeping, 0 stopped, 0 zombie %Cpu0 : 0.0 us, 0.3 sy, 0.0 ni, 99.0 id, 0.0 wa, 0.3 hi, 0.3 si, 0.0 st %Cpu1 : 0.0 us, 0.3 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 3623.0 total, 818.1 free, 947.4 used, 2131.4 buff/cache MiB Swap: 4020.0 total, 3158.1 free, 861.9 used. 2675.6 avail Mem
-- Local rocksdb dir /data/stonedb-stonedb-5.7-dev/release/rocksdb-6.12.6 found ROCKSDB_INCLUDE_DIR:/data/stonedb-stonedb-5.7-dev/release/rocksdb-6.12.6 -- Found /data/stonedb-stonedb-5.7-dev/release/rocksdb-6.12.6/include/rocksdb/version.h -- current ROCKSDB_VERSION_NUMBER is #define ROCKSDB_MAJOR 6.#define ROCKSDB_MINOR 12 -- current ROCKSDB_MAJOR_VERSION is: 6, ROCKSDB_MAJOR_VERSION:12 -- ROCKSDB_INCLUDE_DIR /data/stonedb-stonedb-5.7-dev/release/rocksdb-6.12.6
marisa-trie 下载链接
StoneDB 依赖“玛丽莎”,同上,需要提前下载源码包。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
found MARISA_INCLUDE_DIR:MARISA_INCLUDE_DIR-NOTFOUND -- Looked for include/marisa.h in and -- MARISA_INCLUDE_DIR MARISA_INCLUDE_DIR-NOTFOUND -- LOCAL_MARISA_DIR -- Could not find (the correct version of) marisa. -- MySQL currently requires marisa-trie
CMake Error at cmake/marisa.cmake:59 (MESSAGE): You can download it, install it, then specify the marisa path with -DWITH_MARISA=<director>
This CMake script will look for marisa in <directory>. Call Stack (most recent call first): cmake/marisa.cmake:123 (COULD_NOT_FIND_MARISA) CMakeLists.txt:323 (INCLUDE)
...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-gnu-11/release/link-static/threadapi-pthread/threading-multi/converter/builtin_converters.o... ...skipped <pbin.v2/libs/python/build/gcc-gnu-11/release/link-static/threadapi-pthread/threading-multi>libboost_python3.a(clean) for lack of <pbin.v2/libs/python/build/gcc-gnu-11/release/link-static/threadapi-pthread/threading-multi>converter/builtin_converters.o... ...skipped <pbin.v2/libs/python/build/gcc-gnu-11/release/link-static/threadapi-pthread/threading-multi>libboost_python3.a for lack of <pbin.v2/libs/python/build/gcc-gnu-11/release/link-static/threadapi-pthread/threading-multi>converter/builtin_converters.o... ...skipped <pstage/lib>libboost_python3.a for lack of <pbin.v2/libs/python/build/gcc-gnu-11/release/link-static/threadapi-pthread/threading-multi>libboost_python3.a... ...failed updating 2 targets... ...skipped 6 targets...
Cannot find appropriate system libraries for WITH_SSL=system. Make sure you have specified a supported SSL version. Valid options are : system (use the OS openssl library), yes (synonym for system), </path/to/custom/openssl/installation>
CMake Error at cmake/ssl.cmake:63 (MESSAGE): Please install the appropriate openssl developer package.
[shawnyan@rocky9 release]$ DISABLE_WARNING_AS_ERROR=1 DEBUG_LEVEL=0 make [ 0%] Built target abi_check [ 0%] Built target lz4_lib [ 0%] Built target INFO_SRC [ 0%] Built target INFO_BIN [ 0%] Built target zlib [ 0%] Built target libedit_emacs [ 0%] Built target libedit_vi [ 0%] Built target libedit_common [ 0%] Built target libedit_fcns [ 0%] Built target libedit_help [ 1%] Built target libedit_func [ 3%] Built target edit [ 3%] Built target event_pthreads [ 4%] Built target event_core [ 4%] Built target event_openssl [ 4%] Built target event_extra [ 7%] Built target strings [ 7%] Built target gen_dtrace_header [ 11%] Built target mysys [ 11%] Built target dbug [ 12%] Built target vio [ 12%] Built target regex [ 12%] Built target base64_test [ 12%] Built target queues [ 13%] Built target thr_lock [ 14%] Built target mysys_ssl [ 14%] Built target comp_err [ 14%] Built target GenError [ 15%] Built target clientlib [ 15%] Built target libmysql [ 15%] Built target libmysql_api_test [ 15%] Built target mysqlclient [ 15%] Built target authentication_ldap_sasl_client [ 15%] Built target binlogevents_static [ 15%] Built target binlogstandalone_shared [ 16%] Built target binlogstandalone_static [ 16%] Built target archive [ 16%] Built target blackhole [ 17%] Built target csv [ 18%] Built target mysqlservices [ 18%] Built target example [ 19%] Built target federated [ 21%] Built target heap [ 27%] Built target innobase [ 29%] Built target myisam [ 31%] Built target myisam_nopfs [ 32%] Built target myisam_ftdump [ 32%] Built target myisampack [ 32%] Built target myisamlog [ 33%] Built target myisamchk [ 34%] Built target myisammrg [ 34%] Built target partition [ 40%] Built target perfschema [ 50%] Built target tianmu [ 51%] Built target test_prog [ 51%] Built target test_security_context [ 51%] Built target audit_null [ 51%] Built target auth [ 52%] Built target qa_auth_interface [ 52%] Built target auth_test_plugin [ 52%] Built target qa_auth_client [ 52%] Built target qa_auth_server [ 52%] Built target mysql_no_login [ 52%] Built target auth_socket [ 52%] Built target connection_control [ 52%] Built target daemon_example [ 52%] Built target ngram_parser [ 52%] Built target ftexample [ 52%] Built target keyring_file [ 52%] Built target validate_password [ 52%] Built target replication_observers_example [ 52%] Built target rewrite_example [ 52%] Built target rewriter [ 53%] Built target semisync_slave [ 53%] Built target semisync_master [ 53%] Built target test_sql_replication [ 53%] Built target test_sql_sqlmode [ 54%] Built target test_sql_lock [ 54%] Built target test_sql_commit [ 54%] Built target test_x_sessions_init [ 54%] Built target test_sql_errors [ 54%] Built target test_x_sessions_deinit [ 55%] Built target test_session_detach [ 55%] Built target test_session_info [ 55%] Built target test_sql_complex [ 55%] Built target test_sql_all_col_types [ 55%] Built target test_sql_2_sessions [ 55%] Built target test_sql_cmds_1 [ 55%] Built target test_sql_shutdown [ 55%] Built target test_session_in_thd [ 55%] Built target test_sql_processlist [ 55%] Built target test_sql_stored_procedures_functions [ 55%] Built target test_sql_views_triggers [ 55%] Built target test_services_thread [ 55%] Built target test_services [ 55%] Built target test_framework [ 55%] Built target test_udf_services [ 55%] Built target version_token [ 60%] Built target group_replication [ 60%] Built target keyring_udf [ 62%] Built target protobuf [ 64%] Built target protoclib [ 64%] Built target protoc [ 66%] Built target mysqlxtest [ 66%] Built target protobuf-lite [ 66%] Built target GenLiteProtos [ 71%] Built target mysqlx [ 72%] Built target my_print_defaults [ 73%] Built target perror [ 73%] Built target lz4_decompress [ 74%] Built target resolveip [ 74%] Built target replace [ 75%] Built target innochecksum [ 76%] Built target zlib_decompress [ 76%] Built target resolve_stack_dump [ 76%] Built target mysql_ssl_rsa_setup [ 76%] Built target comp_sql [ 76%] Built target GenSysSchema [ 76%] Built target GenBootstrapPriv [ 76%] Built target mysql_install_db [ 76%] Built target mysql_secure_installation [ 76%] Built target mysql [ 76%] Built target mysqltest [ 76%] Built target GenFixPrivs [ 76%] Built target mysqlcheck_core [ 77%] Built target client_base [ 78%] Built target mysql_upgrade [ 78%] Built target mysqlcheck [ 78%] Built target mysqldump [ 78%] Built target mysqlimport [ 78%] Built target mysqlshow [ 78%] Built target mysql_plugin [ 78%] Built target mysqlbinlog [ 78%] Built target mysqladmin [ 79%] Built target mysql_config_editor [ 79%] Built target mysqlslap [ 79%] Built target boost_lib [ 83%] Built target mysqlpump_lib [ 84%] Built target mysqlpump [ 84%] Built target mysql_client_test [ 84%] Built target locking_service [ 84%] Built target udf_example [ 86%] Built target binlog [ 86%] Built target gen_lex_hash [ 87%] Built target GenServerSource [ 87%] Built target gen_lex_token [ 87%] Built target GenDigestServerSource [ 99%] Built target sql [ 99%] Built target rpl [ 99%] Built target master [100%] Built target slave [100%] Built target mysqld [100%] Built target sqlgunitlib [100%] Built target mysql_tzinfo_to_sql [shawnyan@rocky9 release]$
[mysql@rocky9 mysql]$ ./bin/mysqld --initialize 2023-11-12T00:29:25.724443Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2023-11-12T00:29:25.936358Z 0 [Warning] InnoDB: New log files created, LSN=45790 2023-11-12T00:29:25.968770Z 0 [Warning] InnoDB: Creating foreign key constraint system tables. 2023-11-12T00:29:26.055356Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 88cba90a-80f2-11ee-bdca-000c2919b58f. 2023-11-12T00:29:26.056284Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened. 2023-11-12T00:29:26.277207Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher. 2023-11-12T00:29:26.277310Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher. 2023-11-12T00:29:26.277919Z 0 [Warning] CA certificate ca.pem is self signed. 2023-11-12T00:29:26.291107Z 1 [Note] A temporary password is generated for root@localhost: r6K_oTsETP<q [mysql@rocky9 mysql]$
[mysql@rocky9 mysql]$ ./bin/mysqld 2023-11-12T00:29:54.068726Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2023-11-12T00:29:54.068785Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2023-11-12T00:29:54.068806Z 0 [Note] ./bin/mysqld (mysqld 5.7.36-StoneDB-) starting as process 290517 ... 2023-11-12T00:29:54.076153Z 0 [Note] InnoDB: PUNCH HOLE support available 2023-11-12T00:29:54.076348Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2023-11-12T00:29:54.076503Z 0 [Note] InnoDB: Uses event mutexes 2023-11-12T00:29:54.076697Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2023-11-12T00:29:54.076756Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2023-11-12T00:29:54.076805Z 0 [Note] InnoDB: Using Linux native AIO 2023-11-12T00:29:54.077154Z 0 [Note] InnoDB: Number of pools: 1 2023-11-12T00:29:54.077581Z 0 [Note] InnoDB: Using CPU crc32 instructions 2023-11-12T00:29:54.080562Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2023-11-12T00:29:54.092507Z 0 [Note] InnoDB: Completed initialization of buffer pool 2023-11-12T00:29:54.095925Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2023-11-12T00:29:54.110502Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 2023-11-12T00:29:54.118113Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2023-11-12T00:29:54.118465Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2023-11-12T00:29:54.140182Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2023-11-12T00:29:54.141586Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 2023-11-12T00:29:54.141913Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 2023-11-12T00:29:54.142898Z 0 [Note] InnoDB: 5.7.36 started; log sequence number 2750173 2023-11-12T00:29:54.143317Z 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/mysql/data/ib_buffer_pool 2023-11-12T00:29:54.143846Z 0 [Note] Plugin 'FEDERATED' is disabled. 2023-11-12T00:29:54.144584Z 0 [Note] InnoDB: Buffer pool(s) load completed at 231112 8:29:54 2023-11-12T00:29:54.187904Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them. 2023-11-12T00:29:54.188261Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory. 2023-11-12T00:29:54.188456Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher. 2023-11-12T00:29:54.188639Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher. 2023-11-12T00:29:54.189276Z 0 [Warning] CA certificate ca.pem is self signed. 2023-11-12T00:29:54.189519Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory. 2023-11-12T00:29:54.190187Z 0 [Note] Server hostname (bind-address): '*'; port: 3306 2023-11-12T00:29:54.190764Z 0 [Note] IPv6 is available. 2023-11-12T00:29:54.190992Z 0 [Note] - '::' resolves to '::'; 2023-11-12T00:29:54.191189Z 0 [Note] Server socket created on IP: '::'. 2023-11-12T00:29:54.202723Z 0 [Note] Event Scheduler: Loaded 1 event 2023-11-12T00:29:54.203592Z 0 [Note] ./bin/mysqld: ready for connections. Version: '5.7.36-StoneDB-' socket: '/tmp/mysql.sock' port: 3306 build-