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

linkapps is not supported any more; Error: Unknown command: linkapps #10578

Closed
siwka opened this issue Apr 11, 2018 · 30 comments
Closed

linkapps is not supported any more; Error: Unknown command: linkapps #10578

siwka opened this issue Apr 11, 2018 · 30 comments

Comments

@siwka
Copy link

siwka commented Apr 11, 2018

Cloned, installed but linked. Any advice?

➜  Spacemacs git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
Cloning into '/Users/kasia/.emacs.d'...
remote: Counting objects: 64434, done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 64434 (delta 24), reused 41 (delta 23), pack-reused 64364
Receiving objects: 100% (64434/64434), 37.94 MiB | 3.16 MiB/s, done.
Resolving deltas: 100% (41407/41407), done.
➜  Spacemacs brew tap d12frosted/emacs-plus
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (heroku/brew, homebrew/core, caskroom/cask).
==> Updated Formulae
heroku/brew/heroku ✔      futhark                   libspectre                pqiv                      sox                       vault
apache-geode              gdcm                      openimageio               pycodestyle               spigot                    watch
azure-cli                 ghostscript               percona-server-mongodb    saltstack                 teleport

==> Tapping d12frosted/emacs-plus
Cloning into '/usr/local/Homebrew/Library/Taps/d12frosted/homebrew-emacs-plus'...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 7 (delta 0), reused 2 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
Tapped 1 formula (33 files, 38.9KB)
➜  Spacemacs brew install emacs-plus
==> Installing emacs-plus from d12frosted/emacs-plus
==> Installing dependencies for d12frosted/emacs-plus/emacs-plus: pkg-config, libtasn1, gmp, nettle, libunistring, p11-kit, gnutls, pixman, gettext, pcre, glib, cairo, gdk-pixbuf, libcroco, fribidi, graphite2, icu4c, harfbuzz, pango, librsvg, imagemagick@6
==> Installing d12frosted/emacs-plus/emacs-plus dependency: pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.29.2.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.2: 11 files, 627.2KB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: libtasn1
==> Downloading https://homebrew.bintray.com/bottles/libtasn1-4.13.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtasn1-4.13.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libtasn1/4.13: 59 files, 435KB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: gmp
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.1.2_2.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gmp-6.1.2_2.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gmp/6.1.2_2: 18 files, 3.1MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: nettle
==> Downloading https://homebrew.bintray.com/bottles/nettle-3.4.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring nettle-3.4.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/nettle/3.4: 85 files, 2MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: libunistring
==> Downloading https://homebrew.bintray.com/bottles/libunistring-0.9.9.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libunistring-0.9.9.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libunistring/0.9.9: 54 files, 4.4MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: p11-kit
==> Downloading https://homebrew.bintray.com/bottles/p11-kit-0.23.10.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring p11-kit-0.23.10.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/p11-kit/0.23.10: 63 files, 2.5MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: gnutls
==> Downloading https://homebrew.bintray.com/bottles/gnutls-3.5.18.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gnutls-3.5.18.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gnutls/3.5.18: 1,105 files, 7.6MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: pixman
==> Downloading https://homebrew.bintray.com/bottles/pixman-0.34.0_1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pixman-0.34.0_1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pixman/0.34.0_1: 13 files, 1.3MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gettext-0.19.8.1.high_sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD gettext library & some software gets confused if both are in the library path.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/gettext/lib
    CPPFLAGS: -I/usr/local/opt/gettext/include

==> Summary
🍺  /usr/local/Cellar/gettext/0.19.8.1: 1,935 files, 16.9MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.42.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pcre-8.42.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pcre/8.42: 204 files, 5.3MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: glib
==> Downloading https://homebrew.bintray.com/bottles/glib-2.56.1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring glib-2.56.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/glib/2.56.1: 430 files, 23.7MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: cairo
==> Downloading https://homebrew.bintray.com/bottles/cairo-1.14.12.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cairo-1.14.12.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/cairo/1.14.12: 118 files, 5.8MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: gdk-pixbuf
==> Downloading https://homebrew.bintray.com/bottles/gdk-pixbuf-2.36.12.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gdk-pixbuf-2.36.12.high_sierra.bottle.tar.gz
==> /usr/local/Cellar/gdk-pixbuf/2.36.12/bin/gdk-pixbuf-query-loaders --update-cache
🍺  /usr/local/Cellar/gdk-pixbuf/2.36.12: 200 files, 4.4MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: libcroco
==> Downloading https://homebrew.bintray.com/bottles/libcroco-0.6.12.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libcroco-0.6.12.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libcroco/0.6.12: 80 files, 1.7MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: fribidi
==> Downloading https://homebrew.bintray.com/bottles/fribidi-1.0.2.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring fribidi-1.0.2.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/fribidi/1.0.2: 66 files, 574.9KB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: graphite2
==> Downloading https://homebrew.bintray.com/bottles/graphite2-1.3.10.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring graphite2-1.3.10.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/graphite2/1.3.10: 18 files, 259.1KB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: icu4c
==> Downloading https://homebrew.bintray.com/bottles/icu4c-61.1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring icu4c-61.1.high_sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/icu4c/lib
    CPPFLAGS: -I/usr/local/opt/icu4c/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/icu4c/lib/pkgconfig

==> Summary
🍺  /usr/local/Cellar/icu4c/61.1: 249 files, 67.2MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: harfbuzz
==> Downloading https://homebrew.bintray.com/bottles/harfbuzz-1.7.6_2.high_sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring harfbuzz-1.7.6_2.high_sierra.bottle.1.tar.gz
🍺  /usr/local/Cellar/harfbuzz/1.7.6_2: 150 files, 6.0MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: pango
==> Downloading https://homebrew.bintray.com/bottles/pango-1.42.1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pango-1.42.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pango/1.42.1: 105 files, 4.3MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: librsvg
==> Downloading https://homebrew.bintray.com/bottles/librsvg-2.42.2_2.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring librsvg-2.42.2_2.high_sierra.bottle.tar.gz
==> /usr/local/opt/gdk-pixbuf/bin/gdk-pixbuf-query-loaders --update-cache
🍺  /usr/local/Cellar/librsvg/2.42.2_2: 55 files, 5.4MB
==> Installing d12frosted/emacs-plus/emacs-plus dependency: imagemagick@6
==> Downloading https://homebrew.bintray.com/bottles/[email protected]_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring [email protected]_sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"' >> ~/.zshrc

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/imagemagick@6/lib
    CPPFLAGS: -I/usr/local/opt/imagemagick@6/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/imagemagick@6/lib/pkgconfig

==> Summary
🍺  /usr/local/Cellar/imagemagick@6/6.9.9-40: 1,471 files, 23.0MB
==> Installing d12frosted/emacs-plus/emacs-plus
==> Downloading https://ftp.gnu.org/gnu/emacs/emacs-25.3.tar.xz
######################################################################## 100.0%
==> Downloading https://gist.githubusercontent.com/aatxe/260261daf70865fbf1749095de9172c5/raw/214b50c62450be1cbee9f11cecba846dd66c7d06/patch-multicolor-font.
######################################################################## 100.0%
==> Downloading https://gist.githubusercontent.com/aaronjensen/f45894ddf431ecbff78b1bcf533d3e6b/raw/6a5cd7f57341aba673234348d8b0d2e776f86719/Emacs-25-OS-X-us
######################################################################## 100.0%
==> Patching
==> Applying patch-multicolor-font.diff
patching file src/macfont.m
==> Applying Emacs-25-OS-X-use-vfork.patch
patching file src/callproc.c
patching file src/conf_post.h
patching file src/process.c
==> ./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/25.3/share/info/emacs -
==> make
==> make install
######################################################################## 100.0%
==> Caveats
To have launchd start d12frosted/emacs-plus/emacs-plus now and restart at login:
  brew services start d12frosted/emacs-plus/emacs-plus
Or, if you don't want/need a background service you can just run:
  emacs
==> Summary
🍺  /usr/local/Cellar/emacs-plus/25.3: 4,051 files, 120.8MB, built in 2 minutes 6 seconds
➜  Spacemacs brew linkapps emacs-plus
Error: Unknown command: linkapps
@CeleritasCelery
Copy link
Contributor

Sounds like you should ask this up at d12frosted/emacs-plus

@kasiaul
Copy link

kasiaul commented Apr 12, 2018

I can do that as well but if using this command is recommended here, there should be some update or information how to fix it (work around) or it should be removed.

@CeleritasCelery
Copy link
Contributor

➜ Spacemacs brew linkapps emacs-plus
Error: Unknown command: linkapps

This is a Homebrew issue not a Spacemacs one. If Homebrew has removed the linapps keyword, then we need to update the documentation. But first we need to verify this is not a problem with your Homebrew such as old version or miss-configuration.

@xiang578
Copy link

xiang578 commented Apr 12, 2018

Yes,I also meet this problem

when i open emacs in iterm 2,i meet the problem
image
when i brew install emacs-plus,i meet the problem like @siwk

@siwka
Copy link
Author

siwka commented Apr 12, 2018

macvim-dev/macvim#450

(I am installing fresh, brand new, updated environment & updates are listed above)

@xiang578
Copy link

xiang578 commented Apr 12, 2018

@siwka
Do you mean brew cask emacs-plus?

@siwka
Copy link
Author

siwka commented Apr 12, 2018

@xiang578 Can you upgrade your emacs first?
Another option might be to uninstall an old emacs and install Spacemacs as suggested.

I was thinking about something like ln to link exe file of the application rather than installing it using cask. I opened the issue hoping for a solid solution :-)
If you decide to use cask let me know how it works.

My application works. It is just not accessible through Applications.

@xiang578
Copy link

Thanks you. I don't know how to update the emacs in mac . so,i install the gui version

@thatnerdjosh
Copy link
Contributor

I think, per this issue d12frosted/homebrew-emacs-plus#41, the cask install emacs-plus is not yet supported...

As a temporary workaround, I am doing this:

sudo ln -s /usr/local/Cellar/emacs-plus/25.3/Emacs.app/ /Applications/

@kasiaul
Copy link

kasiaul commented Apr 14, 2018

@NerdsvilleCEO I used ln -s ... without sudo.

Without searching for detailed explanation I keep rule, not to use sudo on Mac if not necessary.

Installing packages using sudo is taking them out of the radar of Homebrew. So it is an operation against purpose of having Homebrew from a first place.

I think using sudo in linking files should not have any impact, however I did not check code. It is anticipation.

This linking is general:

ln -s /usr/local/Cellar/emacs-plus/*/Emacs.app/ /Applications/

@thatnerdjosh
Copy link
Contributor

Alright good to know :) I was just doing a quick hack to get it to work and thought /applications was owned by root, but didn't check, you learn something new every day :D

@siwka
Copy link
Author

siwka commented Apr 14, 2018

rm /Applications/Emacs.app
ln -s /usr/local/Cellar/emacs-plus/*/Emacs.app/ /Applications/

“Hacking through a project will get it done, but learning the why and how of a technology gives you information that will have an impact beyond the current situation.” ;-)
— Rachel Roumeliotis

@xiang578
Copy link

I use brew cask install emacs and then install the spacemacs. Maybe you can reference zilongshanren/spacemacs-private: My Spacemacs config

@siwka
Copy link
Author

siwka commented Apr 14, 2018

@xiang578 it is a private package adjusted to private needs. Do you know if they meet yours?
Good thing, the owner has being maintaining it. I see many commits, 2 contributors, 38 people watches it. If I do not know developer, this is something I base my decisions to use / not use software on.

