I have been struggling with this for a few hours. I am on a Mac using Yosemite. I had homebrew installed, and was using git just fine. I tried doing $git add -i
and I got this error:
Can’t locate Git.pm in @INC (@INC contains:
So I followed the instructions here:
Can’t locate Git.pm in @INC
$brew uninstall git
worked fine, but after I tried to $brew install git
I’ve been stuck in a terrible cycle.
% brew install git
Error: git-git already installed
To install this version, first `brew unlink git'
% brew unlink git
Error: No such keg: /usr/local/Cellar/git
% brew link git
Error: No such keg: /usr/local/Cellar/git
% git --version
git version 1.9.3 (Apple Git-50)
% brew upgrade git
==> Upgrading 1 outdated package, with result:
git 2.2.2
Error: /usr/local/Library/LinkedKegs/git is not a valid keg
% brew install git
Error: git-git already installed
To install this version, first `brew unlink git'
%
I just want to get homebrew & git back to normal and linked to the correct repo again. I’m really rough around the edges at this stuff, so any help would be greatly appreciated!
asked Jan 29, 2015 at 21:35
6
Give another go at force removing the brewed version of git
brew uninstall --force git
Then cleanup any older versions and clear the brew cache
brew cleanup -s git
Remove any dead symlinks
brew cleanup --prune-prefix
Then try reinstalling git
brew install git
If that doesn’t work, I’d remove that installation of Homebrew altogether and reinstall it. If you haven’t placed anything else in your brew --prefix
directory (/usr/local
by default), you can simply rm -rf $(brew --prefix)
. Otherwise the Homebrew wiki recommends using a script at https://gist.github.com/mxcl/1173223#file-uninstall_homebrew-sh
Marcos Serpa
2,7611 gold badge15 silver badges6 bronze badges
answered Jan 30, 2015 at 17:01
brownmikebrownmike
1,6641 gold badge11 silver badges11 bronze badges
6
Had a similar issue while installing «Lua» in OS X using homebrew. I guess it could be useful for other users facing similar issue in homebrew.
On running the command:
$ brew install lua
The command returned an error:
Error: /usr/local/opt/lua is not a valid keg
(in general the error can be of /usr/local/opt/ is not a valid keg
FIXED it by deleting the file/directory it is referring to, i.e., deleting the «/usr/local/opt/lua» file.
root-user # rm -rf /usr/local/opt/lua
And then running the brew install command returned success.
answered Sep 27, 2019 at 2:25
GiriGiri
2,6742 gold badges25 silver badges27 bronze badges
Os X Mojave 10.14 has:
Error: The Command Line Tools header package must be installed on
Mojave.
Solution. Go to
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
location and install the package manually. And brew will start working and we can run:
brew uninstall --force git
brew cleanup -s git
brew cleanup --prune-prefix
brew install git
answered Jul 20, 2018 at 7:11
J A S K I E RJ A S K I E R
1,8563 gold badges21 silver badges39 bronze badges
2
Содержание
- Error: No such keg: /usr/local/Cellar/node@14.15.0 #881
- Replies: 3 suggested answers · 9 replies
- ProgrammerAH
- Programmer Guide, Tips and Tutorial
- Error: No such keg: /usr/local/Cellar/node&install nvm&brew installation&Oh my zsh.git installation&git set alias&No bundle URL prese
- Как сменить php 7.3 на Mac OS?
- Error: No such keg: /usr/local/Cellar/node@14.15.0 #881
- Replies: 3 suggested answers · 9 replies
- Unlinked kegs (multiple) #21888
- Comments
- Footer
Error: No such keg: /usr/local/Cellar/node@14.15.0 #881
I have installed node using brew
When checking the versions
node -v I get v14.15.0
While checking brew update and then brew upgrade node shows
Warning: node 15.9.0 already installed
I tried brew switch node 15.9.0 which fails because brew no longer recognizes this command. Next I was hoping to try
brew unlink node@14.15.0 and then brew link —force node@15.9.0 but the unlink command shows
Error: No such keg: /usr/local/Cellar/node@14.15.0
My goal is to understand if I currently have two different versions installed and if so how to switch to the latest version
Beta Was this translation helpful? Give feedback.
3 You must be logged in to vote
What is the output of brew doctor , brew config , and brew info node ?
Beta Was this translation helpful? Give feedback.
3 You must be logged in to vote
brew config output:
HOMEBREW_VERSION: 3.0.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: b712bcc01e8fdaae25d6f232f51637bf00db307f
Last commit: 5 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 4de0318ff2a592edbaf9160f031f7df1d4163413
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit kabylake
Clang: 12.0 build 1200
Git: 2.24.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.1-x86_64
CLT: 12.4.0.0.1.1610135815
Xcode: N/A
and what which -a node shows is this /usr/local/bin/node
Beta Was this translation helpful? Give feedback.
Источник
ProgrammerAH
Programmer Guide, Tips and Tutorial
Error: No such keg: /usr/local/Cellar/node&install nvm&brew installation&Oh my zsh.git installation&git set alias&No bundle URL prese
Problems with new computer configuration environment:
I can’t find Node, but when I reinstall it, I’m reminded that Node: or Error: No such keg: /usr/local/Cellar/ Node
The brew the cleanup
brew link node
brew uninstall node
brew uninstall –force node
brew install node
Install the NVM command (Node version management tool)
The curl – o – https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
Press to restart Iterm
Install N (Node version management tool)
$sudo NPM install -g n
Brew installation command:
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Oh my Zsh. git plug-in installation command
sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”
Git Settings alias
All we need to do is type a command, tell Git, and then ST stands for status:
git config –global alias.s status
git config –global alias.c commit
git config –global alias.ck checkout
git config –global alias.a add
New computer simulator reports No Bundle URL Present
Appdelegate. M modifies the code
JsCodeLocation = [NSURL URLWithString: @ “http://127.0.0.1:8081/index.bundle?platform=ios&dev=false”);
Mock () is not allowed to reference any out-of-scope variables
Node release issues dropped to V8.12.0 or V6.11.3
If the Node version is not working, use:
NVM Alias Default V6.11.3 to modify the default Node version
Источник
Как сменить php 7.3 на Mac OS?
HP 7.1.23 (cli) (built: Nov 27 2018 16:59:25) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
Error: No such keg: /usr/local/Cellar/php@7.1
Текущее расположение /usr/bin/php
Что не так делаю? Пытался разные вещи. Я не помню как я до этого устанавливал php, что теперь не могу сменить. Может это вообще было не через brew. Помогите.
- Вопрос задан более трёх лет назад
- 1250 просмотров
Откройте терминал и выполните команду:
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3
Система безопасности macOS может потребовать ввод пароля для получения доступа к системным файлам — вводите его. Скрипты компании Liip для установки PHP не содержат в себе вредоносного кода.
В случае, если у вас уже установлена новая версия, то эта команда может вызвать вывод предупреждения об уже установленной свежей версии PHP.
В результате скрипта будет развёрнут архив с файлами PHP 7.3 в директории пользователя, в моём случае, это было здесь:
/usr/local/php5-7.3.8-20190811-205217/
Окончание установки выглядело таким образом (обратите внимание на путь к распаковываемым файлам):
Настройка работы PHP 7.3 из терминала
Чтобы проверить текущую версию, запускаемую в терминале, выполните команду
Для работы composer в терминал у меня была поставлена версия PHP 7.2.16. Чтобы настроить запуск из терминала новой версии PHP нужно в файле
/.bash_profile, если вы используете окружение терминала bash, добавить в конец файла следующие строки:
export PATH=»/usr/local/php5-7.3.8-20190811-205217/bin:$PATH»
export PATH=»/usr/local/php5-7.3.8-20190811-205217/sbin:$PATH»
Путь к установленной версии PHP может отличаться от указанного мною. Актуальный для вас путь содержится в терминале, где происходила установка новой версии и запуск команды curl. После сохранения изменений в файле .bash_profile, внутри новых сессий терминала будет использоваться указанная вами версия. Для обновления версии внутри текущей сессии терминала, следует прочесть файл заново с помощью вызова:
/.bash_profile
Теперь при вызове php -v в терминале вы должны увидеть последнюю версию PHP:
/.bash_profile
В случае, если файл
/.bash_profile не создан, то это можно сделать прямо из терминала с помощью команды:
/.bash_profile
А затем взять в редактирование с помощью выполнения вызова:
/.bash_profile
Если у вас не настроен запуск редактора sublime text из консоли, то это вы можете сделать с помощью этой статьи.
Настройка PHP 7.3 во встроенном в macOS сервере Apache
В операционную систему macOS изначально установлен веб сервер Apache, который позволяет разрабатывать сайты и полностью себя конфигурировать без установки LAMP, Apache через brew и т.п. Чтобы встроенный сервер Apache загружал нужную версию модуля PHP следует ему указать это в конфигурационном файле. Файл конфигурации находится по адресу:
/private/etc/apache2/httpd.conf
В этом файле следует найти строку, содержащую слово php. По умолчанию, она выглядит следующим образом:
#LoadModule php7_module libexec/apache2/libphp7.so
Следует убрать у неё в начале #, чтобы эта строка не была закомментирована, а также прописать вместо libexec/apache2/libphp7.so полный путь до файла libphp7.so в директории с новой версией PHP 7.3. В моём случае, строка выглядит следующим образом:
LoadModule php7_module /usr/local/php5-7.3.8-20190811-205217/libphp7.so
Сохраняем файл, вводим пароль, подтверждающий наши права на сохранение файла в системном месте. А затем нужно перезапустить сервер Apache c помощью команды:
Источник
Error: No such keg: /usr/local/Cellar/node@14.15.0 #881
I have installed node using brew
When checking the versions
node -v I get v14.15.0
While checking brew update and then brew upgrade node shows
Warning: node 15.9.0 already installed
I tried brew switch node 15.9.0 which fails because brew no longer recognizes this command. Next I was hoping to try
brew unlink node@14.15.0 and then brew link —force node@15.9.0 but the unlink command shows
Error: No such keg: /usr/local/Cellar/node@14.15.0
My goal is to understand if I currently have two different versions installed and if so how to switch to the latest version
Beta Was this translation helpful? Give feedback.
3 You must be logged in to vote
What is the output of brew doctor , brew config , and brew info node ?
Beta Was this translation helpful? Give feedback.
3 You must be logged in to vote
brew config output:
HOMEBREW_VERSION: 3.0.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: b712bcc01e8fdaae25d6f232f51637bf00db307f
Last commit: 5 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 4de0318ff2a592edbaf9160f031f7df1d4163413
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit kabylake
Clang: 12.0 build 1200
Git: 2.24.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.1-x86_64
CLT: 12.4.0.0.1.1610135815
Xcode: N/A
and what which -a node shows is this /usr/local/bin/node
Beta Was this translation helpful? Give feedback.
Источник
Unlinked kegs (multiple) #21888
$ brew link acorn
Error: No such keg: /usr/local/Cellar/acorn
The text was updated successfully, but these errors were encountered:
Can you brew rm acorn , brew rm adapter and brew rm airfoil etc.? These are not from Homebrew directly. If you need temp brew tap —repair and/or brew tap and try to install anew.
can you perhaps la $(brew —prefix)/Cellar/acorn/ ? Perhaps there is a hidden file?
$ brew rm acorn
Error: No such keg: /usr/local/Cellar/acorn
$ ls $(brew —prefix)/Cellar/acorn/
ls: /usr/local/Cellar/acorn/: No such file or directory
Ok. then there are no kegs. Some tab where acorn etc. are from is playing bad here. Try to brew tap —repair and if that is not okay list your taps by brew tap and perhaps brew untap .
$ brew tap —repair
$ brew tap
phinze/cask
$ brew untap phinze/cask
Untapped 1 formula
hmmm.
I’d say, you can also manually delete the offending kegs rm -r $(brew —prefix)/Cellar/ .
I see that the keg git is from homebrew-core. So can you brew link git ? Are there any other kegs left?
The errors about «cannot import
the «offending kegs» don’t exist in $(brew —prefix)/Cellar/
$ brew link —overwrite git
brew link —overwrite git is perfectly fine in this case (so just in case you worried).
Your system looks good now and the «failed to import» should be reported to https://github.com/phinze/homebrew-cask/issues. Thanks!
Hi I have a similar problem and followed the steps but still the issue remains. Please advise.
$ brew install git
==> Downloading http://git-core.googlecode.com/files/git-1.8.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/git-1.8.4.tar.gz
==> make prefix=/usr/local/Cellar/git/1.8.4 sysconfdir=/usr/local/etc CC=cc CFLAGS= L
==> make CC=cc CFLAGS= LDFLAGS=
==> make clean
==> make CC=cc CFLAGS= LDFLAGS=
==> Downloading http://git-core.googlecode.com/files/git-manpages-1.8.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/git-manpages-1.8.4.tar.gz
==> Downloading http://git-core.googlecode.com/files/git-htmldocs-1.8.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/git-htmldocs-1.8.4.tar.gz
==> Caveats
The OS X keychain credential helper has been installed to:
/usr/local/bin/git-credential-osxkeychain
The ‘contrib’ directory has been installed to:
/usr/local/share/git-core/contrib
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
Warning: Could not link git. Unlinking.
Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link git’
Possible conflicting files are:
Warning: Could not link git. Unlinking.
Error: File exists — /usr/local/etc
$ brew link —overwrite git
Warning: Could not link git. Unlinking.
Linking /usr/local/Cellar/git/1.8.4.
Error: File exists — /usr/local/etc
same here, what to do?
me$ brew link —overwrite git
Linking /usr/local/Cellar/git/2.1.2.
Error: Could not symlink share/git-core/contrib
/usr/local/share/git-core is not writable.
me-imac:
me$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don’t worry and just ignore them. Thanks!
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run brew link on these:
sudo chown -R $(whoami) /usr/local/share and then brew link git . Please open a new issue if you continue to have problems.
© 2023 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
Откройте терминал и выполните команду:
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3
Система безопасности macOS может потребовать ввод пароля для получения доступа к системным файлам — вводите его. Скрипты компании Liip для установки PHP не содержат в себе вредоносного кода.
В случае, если у вас уже установлена новая версия, то эта команда может вызвать вывод предупреждения об уже установленной свежей версии PHP.
В результате скрипта будет развёрнут архив с файлами PHP 7.3 в директории пользователя, в моём случае, это было здесь:
/usr/local/php5-7.3.8-20190811-205217/
Окончание установки выглядело таким образом (обратите внимание на путь к распаковываемым файлам):
Настройка работы PHP 7.3 из терминала
Чтобы проверить текущую версию, запускаемую в терминале, выполните команду
php -v
Для работы composer в терминал у меня была поставлена версия PHP 7.2.16. Чтобы настроить запуск из терминала новой версии PHP нужно в файле ~/.bash_profile, если вы используете окружение терминала bash, добавить в конец файла следующие строки:
export PATH=»/usr/local/php5-7.3.8-20190811-205217/bin:$PATH»
export PATH=»/usr/local/php5-7.3.8-20190811-205217/sbin:$PATH»
Путь к установленной версии PHP может отличаться от указанного мною. Актуальный для вас путь содержится в терминале, где происходила установка новой версии и запуск команды curl. После сохранения изменений в файле .bash_profile, внутри новых сессий терминала будет использоваться указанная вами версия. Для обновления версии внутри текущей сессии терминала, следует прочесть файл заново с помощью вызова:
source ~/.bash_profile
Теперь при вызове php -v в терминале вы должны увидеть последнюю версию PHP:
Если нет файла ~/.bash_profile
В случае, если файл ~/.bash_profile не создан, то это можно сделать прямо из терминала с помощью команды:
touch ~/.bash_profile
А затем взять в редактирование с помощью выполнения вызова:
sublime ~/.bash_profile
Если у вас не настроен запуск редактора sublime text из консоли, то это вы можете сделать с помощью этой статьи.
Настройка PHP 7.3 во встроенном в macOS сервере Apache
В операционную систему macOS изначально установлен веб сервер Apache, который позволяет разрабатывать сайты и полностью себя конфигурировать без установки LAMP, Apache через brew и т.п. Чтобы встроенный сервер Apache загружал нужную версию модуля PHP следует ему указать это в конфигурационном файле. Файл конфигурации находится по адресу:
/private/etc/apache2/httpd.conf
В этом файле следует найти строку, содержащую слово php. По умолчанию, она выглядит следующим образом:
#LoadModule php7_module libexec/apache2/libphp7.so
Следует убрать у неё в начале #, чтобы эта строка не была закомментирована, а также прописать вместо libexec/apache2/libphp7.so полный путь до файла libphp7.so в директории с новой версией PHP 7.3. В моём случае, строка выглядит следующим образом:
LoadModule php7_module /usr/local/php5-7.3.8-20190811-205217/libphp7.so
Сохраняем файл, вводим пароль, подтверждающий наши права на сохранение файла в системном месте. А затем нужно перезапустить сервер Apache c помощью команды:
sudo apachectl restart
I am trying to install MongoDB on Mac OSx El Capitan.
here is what the terminal gives me:
$ brew install mongodb --with-openssl
...
Warning: mongodb-3.2.9 already installed, it's just not linked
...
$brew link mongod
Error: No such keg: /usr/local/Cellar/mongod
$ ls -l /usr/local/bin/mongod
lrwxr-xr-x 1 fred admin 37 13 Sep 09:05 /usr/local/bin/mongod -> ../Cellar/mongodb30/3.0.12/bin/mongod
Here is what I got during the mongod installation:
$ brew install mongodb --with-openssl
...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/bsondump
Target /usr/local/bin/bsondump
is a symlink belonging to mongodb30. You can unlink it:
brew unlink mongodb30
To force the link and overwrite all conflicting files:
brew link --overwrite mongodb
To list all files that would be deleted:
brew link --overwrite --dry-run mongodb
Possible conflicting files are:
/usr/local/bin/bsondump -> /usr/local/Cellar/mongodb30/3.0.12/bin/bsondump
/usr/local/bin/mongo -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongo
/usr/local/bin/mongod -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongod
/usr/local/bin/mongodump -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongodump
/usr/local/bin/mongoexport -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongoexport
/usr/local/bin/mongofiles -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongofiles
/usr/local/bin/mongoimport -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongoimport
/usr/local/bin/mongooplog -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongooplog
/usr/local/bin/mongoperf -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongoperf
/usr/local/bin/mongorestore -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongorestore
/usr/local/bin/mongos -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongos
/usr/local/bin/mongosniff -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongosniff
/usr/local/bin/mongostat -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongostat
/usr/local/bin/mongotop -> /usr/local/Cellar/mongodb30/3.0.12/bin/mongotop
==> Caveats
To have launchd start mongodb now and restart at login:
brew services start mongodb
Or, if you don't want/need a background service you can just run:
mongod --config /usr/local/etc/mongod.conf
==> Summary
🍺 /usr/local/Cellar/mongodb/3.2.9: 17 files, 241.2M
How do I make the link? Thanks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
Posted By: Anonymous
I have been struggling with this for a few hours. I am on a Mac using Yosemite. I had homebrew installed, and was using git just fine. I tried doing $git add -i
and I got this error:
Can’t locate Git.pm in @INC (@INC contains:
So I followed the instructions here:
Can’t locate Git.pm in @INC
$brew uninstall git
worked fine, but after I tried to $brew install git
I’ve been stuck in a terrible cycle.
% brew install git
Error: git-git already installed
To install this version, first `brew unlink git'
% brew unlink git
Error: No such keg: /usr/local/Cellar/git
% brew link git
Error: No such keg: /usr/local/Cellar/git
% git --version
git version 1.9.3 (Apple Git-50)
% brew upgrade git
==> Upgrading 1 outdated package, with result:
git 2.2.2
Error: /usr/local/Library/LinkedKegs/git is not a valid keg
% brew install git
Error: git-git already installed
To install this version, first `brew unlink git'
%
I just want to get homebrew & git back to normal and linked to the correct repo again. I’m really rough around the edges at this stuff, so any help would be greatly appreciated!
Solution
Give another go at force removing the brewed version of git
brew uninstall --force git
Then cleanup any older versions and clear the brew cache
brew cleanup -s git
Remove any dead symlinks
brew cleanup --prune-prefix
Then try reinstalling git
brew install git
If that doesn’t work, I’d remove that installation of Homebrew altogether and reinstall it. If you haven’t placed anything else in your brew --prefix
directory (/usr/local
by default), you can simply rm -rf $(brew --prefix)
. Otherwise the Homebrew wiki recommends using a script at https://gist.github.com/mxcl/1173223#file-uninstall_homebrew-sh
Answered By: Anonymous
Related Articles
- Reference — What does this regex mean?
- When is assembly faster than C?
- Postgres could not connect to server
- Homebrew install specific version of formula?
- Mac OS X and multiple Java versions
- Homebrew: how to list the N last installed packages?
- How do I install Java on Mac OSX allowing version switching?
- coercing to Unicode: need string or buffer, NoneType found…
- How to use pipenv on mac?
- What is the worst programming language you ever worked with?
Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.