mvndaemon / homebrew-mvnd

This is a homebrew tap for mvnd, the Maven Daemon.
Apache License 2.0
7 stars 6 forks source link

install does not work on linux #2

Closed chirino closed 3 years ago

chirino commented 3 years ago

Yes, you can use homebrew on linux too.

chirino@hiram-awesome:~/sandbox/java-operator-sdk$ brew install mvndaemon/homebrew-mvnd/mvnd
==> Installing mvnd from mvndaemon/mvnd
==> Downloading https://github.com/mvndaemon/mvnd/releases/download/0.1.1/mvnd-0.1.1-darwin-amd64.zip
Already downloaded: /home/chirino/.cache/Homebrew/downloads/011e0aefe9d0e517f32eb61793f657a979e4e4444491c418d558d0468b2cdd9a--mvnd-0.1.1-darwin-amd64.zip
🍺  /home/linuxbrew/.linuxbrew/Cellar/mvnd/0.1.1: 96 files, 41.8MB, built in 1 second
chirino@hiram-awesome:~/sandbox/java-operator-sdk$ file /home/linuxbrew/.linuxbrew/Cellar/mvnd/0.1.1/libexec/bin/mvnd
/home/linuxbrew/.linuxbrew/Cellar/mvnd/0.1.1/libexec/bin/mvnd: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>
chirino@hiram-awesome:~/sandbox/java-operator-sdk$ /home/linuxbrew/.linuxbrew/Cellar/mvnd/0.1.1/libexec/bin/mvnd
bash: /home/linuxbrew/.linuxbrew/Cellar/mvnd/0.1.1/libexec/bin/mvnd: cannot execute binary file: Exec format error
chirino@hiram-awesome:~/sandbox/java-operator-sdk$ uname -a
Linux hiram-awesome 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
chirino commented 3 years ago

Here's an example of a Formula that does download different binaries depending on the platform:

https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/go.rb

chirino commented 3 years ago

thanks! it's working great!