Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I have problems linking brew's vim version

I'm trying to install vim with brew in Mac OS mojave, I can use it by introducing the entire direction in the terminal but when I type vim it uses the default one, and when I built it it showed this error:

==> Pouring vim-8.2.0750.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/man/de/man1/ex.1
/usr/local/share/man/de/man1 is not writable.

You can try again using:
  brew link vim

I tried linking it and it showed this error:

$ brew link vim
Linking /usr/local/Cellar/vim/8.2.0750... 
Error: Could not symlink share/man/de/man1/ex.1
/usr/local/share/man/de/man1 is not writable.
MacBook-Air-de-Carlos:~ julian$ 
like image 927
Jeffee102 Avatar asked May 19 '20 21:05

Jeffee102


People also ask

Why can't I install Vim in Brew?

$ brew install vim Error: Cannot install vim because conflicting formulae are installed. ex-vi: because vim and ex-vi both install bin/ex and bin/view Please `brew unlink ex-vi` before continuing. Unlinking removes a formula's symlinks from /usr/local. You can link the formula again after the install finishes.

Does brew install Vim--with-python3 install for all Python versions?

I assumed brew install vim --with-python3 installs for both python 2.x and 3.x. But note when you first issue an :python command inside vim (and perhaps from the .vimrc ), vim will disable :python3 and vice versa. So The first command decides if you are running python 2.x or 3.x. At least that is what I got from testing.

How to install Vim after unlinking a formula?

Unlinking removes a formula's symlinks from /usr/local. You can link the formula again after the install finishes. You can --force this install, but the build may fail or cause obscure side effects in the resulting software. Now install vim by running brew install vim.

Can Vim load brewed Python dynamic library using absolute path?

Now vim can load brewed Python dynamic library using absolute path. Sorry, something went wrong. @mbcoguno cool ... I'll check your PR. That is good news! Sorry, something went wrong.


1 Answers

You have to set ownership on /usr/local/share with:

sudo chown -R $(whoami) /usr/local/share
like image 139
Ortomala Lokni Avatar answered Sep 30 '22 15:09

Ortomala Lokni