Как переместить / установить Homebrew на мою учетную запись Mac? Другой пользователь настроил это

512
brianlmerritt

У меня Mac на Mavericks, который был создан другим пользователем.

Он настроил Homebrew под своей учетной записью, но когда я brewнабираю логин, я получаю

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- extend/module (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/local/Library/Homebrew/global.rb:1:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/local/Library/brew.rb:6:in `<main>' 

Чего бы я хотел достичь

  1. заваривать, работая на мой логин. (У меня есть права администратора, и я также могу войти как другой пользователь по мере необходимости)

  2. Перейдите на Yosemite со мной как основным пользователем, а не с ним, но переустановите homebrew с большинством, если не со всеми его бочками

  3. На этом Mac для разработки и конфигурациях много кода, поэтому я не хочу просто сносить все это.

brew list > casts.txt работает нормально, пока я вошел в систему как другой пользователь, так что, по крайней мере, я знаю, что установлено

0

2 ответа на вопрос

0
brianlmerritt

Brew is still not happy with my login, but the simple answer is to load El Capitan onto a separate boot disk and get brew working there, and then transfer the apps and files. I'll still have access to the old drive, and can even boot it up if needed.

0
BloodyEl

Q. How do I move / install Homebrew onto my Mac user account?

A. Looks like an issue with version incompatibilities or permissions.

First I would be sure the mac is as up to date as possible.

Looks alot like a ruby issue as described here:

https://stackoverflow.com/questions/24652996/homebrew-not-working-on-osx

If hombrew is properly working, you should be able to change the permissions as explained here:

Enable multiple users to install software using homebrew

Also check the homebrew troubleshooting guide:

https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Troubleshooting.md

If it is not working properly the simpler solution would probably be to re-install homebrew and install all the elements you know you need. Very often, if you have a dependency missing, homebrew will tell you. The added benefit is that you are in control of what is installed.

The FAQ has the uninstall info. https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/FAQ.md

Я на этом! Новый SSD не прибыл, поэтому постараюсь отсортировать его на текущей машине Mavericks brianlmerritt 7 лет назад 0