skhd
skhd copied to clipboard
Unable to install via homebrew
Same issue as seen here: https://github.com/koekeishiya/homebrew-formulae/issues/21
Attempting to install via homebrew. Any help would be awesome. Here is the verbose error message.
==> Downloading https://github.com/koekeishiya/skhd/archive/v0.3.5.zip
Already downloaded: /Users/jwiederkehr/Library/Caches/Homebrew/downloads/24a17a4e7a0e673a71aca0bae86c282978e35fcde5a4e0797de49290974c9d28--skhd-0.3.5.zip
==> Installing skhd from koekeishiya/formulae
==> make install
Last 15 lines from /Users/jwiederkehr/Library/Logs/Homebrew/skhd/01.make:
2022-06-07 01:35:18 +0000
make
install
rm -rf ./bin
mkdir -p ./bin
clang src/skhd.c -std=c99 -O3 -framework Carbon -framework CoreServices -o bin/skhd
ld: can't open output file for writing: bin/skhd, errno=2 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/skhd] Error 1
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/koekeishiya/homebrew-formulae/issues
These open issues may also help:
Can't open output file for writing: bin/skhd https://github.com/koekeishiya/homebrew-formulae/issues/21
➜ ~ brew remove rectangle
==> Uninstalling Cask rectangle
==> Backing App 'Rectangle.app' up to '/usr/local/Caskroom/rectangle/0.56,62/Rectangle.app'
==> Removing App '/Applications/Rectangle.app'
==> Purging files for version 0.56,62 of Cask rectangle
➜ ~ brew remove amethyst
==> Uninstalling Cask amethyst
==> Backing App 'Amethyst.app' up to '/usr/local/Caskroom/amethyst/0.15.6/Amethyst.app'
==> Removing App '/Applications/Amethyst.app'
==> Purging files for version 0.15.6 of Cask amethyst
➜ ~ brew install --HEAD koekeishiya/formulae/skhd
==> Cloning https://github.com/koekeishiya/skhd.git
Updating /Users/jwiederkehr/Library/Caches/Homebrew/skhd--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at b659b90 #154 fix build on Apple Silicon
==> Installing skhd from koekeishiya/formulae
==> make install
Last 15 lines from /Users/jwiederkehr/Library/Logs/Homebrew/skhd/01.make:
2022-06-07 01:36:42 +0000
make
install
rm -rf ./bin
mkdir -p ./bin
clang src/skhd.c -std=c99 -Wall -O2 -framework Cocoa -framework Carbon -framework CoreServices -o bin/skhd
ld: can't open output file for writing: bin/skhd, errno=2 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/skhd] Error 1
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/koekeishiya/homebrew-formulae/issues
These open issues may also help:
Can't open output file for writing: bin/skhd https://github.com/koekeishiya/homebrew-formulae/issues/21
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channel
Same error.
I'm seeing this error as well
same error on a Macbook Air M1
❯ brew install koekeishiya/formulae/skhd
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and homebrew/services).
==> New Formulae
libnl
==> New Casks
captain rockboxutility
You have 9 outdated formulae and 3 outdated casks installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
==> Tapping koekeishiya/formulae
Cloning into '/opt/homebrew/Library/Taps/koekeishiya/homebrew-formulae'...
remote: Enumerating objects: 319, done.
remote: Counting objects: 100% (56/56), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 319 (delta 32), reused 38 (delta 17), pack-reused 263
Receiving objects: 100% (319/319), 45.74 KiB | 5.72 MiB/s, done.
Resolving deltas: 100% (181/181), done.
Tapped 3 formulae (14 files, 64.1KB).
==> Downloading https://github.com/koekeishiya/skhd/archive/v0.3.5.zip
==> Downloading from https://codeload.github.com/koekeishiya/skhd/zip/refs/tags/v0.3.5
#=#=#
==> Installing skhd from koekeishiya/formulae
==> make install
Last 15 lines from /Users/gkrebs/Library/Logs/Homebrew/skhd/01.make:
2022-06-30 07:48:16 +0000
make
install
rm -rf ./bin
mkdir -p ./bin
clang src/skhd.c -std=c99 -O3 -framework Carbon -framework CoreServices -o bin/skhd
ld: can't open output file for writing: bin/skhd, errno=2 for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/skhd] Error 1
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
Can't open output file for writing: bin/skhd https://github.com/koekeishiya/homebrew-formulae/issues/21
Same as above, also on an M1
Weird part is I don't get this on my M1, but DO on my intell mac. make install works, but now I can't start this as a brew service :(
try installing with brew install --HEAD koekeishiya/formulae/skhd
instead
I tried head in the start and the end, no dice /shurg
Head works for me on Macbook Air with M1
same error on a Macbook Air M2
2022-10-10 15:27:47 +0000
make
install
rm -rf ./bin
mkdir -p ./bin
clang src/skhd.c -std=c99 -Wall -O2 -framework Cocoa -framework Carbon -framework CoreServices -o bin/skhd
ld: can't open output file for writing: bin/skhd, errno=2 for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/skhd] Error 1
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
Don't run skhd clean and build step in parallel. https://github.com/koekeishiya/homebrew-formulae/pull/23
Can't open output file for writing: bin/skhd https://github.com/koekeishiya/homebrew-formulae/issues/21
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.
any update on this?
Resolved:
-
use updated brew-formulae
wget https://github.com/koekeishiya/homebrew-formulae/blob/86ca926b74f9c4c475d366c7abb402bae4c42539/skhd.rb
-
brew install from local file
brew install --build-from-source ./skhd.rb
Resolved:
* use updated brew-formulae `wget https://github.com/koekeishiya/homebrew-formulae/blob/86ca926b74f9c4c475d366c7abb402bae4c42539/skhd.rb` * brew install from local file `brew install --build-from-source ./skhd.rb`
This worked for me, though the wget command didn't yield a ruby file with the patch applied, for some reason! For those who read too fast or don't go to the source link to see the patch, just add ENV.deparallelize
at the beginning of the install
method in the skhd.rb
you downloaded, i.e.
def install
ENV.deparallelize
then build from source as suggested above, i.e.
brew install --build-from-source ./skhd.rb
Resolved:
* use updated brew-formulae `wget https://github.com/koekeishiya/homebrew-formulae/blob/86ca926b74f9c4c475d366c7abb402bae4c42539/skhd.rb` * brew install from local file `brew install --build-from-source ./skhd.rb`
Needs to be the raw URL instead of the github page:
wget https://raw.githubusercontent.com/koekeishiya/homebrew-formulae/86ca926b74f9c4c475d366c7abb402bae4c42539/skhd.rb