Giter VIP home page Giter VIP logo

Comments (6)

hakavlad avatar hakavlad commented on June 19, 2024
user@debian:~/22$ git clone --depth=1 --recursive https://github.com/xvitaly/zswap-cli.git zswap-cli
Cloning into 'zswap-cli'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 53 (delta 6), reused 35 (delta 0), pack-reused 0
Unpacking objects: 100% (53/53), done.
Submodule '3rdparty/cxxopts' (https://github.com/jarro2783/cxxopts.git) registered for path '3rdparty/cxxopts'
Submodule '3rdparty/fmt' (https://github.com/fmtlib/fmt.git) registered for path '3rdparty/fmt'
Cloning into '/home/user/22/zswap-cli/3rdparty/cxxopts'...
remote: Enumerating objects: 19, done.        
remote: Counting objects: 100% (19/19), done.        
remote: Compressing objects: 100% (15/15), done.        
remote: Total 1349 (delta 5), reused 10 (delta 2), pack-reused 1330        
Receiving objects: 100% (1349/1349), 396.43 KiB | 837.00 KiB/s, done.
Resolving deltas: 100% (801/801), done.
Cloning into '/home/user/22/zswap-cli/3rdparty/fmt'...
remote: Enumerating objects: 57, done.        
remote: Counting objects: 100% (57/57), done.        
remote: Compressing objects: 100% (32/32), done.        
remote: Total 20509 (delta 24), reused 40 (delta 17), pack-reused 20452        
Receiving objects: 100% (20509/20509), 10.05 MiB | 747.00 KiB/s, done.
Resolving deltas: 100% (13939/13939), done.
Submodule path '3rdparty/cxxopts': checked out 'e6858d3429e0ba5fe6f42ce2018069ce992f3d26'
Submodule path '3rdparty/fmt': checked out 'f94b7364b9409f05207c3af3fa4666730e11a854'
user@debian:~/22$ cd zswap-cli
user@debian:~/22/zswap-cli$ mkdir build
user@debian:~/22/zswap-cli$ cd build
user@debian:~/22/zswap-cli/build$ cmake ..
-- The CXX compiler identification is GNU 8.3.0
-- 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
Using bundled version of fmt library.
-- Version: 6.1.2
-- Build type: 
-- CXX_STANDARD: 17
-- Performing Test has_std_17_flag
-- Performing Test has_std_17_flag - Success
-- Performing Test has_std_1z_flag
-- Performing Test has_std_1z_flag - Success
-- Performing Test SUPPORTS_VARIADIC_TEMPLATES
-- Performing Test SUPPORTS_VARIADIC_TEMPLATES - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Performing Test FMT_HAS_VARIANT
-- Performing Test FMT_HAS_VARIANT - Success
-- Looking for strtod_l
-- Looking for strtod_l - found
Using bundled version of cxxopts library.
-- Could NOT find Pandoc (missing: Pandoc_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/22/zswap-cli/build
user@debian:~/22/zswap-cli/build$ cmake --build .
Scanning dependencies of target zswap-lib
[ 10%] Building CXX object src/lib/CMakeFiles/zswap-lib.dir/cwrappers/cwrappers.cpp.o
[ 20%] Building CXX object src/lib/CMakeFiles/zswap-lib.dir/zswapworker/zswapworker.cpp.o
[ 30%] Building CXX object src/lib/CMakeFiles/zswap-lib.dir/zswapobject/zswapobject.cpp.o
[ 40%] Linking CXX static library libzswap-lib.a
[ 40%] Built target zswap-lib
Scanning dependencies of target fmt
[ 50%] Building CXX object 3rdparty/fmt/CMakeFiles/fmt.dir/src/format.cc.o
[ 60%] Building CXX object 3rdparty/fmt/CMakeFiles/fmt.dir/src/posix.cc.o
[ 70%] Linking CXX static library libfmt.a
[ 70%] Built target fmt
Scanning dependencies of target zswap-cli
[ 80%] Building CXX object src/app/CMakeFiles/zswap-cli.dir/application/application.cpp.o
[ 90%] Building CXX object src/app/CMakeFiles/zswap-cli.dir/main.cpp.o
[100%] Linking CXX executable zswap-cli
[100%] Built target zswap-cli
user@debian:~/22/zswap-cli/build$ sudo make install
[sudo] password for user: 
[ 40%] Built target zswap-lib
[ 70%] Built target fmt
[100%] Built target zswap-cli
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/sbin/zswap-cli
-- Installing: /usr/local/lib/systemd/system/zswap-cli.service
-- Installing: /usr/local/etc/default/zswap-cli
user@debian:~/22/zswap-cli/build$ 
user@debian:~/22/zswap-cli/build$ 
user@debian:~/22/zswap-cli/build$ 
user@debian:~/22/zswap-cli/build$ 
user@debian:~/22/zswap-cli/build$ zswap-cli
bash: zswap-cli: command not found
user@debian:~/22/zswap-cli/build$ sudo -i
root@debian:~# zswap-cli
Command-line tool to control ZSwap Linux kernel module.
Usage:
  zswap-cli [OPTION...]

      --env                     Get options from environment variables
                                instead of cmdline.
  -e, --enabled arg             Enable or disable ZSwap kernel module.
  -s, --same_filled_pages_enabled arg
                                Enable or disable memory pages deduplication.
  -p, --max_pool_percent arg    The maximum percentage of memory that the
                                compressed pool can occupy.
  -c, --compressor arg          The default comression algorithm.
  -z, --zpool arg               The kernel's zpool type.
  -a, --accept_threhsold_percent arg
                                The threshold at which ZSwap would start
                                accepting pages again after it became full.
  -h, --help                    Print this help message and exit.

root@debian:~# 
root@debian:~# 
root@debian:~# 
root@debian:~# man zswap-cli
No manual entry for zswap-cli
See 'man 7 undocumented' for help when manual pages are not available.
root@debian:~# 

from zswap-cli.

hakavlad avatar hakavlad commented on June 19, 2024
root@debian:~# systemctl status zswap-cli
Unit zswap-cli.service could not be found.

from zswap-cli.

hakavlad avatar hakavlad commented on June 19, 2024

Unit zswap-cli.service could not be found.

daemon-reload fixes it. Please add daemon-reload in installation.

from zswap-cli.

hakavlad avatar hakavlad commented on June 19, 2024

Man page not found.

from zswap-cli.

xvitaly avatar xvitaly commented on June 19, 2024

Man page not found.

You must install pandoc. It will be used to build manpage.

from zswap-cli.

hakavlad avatar hakavlad commented on June 19, 2024

ok, thanks

from zswap-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.