@xiang578
Copy link

You are right!He gave a way to install emacs on mac, and he also make a vedio to learn spacemacs in 21 days(in chinese)
image

@siwka
Copy link
Author

siwka commented Apr 14, 2018

I just love your Chinese letters! :-)
Good luck with an exploration of Spacemacs

@squaresurf
Copy link

I also ran into this issue and had to spend time figuring out why the main install documentation wasn't working for me. I ended up using the following from siwka:

rm /Applications/Emacs.app

ln -s /usr/local/Cellar/emacs-plus/*/Emacs.app/ /Applications/

@MobileVet
Copy link

Brand new install as well... doesn't look like brew is supporting linkapps anymore.

Making a simulink manually does the trick, thanks to all the thave been down the road before

ln -s /usr/local/Cellar/emacs-plus/*/Emacs.app/ /Applications/

@curtisault
Copy link

Also here to confirm that linkapps command did not work for me. But, the following also worked for me: ln -s /usr/local/Cellar/emacs-plus/*/Emacs.app/ /Applications/

@nemessisc
Copy link

nemessisc commented Jul 11, 2018

This was still an issue for me in July 2018 hopefully the documentation will be cleaned up soon

got around by making a symbolic link between files using
ln -s /usr/local/Cellar/emacs-plus/*/Emacs.app/ /Applications/

@jaens
Copy link

jaens commented Jul 31, 2018

This was deprecated a long time ago in Homebrew/brew/pull/1808 and is obviously broken.

@dijonkitchen
Copy link
Contributor

Looks like this has been resolved in #10677, but hasn't been merged to master yet.

@goughjo02
Copy link

The documentation here is still directing people to use brew linkapps. Is this an error?

@dijonkitchen
Copy link
Contributor

@goughjo02 as noted before, that's the documentation on the master branch. In develop, which has the latest changes, it's updated: https://github.com/syl20bnr/spacemacs/tree/develop#macos

@fionaguoguolu
Copy link

I'm running into the same problem with a fresh install.
After using the workaround, which worked:
sudo ln -s /usr/local/Cellar/emacs-plus/25.3/Emacs.app/ /Applications/
I attempted to run the next command in the instruction:
brew install emacs-plus --HEAD --with-natural-title-bars
Gave me error:
Error: invalid option: --with-natural-title-bars

@MobileVet
Copy link

@fionaguoguolu and did you try it without the --with-natural-title-bars option?

@duianto
Copy link
Collaborator

duianto commented Jul 11, 2019

The homebrew-emacs-plus package seems to have removed the --natural-title-bar option:
https://github.com/d12frosted/homebrew-emacs-plus#upgrade-from-emacs-25x
But there are instructions on that page, how to get the same behavior.

As stated by dijonkitchen above #10578 (comment)
The Spacemacs develop branch has the updated installation instructions.
https://github.com/syl20bnr/spacemacs/tree/develop#macos

The master branch hasn't been updated yet, since the instructions were changed.

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Jul 27, 2020
@Grazfather
Copy link

Same issue, I was somehow reading old docs.

My instructions had me install a pinned version of emacs, and so the solution is slightly modified:

ln -s /usr/local/Cellar/emacs-plus\@*/*/Emacs.app/ /Applications/

@ukcw
Copy link

ukcw commented Sep 18, 2022

For those on the new ARM macs, homebrew uses a different installation path, this worked for me:

ln -s /opt/homebrew/Cellar/emacs-plus\@*/*/Emacs.app/ /Applications/

@lebensterben lebensterben removed the stale marked as a stale issue/pr (usually by a bot) label Sep 18, 2022
Repository owner deleted a comment from github-actions bot Sep 18, 2022
@lebensterben
Copy link
Collaborator

this is never a Spacesmacs issue.
closing.

Repository owner locked and limited conversation to collaborators Sep 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests