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

I can't install the new version: v2.20 #1290

Closed
1 task done
ameknite opened this issue Mar 18, 2024 · 2 comments
Closed
1 task done

I can't install the new version: v2.20 #1290

ameknite opened this issue Mar 18, 2024 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ameknite
Copy link

ameknite commented Mar 18, 2024

Duplicates

  • I have searched the existing issues

Current behavior 😯

failed to compile

Expected behavior 🤔

install the new version

Steps to reproduce 🕹

cargo install onefetch --force for MacOS M1 - aarch64-apple-darwin

Additional context/Screenshots 🔦

error: failed to run custom build command for `libz-ng-sys v1.1.15`

Caused by:
  process didn't exit successfully: `/var/folders/6y/kv78q9gd7653c41hc9p4c9wc0000gn/T/cargo-installBydGr3/release/build/libz-ng-sys-bdd9db1a4800be1e/build-script-build_zng` (exit status: 101)
  --- stdout
  CMAKE_TOOLCHAIN_FILE_aarch64-apple-darwin = None
  CMAKE_TOOLCHAIN_FILE_aarch64_apple_darwin = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_aarch64-apple-darwin = None
  CMAKE_GENERATOR_aarch64_apple_darwin = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_aarch64-apple-darwin = None
  CMAKE_PREFIX_PATH_aarch64_apple_darwin = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_aarch64-apple-darwin = None
  CMAKE_aarch64_apple_darwin = None
  HOST_CMAKE = None
  CMAKE = None
  running: cd "/var/folders/6y/kv78q9gd7653c41hc9p4c9wc0000gn/T/cargo-installBydGr3/release/build/libz-ng-sys-561e166215d7a091/out/build" && CMAKE_PREFIX_PATH="" "cmake" "/Users/ameknite/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libz-ng-sys-1.1.15/src/zlib-ng" "-DCMAKE_OSX_ARCHITECTURES=arm64" "-DBUILD_SHARED_LIBS=OFF" "-DZLIB_COMPAT=OFF" "-DZLIB_ENABLE_TESTS=OFF" "-DWITH_GZFILEOP=ON" "-DCMAKE_INSTALL_PREFIX=/var/folders/6y/kv78q9gd7653c41hc9p4c9wc0000gn/T/cargo-installBydGr3/release/build/libz-ng-sys-561e166215d7a091/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=14.4" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=14.4" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=14.4" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Release"

  --- stderr
  thread 'main' panicked at /Users/ameknite/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.50/src/lib.rs:1098:5:

  failed to execute command: No such file or directory (os error 2)
  is `cmake` not installed?

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `onefetch v2.20.0`, intermediate artifacts can be found at `/var/folders/6y/kv78q9gd7653c41hc9p4c9wc0000gn/T/cargo-installBydGr3`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Possible Solution 💡

How it said in the error is `cmake` not installed?
You need to install cmake
brew install cmake
Maybe this need to be documented.

@ameknite ameknite added the bug Something isn't working label Mar 18, 2024
@spenserblack
Copy link
Collaborator

Yeah, might be a good idea to document that. This would be useful for contributors, too, to know how to build from source. So either the installation doc or the contributing doc should list requirements to build from source, and then one would reference the other I think.

@spenserblack spenserblack added the good first issue Good for newcomers label Mar 19, 2024
@o2sh
Copy link
Owner

o2sh commented Mar 21, 2024

I added a note about it in the installation page https://github.com/o2sh/onefetch/wiki/Installation

Edit: I also added a "Getting Started" section in Contribution.md with a link to the "build from source" section of the installation page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants