Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add man page #9

Closed
xvitaly opened this issue Apr 8, 2020 · 6 comments
Closed

Add man page #9

xvitaly opened this issue Apr 8, 2020 · 6 comments
Milestone

Comments

@xvitaly
Copy link
Owner

xvitaly commented Apr 8, 2020

No description provided.

@xvitaly xvitaly added this to the 0.2-release milestone Apr 13, 2020
@hakavlad
Copy link
Contributor

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:~# 

@hakavlad
Copy link
Contributor

root@debian:~# systemctl status zswap-cli
Unit zswap-cli.service could not be found.

@hakavlad
Copy link
Contributor

Unit zswap-cli.service could not be found.

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

@hakavlad
Copy link
Contributor

Man page not found.

@xvitaly
Copy link
Owner Author

xvitaly commented Apr 14, 2020

Man page not found.

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

@hakavlad
Copy link
Contributor

ok, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants