nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.22k stars 42 forks source link

docs(README): Add installation instructions for cmake #48

Closed klausi closed 7 years ago

klausi commented 7 years ago

In order to compile a dependency of cargo-update we need cmake:

error: failed to run custom build command for `libssh2-sys v0.2.6`
process didn't exit successfully: `/tmp/cargo-install.QZUj9lXILmye/release/build/libssh2-sys-bcb99ce633d30985/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/home/klausi/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.2.6/libssh2" "-DCRYPTO_BACKEND=OpenSSL" "-DBUILD_SHARED_LIBS=OFF" "-DENABLE_ZLIB_COMPRESSION=ON" "-DCMAKE_INSTALL_LIBDIR=lib" "-DBUILD_EXAMPLES=OFF" "-DBUILD_TESTING=OFF" "-DCMAKE_INSTALL_PREFIX=/tmp/cargo-install.QZUj9lXILmye/release/build/libssh2-sys-033b626b5406e513/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Release"

--- stderr
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
thread 'main' panicked at '
failed to execute command: No such file or directory (os error 2)
is `cmake` not installed?

Add that to the installation instructions.

nabijaczleweli commented 7 years ago

Thank you for your suggestion! I've added the notice myself, on the basis that (a) not all Linuxish systems are Debian-based, (b) lack of alternative for Windows or (c) link to CMake and (d) consistency with rest of README.