git clone --recurse-submodules https://github.com/google/leveldb.git

编程知识 更新时间:2023-05-02 03:06:01
git clone --recurse-submodules https://github/google/leveldb.git
root@cp01:~# git config --global http.sslVerify false
root@cp01:~# git clone --recurse-submodules https://github/google/leveldb.git
Cloning into 'leveldb'...
remote: Enumerating objects: 3457, done.
remote: Total 3457 (delta 0), reused 0 (delta 0), pack-reused 3457
Receiving objects: 100% (3457/3457), 1.59 MiB | 467.00 KiB/s, done.
Resolving deltas: 100% (2431/2431), done.
Submodule 'third_party/benchmark' (https://github/google/benchmark) registered for path 'third_party/benchmark'
Submodule 'third_party/googletest' (https://github/google/googletest.git) registered for path 'third_party/googletest'
Cloning into '/root/leveldb/third_party/benchmark'...
fatal: unable to access 'https://github/google/benchmark/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: clone of 'https://github/google/benchmark' into submodule path '/root/leveldb/third_party/benchmark' failed
Failed to clone 'third_party/benchmark'. Retry scheduled
Cloning into '/root/leveldb/third_party/googletest'...
^Cwarning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'


root@cp01:~# git clone https://github/google/benchmark
Cloning into 'benchmark'...
remote: Enumerating objects: 7532, done.
remote: Counting objects: 100% (43/43), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 7532 (delta 12), reused 34 (delta 8), pack-reused 7489
Receiving objects: 100% (7532/7532), 2.36 MiB | 447.00 KiB/s, done.
Resolving deltas: 100% (5006/5006), done.
root@cp01:~# ls
benchmark  ceph  ceph.git.tar.gz  leveldb  repo  snap
root@cp01:~# mv benchmark/ leveldb/third_party/
root@cp01:~# git clone https://github/google/googletest.git
Cloning into 'googletest'...
remote: Enumerating objects: 25155, done.
remote: Counting objects: 100% (236/236), done.
remote: Compressing objects: 100% (124/124), done.
remote: Total 25155 (delta 126), reused 158 (delta 93), pack-reused 24919
Receiving objects: 100% (25155/25155), 10.88 MiB | 480.00 KiB/s, done.
Resolving deltas: 100% (18566/18566), done.
root@cp01:~# ll
total 1943928
drwx------  8 root root       4096 Oct 31 12:34 ./
drwxr-xr-x 19 root root       4096 Sep  5 07:27 ../
-rw-------  1 root root       2327 Oct 31 08:47 .bash_history
-rw-r--r--  1 root root       3106 Dec  5  2019 .bashrc
drwx------  2 root root       4096 Sep 22 05:41 .cache/
drwxr-xr-x 27 root root       4096 Oct 31 11:57 ceph/
-rw-r--r--  1 root root 1990464140 Oct 31 01:19 ceph.git.tar.gz
-rw-r--r--  1 root root         51 Oct 31 12:29 .gitconfig
drwxr-xr-x  8 root root       4096 Oct 31 12:34 googletest/
drwxr-xr-x 15 root root       4096 Oct 31 12:29 leveldb/
-rw-r--r--  1 root root        161 Dec  5  2019 .profile
-rwxr-xr-x  1 root root      45769 Oct 31 06:02 repo*
drwx------  3 root root       4096 Sep  5 07:30 snap/
drwx------  2 root root       4096 Sep 22 05:39 .ssh/
-rw-------  1 root root      11456 Oct 31 06:03 .viminfo
root@cp01:~# mv googletest/ leveldb/third_party/
root@cp01:~# ll
total 1943924
drwx------  7 root root       4096 Oct 31 12:35 ./
drwxr-xr-x 19 root root       4096 Sep  5 07:27 ../
-rw-------  1 root root       2327 Oct 31 08:47 .bash_history
-rw-r--r--  1 root root       3106 Dec  5  2019 .bashrc
drwx------  2 root root       4096 Sep 22 05:41 .cache/
drwxr-xr-x 27 root root       4096 Oct 31 11:57 ceph/
-rw-r--r--  1 root root 1990464140 Oct 31 01:19 ceph.git.tar.gz
-rw-r--r--  1 root root         51 Oct 31 12:29 .gitconfig
drwxr-xr-x 15 root root       4096 Oct 31 12:29 leveldb/
-rw-r--r--  1 root root        161 Dec  5  2019 .profile
-rwxr-xr-x  1 root root      45769 Oct 31 06:02 repo*
drwx------  3 root root       4096 Sep  5 07:30 snap/
drwx------  2 root root       4096 Sep 22 05:39 .ssh/
-rw-------  1 root root      11456 Oct 31 06:03 .viminfo
root@cp01:~# ll leveldb/third_party/
total 16
drwxr-xr-x  4 root root 4096 Oct 31 12:35 ./
drwxr-xr-x 15 root root 4096 Oct 31 12:29 ../
drwxr-xr-x 11 root root 4096 Oct 31 12:32 benchmark/
drwxr-xr-x  8 root root 4096 Oct 31 12:34 googletest/
root@cp01:~# pwd
/root
root@cp01:~# cd leveldb/
root@cp01:~/leveldb# ll
total 120
drwxr-xr-x 15 root root  4096 Oct 31 12:29 ./
drwx------  7 root root  4096 Oct 31 12:35 ../
-rw-r--r--  1 root root   293 Oct 31 12:29 AUTHORS
drwxr-xr-x  2 root root  4096 Oct 31 12:29 benchmarks/
-rw-r--r--  1 root root   707 Oct 31 12:29 .clang-format
drwxr-xr-x  2 root root  4096 Oct 31 12:29 cmake/
-rw-r--r--  1 root root 16003 Oct 31 12:29 CMakeLists.txt
-rw-r--r--  1 root root  1225 Oct 31 12:29 CONTRIBUTING.md
drwxr-xr-x  2 root root  4096 Oct 31 12:29 db/
drwxr-xr-x  2 root root  4096 Oct 31 12:29 doc/
drwxr-xr-x  9 root root  4096 Oct 31 12:29 .git/
drwxr-xr-x  3 root root  4096 Oct 31 12:29 .github/
-rw-r--r--  1 root root    67 Oct 31 12:29 .gitignore
-rw-r--r--  1 root root   225 Oct 31 12:29 .gitmodules
drwxr-xr-x  3 root root  4096 Oct 31 12:29 helpers/
drwxr-xr-x  3 root root  4096 Oct 31 12:29 include/
drwxr-xr-x  2 root root  4096 Oct 31 12:29 issues/
-rw-r--r--  1 root root  1484 Oct 31 12:29 LICENSE
-rw-r--r--  1 root root   509 Oct 31 12:29 NEWS
drwxr-xr-x  2 root root  4096 Oct 31 12:29 port/
-rw-r--r--  1 root root 10407 Oct 31 12:29 README.md
drwxr-xr-x  2 root root  4096 Oct 31 12:29 table/
drwxr-xr-x  4 root root  4096 Oct 31 12:35 third_party/
-rw-r--r--  1 root root   535 Oct 31 12:29 TODO
drwxr-xr-x  2 root root  4096 Oct 31 12:29 util/
root@cp01:~/leveldb# mkdir -p build && cd build
root@cp01:~/leveldb/build# cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build .
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for crc32c_value in crc32c
-- Looking for crc32c_value in crc32c - not found
-- Looking for snappy_compress in snappy
-- Looking for snappy_compress in snappy - found
-- Looking for malloc in tcmalloc
-- Looking for malloc in tcmalloc - found
-- Looking for fdatasync
-- Looking for fdatasync - found
-- Looking for F_FULLFSYNC
-- Looking for F_FULLFSYNC - not found
-- Looking for O_CLOEXEC
-- Looking for O_CLOEXEC - found
-- Performing Test HAVE_CLANG_THREAD_SAFETY
-- Performing Test HAVE_CLANG_THREAD_SAFETY - Failed
-- Performing Test LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS
-- Performing Test LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS - Success
-- Performing Test HAVE_CXX17_HAS_INCLUDE
-- Performing Test HAVE_CXX17_HAS_INCLUDE - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Python: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter 
-- Failed to find LLVM FileCheck
-- Found Git: /usr/bin/git (found version "2.25.1") 
-- git version: v1.7.0-25-g398a8ac2 normalized to 1.7.0.25
-- Version: 1.7.0.25
-- Looking for shm_open in rt
-- Looking for shm_open in rt - found
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success
-- Performing Test HAVE_CXX_FLAG_WERROR
-- Performing Test HAVE_CXX_FLAG_WERROR - Success
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS
-- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS - Success
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
-- Compiling and running to test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Compiling and running to test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Compiling and running to test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- success
-- Compiling and running to test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Looking for sqlite3_open in sqlite3
-- Looking for sqlite3_open in sqlite3 - found
-- Performing Test HAVE_KYOTOCABINET
-- Performing Test HAVE_KYOTOCABINET - Failed
-- Configuring done
-- Generating done
-- Build files have been written to: /root/leveldb/build
Scanning dependencies of target leveldb
[  1%] Building CXX object CMakeFiles/leveldb.dir/db/builder.o
[  2%] Building CXX object CMakeFiles/leveldb.dir/db/c.o
[  3%] Building CXX object CMakeFiles/leveldb.dir/db/db_impl.o
[  4%] Building CXX object CMakeFiles/leveldb.dir/db/db_iter.o
[  5%] Building CXX object CMakeFiles/leveldb.dir/db/dbformat.o
[  5%] Building CXX object CMakeFiles/leveldb.dir/db/dumpfile.o
[  6%] Building CXX object CMakeFiles/leveldb.dir/db/filename.o
[  7%] Building CXX object CMakeFiles/leveldb.dir/db/log_reader.o
[  8%] Building CXX object CMakeFiles/leveldb.dir/db/log_writer.o
[  9%] Building CXX object CMakeFiles/leveldb.dir/db/memtable.o
[ 10%] Building CXX object CMakeFiles/leveldb.dir/db/repair.o
[ 11%] Building CXX object CMakeFiles/leveldb.dir/db/table_cache.o
[ 12%] Building CXX object CMakeFiles/leveldb.dir/db/version_edit.o
[ 13%] Building CXX object CMakeFiles/leveldb.dir/db/version_set.o
[ 14%] Building CXX object CMakeFiles/leveldb.dir/db/write_batch.o
[ 14%] Building CXX object CMakeFiles/leveldb.dir/table/block_builder.o
[ 15%] Building CXX object CMakeFiles/leveldb.dir/table/block.o
[ 16%] Building CXX object CMakeFiles/leveldb.dir/table/filter_block.o
[ 17%] Building CXX object CMakeFiles/leveldb.dir/table/format.o
[ 18%] Building CXX object CMakeFiles/leveldb.dir/table/iterator.o
[ 19%] Building CXX object CMakeFiles/leveldb.dir/table/merger.o
[ 20%] Building CXX object CMakeFiles/leveldb.dir/table/table_builder.o
[ 21%] Building CXX object CMakeFiles/leveldb.dir/table/table.o
[ 22%] Building CXX object CMakeFiles/leveldb.dir/table/two_level_iterator.o
[ 23%] Building CXX object CMakeFiles/leveldb.dir/util/arena.o
[ 23%] Building CXX object CMakeFiles/leveldb.dir/util/bloom.o
[ 24%] Building CXX object CMakeFiles/leveldb.dir/util/cache.o
[ 25%] Building CXX object CMakeFiles/leveldb.dir/util/coding.o
[ 26%] Building CXX object CMakeFiles/leveldb.dir/util/comparator.o
[ 27%] Building CXX object CMakeFiles/leveldb.dir/util/crc32c.o
[ 28%] Building CXX object CMakeFiles/leveldb.dir/util/env.o
[ 29%] Building CXX object CMakeFiles/leveldb.dir/util/filter_policy.o
[ 30%] Building CXX object CMakeFiles/leveldb.dir/util/hash.o
[ 31%] Building CXX object CMakeFiles/leveldb.dir/util/logging.o
[ 32%] Building CXX object CMakeFiles/leveldb.dir/util/options.o
[ 32%] Building CXX object CMakeFiles/leveldb.dir/util/status.o
[ 33%] Building CXX object CMakeFiles/leveldb.dir/util/env_posix.o
[ 34%] Building CXX object CMakeFiles/leveldb.dir/helpers/memenv/memenv.o
[ 35%] Linking CXX static library libleveldb.a
[ 35%] Built target leveldb
Scanning dependencies of target gtest
[ 36%] Building CXX object third_party/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.o
[ 37%] Linking CXX static library ../../../lib/libgtest.a
[ 37%] Built target gtest
Scanning dependencies of target gmock
[ 38%] Building CXX object third_party/googletest/googlemock/CMakeFiles/gmock.dir/src/gmock-all.o
[ 39%] Linking CXX static library ../../../lib/libgmock.a
[ 39%] Built target gmock
Scanning dependencies of target c_test
[ 40%] Building CXX object CMakeFiles/c_test.dir/util/testutil.o
[ 41%] Building C object CMakeFiles/c_test.dir/db/c_test.c.o
[ 42%] Linking CXX executable c_test
[ 42%] Built target c_test
Scanning dependencies of target leveldbutil
[ 43%] Building CXX object CMakeFiles/leveldbutil.dir/db/leveldbutil.o
[ 44%] Linking CXX executable leveldbutil
[ 44%] Built target leveldbutil
Scanning dependencies of target gtest_main
[ 45%] Building CXX object third_party/googletest/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.o
[ 46%] Linking CXX static library ../../../lib/libgtest_main.a
[ 46%] Built target gtest_main
Scanning dependencies of target leveldb_tests
[ 47%] Building CXX object CMakeFiles/leveldb_tests.dir/util/status_test.o
[ 48%] Building CXX object CMakeFiles/leveldb_tests.dir/util/no_destructor_test.o
[ 49%] Building CXX object CMakeFiles/leveldb_tests.dir/util/testutil.o
[ 50%] Building CXX object CMakeFiles/leveldb_tests.dir/db/autocompact_test.o
[ 51%] Building CXX object CMakeFiles/leveldb_tests.dir/db/corruption_test.o
[ 52%] Building CXX object CMakeFiles/leveldb_tests.dir/db/db_test.o
[ 52%] Building CXX object CMakeFiles/leveldb_tests.dir/db/dbformat_test.o
[ 53%] Building CXX object CMakeFiles/leveldb_tests.dir/db/filename_test.o
[ 54%] Building CXX object CMakeFiles/leveldb_tests.dir/db/log_test.o
[ 55%] Building CXX object CMakeFiles/leveldb_tests.dir/db/recovery_test.o
[ 56%] Building CXX object CMakeFiles/leveldb_tests.dir/db/skiplist_test.o
[ 57%] Building CXX object CMakeFiles/leveldb_tests.dir/db/version_edit_test.o
[ 58%] Building CXX object CMakeFiles/leveldb_tests.dir/db/version_set_test.o
[ 59%] Building CXX object CMakeFiles/leveldb_tests.dir/db/write_batch_test.o
[ 60%] Building CXX object CMakeFiles/leveldb_tests.dir/helpers/memenv/memenv_test.o
[ 61%] Building CXX object CMakeFiles/leveldb_tests.dir/table/filter_block_test.o
[ 61%] Building CXX object CMakeFiles/leveldb_tests.dir/table/table_test.o
[ 62%] Building CXX object CMakeFiles/leveldb_tests.dir/util/arena_test.o
[ 63%] Building CXX object CMakeFiles/leveldb_tests.dir/util/bloom_test.o
[ 64%] Building CXX object CMakeFiles/leveldb_tests.dir/util/cache_test.o
[ 65%] Building CXX object CMakeFiles/leveldb_tests.dir/util/coding_test.o
[ 66%] Building CXX object CMakeFiles/leveldb_tests.dir/util/crc32c_test.o
[ 67%] Building CXX object CMakeFiles/leveldb_tests.dir/util/hash_test.o
[ 68%] Building CXX object CMakeFiles/leveldb_tests.dir/util/logging_test.o
[ 69%] Linking CXX executable leveldb_tests
[ 69%] Built target leveldb_tests
Scanning dependencies of target benchmark
[ 69%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark.o
[ 70%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_api_internal.o
[ 71%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_name.o
[ 72%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.o
[ 73%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_runner.o
[ 74%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/check.o
[ 75%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/colorprint.o
[ 76%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/commandlineflags.o
[ 77%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/complexity.o
[ 78%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/console_reporter.o
[ 78%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/counter.o
[ 79%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/csv_reporter.o
[ 80%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/json_reporter.o
[ 81%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/perf_counters.o
[ 82%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/reporter.o
[ 83%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/sleep.o
[ 84%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/statistics.o
[ 85%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/string_util.o
[ 86%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.o
[ 87%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/timers.o
[ 87%] Linking CXX static library libbenchmark.a
[ 87%] Built target benchmark
Scanning dependencies of target db_bench
[ 88%] Building CXX object CMakeFiles/db_bench.dir/util/histogram.o
[ 89%] Building CXX object CMakeFiles/db_bench.dir/util/testutil.o
[ 90%] Building CXX object CMakeFiles/db_bench.dir/benchmarks/db_bench.o
[ 91%] Linking CXX executable db_bench
[ 91%] Built target db_bench
Scanning dependencies of target env_posix_test
[ 92%] Building CXX object CMakeFiles/env_posix_test.dir/util/testutil.o
[ 93%] Building CXX object CMakeFiles/env_posix_test.dir/util/env_posix_test.o
[ 94%] Linking CXX executable env_posix_test
[ 94%] Built target env_posix_test
Scanning dependencies of target db_bench_sqlite3
[ 94%] Building CXX object CMakeFiles/db_bench_sqlite3.dir/util/histogram.o
[ 95%] Building CXX object CMakeFiles/db_bench_sqlite3.dir/util/testutil.o
[ 96%] Building CXX object CMakeFiles/db_bench_sqlite3.dir/benchmarks/db_bench_sqlite3.o
[ 97%] Linking CXX executable db_bench_sqlite3
[ 97%] Built target db_bench_sqlite3
Scanning dependencies of target gmock_main
[ 98%] Building CXX object third_party/googletest/googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.o
[ 98%] Linking CXX static library ../../../lib/libgmock_main.a
[ 98%] Built target gmock_main
Scanning dependencies of target benchmark_main
[ 99%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.o
[100%] Linking CXX static library libbenchmark_main.a
[100%] Built target benchmark_main
root@cp01:~/leveldb/build# ll
total 4700
drwxr-xr-x  8 root root    4096 Oct 31 12:39 ./
drwxr-xr-x 16 root root    4096 Oct 31 12:36 ../
drwxr-xr-x  2 root root    4096 Oct 31 12:36 bin/
drwxr-xr-x  2 root root    4096 Oct 31 12:36 cmake/
-rw-r--r--  1 root root   25382 Oct 31 12:36 CMakeCache.txt
drwxr-xr-x 12 root root    4096 Oct 31 12:39 CMakeFiles/
-rw-r--r--  1 root root    4406 Oct 31 12:36 cmake_install.cmake
-rwxr-xr-x  1 root root  371784 Oct 31 12:37 c_test*
-rw-r--r--  1 root root     995 Oct 31 12:36 CTestTestfile.cmake
-rwxr-xr-x  1 root root  369976 Oct 31 12:39 db_bench*
-rwxr-xr-x  1 root root  116808 Oct 31 12:39 db_bench_sqlite3*
-rwxr-xr-x  1 root root  714680 Oct 31 12:39 env_posix_test*
drwxr-xr-x  3 root root    4096 Oct 31 12:36 include/
-rwxr-xr-x  1 root root 2181728 Oct 31 12:38 leveldb_tests*
-rwxr-xr-x  1 root root  183168 Oct 31 12:37 leveldbutil*
drwxr-xr-x  2 root root    4096 Oct 31 12:39 lib/
-rw-r--r--  1 root root  713472 Oct 31 12:37 libleveldb.a
-rw-r--r--  1 root root   70801 Oct 31 12:36 Makefile
drwxr-xr-x  4 root root    4096 Oct 31 12:36 third_party/
root@cp01:~/leveldb/build# ls -lt
total 4692
drwxr-xr-x 12 root root    4096 Oct 31 12:39 CMakeFiles
drwxr-xr-x  2 root root    4096 Oct 31 12:39 lib
-rwxr-xr-x  1 root root  116808 Oct 31 12:39 db_bench_sqlite3
-rwxr-xr-x  1 root root  714680 Oct 31 12:39 env_posix_test
-rwxr-xr-x  1 root root  369976 Oct 31 12:39 db_bench
-rwxr-xr-x  1 root root 2181728 Oct 31 12:38 leveldb_tests
-rwxr-xr-x  1 root root  183168 Oct 31 12:37 leveldbutil
-rwxr-xr-x  1 root root  371784 Oct 31 12:37 c_test
-rw-r--r--  1 root root  713472 Oct 31 12:37 libleveldb.a
drwxr-xr-x  2 root root    4096 Oct 31 12:36 bin
-rw-r--r--  1 root root     995 Oct 31 12:36 CTestTestfile.cmake
-rw-r--r--  1 root root    4406 Oct 31 12:36 cmake_install.cmake
-rw-r--r--  1 root root   70801 Oct 31 12:36 Makefile
-rw-r--r--  1 root root   25382 Oct 31 12:36 CMakeCache.txt
drwxr-xr-x  2 root root    4096 Oct 31 12:36 cmake
drwxr-xr-x  4 root root    4096 Oct 31 12:36 third_party
drwxr-xr-x  3 root root    4096 Oct 31 12:36 include
root@cp01:~/leveldb/build# pwd
/root/leveldb/build
root@cp01:~/leveldb/build# cp libleveldb.a /usr/local/lib/
root@cp01:~/leveldb/build# cd ..
root@cp01:~/leveldb# cp -r include/leveldb/ /usr/local/include/
root@cp01:~/leveldb# 

https://github/google/leveldb/

更多推荐

git clone --recurse-submodules https://github.com/google/leveldb.git

本文发布于:2023-04-25 10:40:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/e8df49ce101119174da3edcc60f51cc1.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:recurse   submodules   git   clone   google

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 102912文章数
  • 26172阅读数
  • 0评论数