Hi, I’m a bit of a newbie here but I was trying to install the Sc plugin for Neovim (GitHub - davidgranstrom/scnvim: Neovim frontend for SuperCollider. ) and was denied permission to create the symlink when running these instructions on the command line:
mkdir -p ~/Library/Application\ Support/SuperCollider/Extensions/scide_scvim
ln -s <~/Library/Application\ Support/SuperCollider/Extensions/scide_scvim
usage: ln [-Ffhinsv] source_file [target_file]
ln [-Ffhinsv] source_file … target_dir
link source_file target_file
.>/sc ~/Library/Application\ Support/SuperCollider/Extensions/scide_scvim
-bash: /sc: Permission denied
Do you know how I can sort it out?
kflak
March 28, 2020, 12:37pm
2
Which OS are you running?
kflak
March 28, 2020, 12:39pm
3
In Linux you need to use absolute paths to make it work. Alternatively you can put the scnvim/sc directory into your compile path in your sclang config file. On my phone now, so can’t verify exactly.
Oh, I’m in macOS Mojave, running also the latest sc, thanks.
kflak
March 28, 2020, 12:51pm
5
What are the exact commands you have used?
kflak
March 28, 2020, 12:56pm
6
The syntax is ln -s <target> <link>
. Did you fill in the link bit?
I installed nvim, then I created the directory:
mkdir -p ~/Library/Application\ Support/SuperCollider/Extensions/scide_scvim
Then:
ln -s <~/Library/Application\ Support/SuperCollider/Extensions/scide_scvim>/sc ~/Library/Application\ Support/SuperCollider/Extensions/scide_scvim/scnvim
kflak
March 28, 2020, 12:59pm
8
Ah, the < and > are just there as place holders and shouldn’t be typed
1 Like
kflak
March 28, 2020, 1:06pm
9
And better use absolute paths (not ~/…)
1 Like
kflak
March 28, 2020, 1:07pm
10
On Linux this means /home/user/.config… instead of ~/.config… Not sure what the paths are on mac these days, but should start with /
1 Like
scztt
March 28, 2020, 1:20pm
11
It should work on mac if you do:
ln -s ~/Library/Application\ Support/SuperCollider/Extensions/scide_scvim/sc ~/Library/Application\ Support/SuperCollider/Extensions/scide_scvim/scnvim
… assuming those paths exist. On mac at least, the shell does the expansion of “~” before it sends the path to the command, so this is fine for ln. IIRC the thing that can get you in trouble is relative paths, e.g. ./scnvim
, which bakes the relative path into the link. Unless you want that, which you probably don’t.
1 Like
That’s great, it worked, many thanks!!