rabite0 / hunter

The fastest file manager in the galaxy!
Do What The F*ck You Want To Public License
1.31k stars 64 forks source link

MacOS build fail #125

Open sbzi1020 opened 3 years ago

sbzi1020 commented 3 years ago

Hi there, I love this thing but I can't install it, plz have a look and give me help on this, many thanks:)

I've already gone through the steps in #90`, but no luck:

# Install the libs
brew install gst-editing-services gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly gstreamer gst-rtsp-server libsixel

# Install as #90 says
PKG_CONFIG_PATH='/Library/Frameworks/GStreamer.framework/Versions/Current/lib/pkgconfig' cargo +nightly install hunter

# Install in the normal way
cargo +nightly install hunter

# Install only enable the `img` feature
cargo install --no-default-features --features=img hunter

All point to the same error below:

Screen Shot 2021-07-04 at 11 41 06 AM
ilyakmet commented 3 years ago

Same

afd-bai commented 3 years ago

The problem you're running into stems from the fact that NoneError has been removed from Rust. If you want a quick fix, you should try installing the program by cloning this repository and using an older nightly version, like nightly-2020-06-04.

git clone https://github.com/rabite0/hunter.git
rustup install nightly-2020-06-04 
rustup override set nightly-2020-06-04
cargo build --release

The resulting binary will be in target/release/hunter. You can copy it to a directory in the PATH variable if you want to run it with the command hunter in your terminal.

d3-X-t3r commented 3 years ago

Unfortunately the solution provided by @afd-bai doesn't work on Apple Silicon machines.

rustup install nightly-2020-06-04 
info: syncing channel updates for 'nightly-2020-06-04-aarch64-apple-darwin'
info: latest update on 2020-06-04, rust version 1.45.0-nightly (56daaf669 2020-06-03)
error: target 'aarch64-apple-darwin' not found in channel.  Perhaps check https://doc.rust-lang.org/nightly/rustc/platform-support.html for available targets