Questions tagged «homebrew»

Homebrew是适用于macOS和Linux的软件包管理器,它提供了一个轻松的界面来安装许多软件包。它被构建为可以与您现有的系统很好地兼容,并且不会对其造成干扰。它完全基于Git和Ruby构建,并且可以轻松定制以满足您的需求。关于Homebrew的调试帮助至少应包括“ brew doctor”输出的详细信息。

6
如何在Mac OS 10.10+上使用GNU sed,不再支持'brew install --default-names'
在Mac OS 10.10.3下,我通过键入以下命令安装了gnu-sed: brew install gnu-sed --default-names 再次键入时,收到消息: 已安装gnu-sed-4.2.2 但是,即使在重新启动系统并重新启动终端之后,我仍然无法使用GNU版本的sed。例如: echo a | sed ’s_A_X_i’ 返回:替换命令'i'中的错误标志 我应该怎么做才能使GNU版本正常工作?这是$ PATH变量中的路径。 /Users/WN/-myUnix /opt/local/bin /opt/local/sbin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /Applications/calibre.app/Contents/MacOS /opt/ImageMagick/bin /usr/texbin 很抱歉,我的问题似乎很明显,但是我自己学习shell脚本,还不太了解如何安装UNIX程序。在Mac上使用GNU兼容命令(在这种情况下是sed,但不久以后我还将需要其他命令)的任何帮助而不会造成损坏或不必要的混乱的任何帮助将不胜感激。
95 macos  bash  sed  homebrew  gnu 

9
自制软件安装了nvm,但之后找不到nvm?
我正在使用OSX 10.10.1 homebrew并oh-my-zsh重新安装。我nvm通过homebrew,然后尝试运行它,但是说-zsh:找不到命令:nvm 知道是什么问题吗?我能够安装和使用git很好... 更新9/20/2019 如DarkPurple141和Elise van Looij的最新回答所述。nvm与似乎不兼容homebrew。这也位于此处的官方nvm-sh存储库中。 不支持自制软件安装。如果您对自制安装的nvm遇到问题,请在将其提交之前,将其冲煮卸载,并按照以下说明进行安装。 注意:如果您使用的是zsh,则可以轻松地将nvm安装为zsh插件。安装zsh-nvm并运行nvm upgrade进行升级。 以下步骤应有所帮助: $ brew uninstall nvm $ brew cleanup(仅作为衡量标准) $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash 通过运行$检查nvm是否正确安装command -v nvm。 4.a如果响应不是$ nvm,则在〜/ .bash-profile文件中添加以下两行: export NVM_DIR=~/.nvm source ~/.nvm/nvm.sh 4.b重新启动计算机(您可以尝试关闭Terminal并先重新启动它)4.c $ command -v nvm should now returnnvm` 现在用$更新Node.js nvm install --lts 更新npm:$ nvm install-latest-npm …

4
如何在OS X上查看$ PATH变量的当前值?
$ $ PATH 返回: -bash:/usr/local/share/npm/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/local/sbin:~/bin:/Library/框架/Python.framework/版本/当前/ bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin:/ usr / local / bin:/ opt / X11 / bin:/ usr / local / git / bin : 无此文件或目录 这看起来很丑陋,并且可能给我带来了启动和运行Homebrew的问题。


1
列出自制程序包中的所有文件
如何获得homebrew列出为软件包安装的所有文件?例如,当我运行brew listexim程序包时,将获得以下文件: $ brew list exim /usr/local/Cellar/exim/4.80.1/bin/exiwhat /usr/local/Cellar/exim/4.80.1/bin/exiqsumm /usr/local/Cellar/exim/4.80.1/bin/exiqgrep /usr/local/Cellar/exim/4.80.1/bin/exipick /usr/local/Cellar/exim/4.80.1/bin/exinext /usr/local/Cellar/exim/4.80.1/bin/eximstats /usr/local/Cellar/exim/4.80.1/bin/exim_tidydb /usr/local/Cellar/exim/4.80.1/bin/exim_lock /usr/local/Cellar/exim/4.80.1/bin/exim_fixdb /usr/local/Cellar/exim/4.80.1/bin/exim_dumpdb /usr/local/Cellar/exim/4.80.1/bin/exim_dbmbuild /usr/local/Cellar/exim/4.80.1/bin/exim_ctl /usr/local/Cellar/exim/4.80.1/bin/exim_checkaccess /usr/local/Cellar/exim/4.80.1/bin/exim-4.80.1-3 /usr/local/Cellar/exim/4.80.1/bin/exim /usr/local/Cellar/exim/4.80.1/bin/exigrep /usr/local/Cellar/exim/4.80.1/bin/exicyclog /usr/local/Cellar/exim/4.80.1/share/man/man8/exim.8 但是有一些文件添加到系统中,但不在上面的列表中。例如: $ ls -ld /usr/local/etc/exim.conf -rw-r--r-- 1 hanxue admin 35904 Sep 25 21:11 /usr/local/etc/exim.conf

13
无法连接到mongodb errno:61连接被拒绝
我最近在Homebrew上安装了mongodb-2.6.0 。成功安装后,我尝试使用mongo命令进行连接。我收到以下不允许我连接的错误: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146 exception: connect failed

4
通过brew在MacOS X上安装Wireshark
我使用以下命令在Mac上安装了Wireshark brew install wireshark 但是之后,有一条消息告诉我,我必须卷曲并安装ChmodBPF,所以我也这样做了。 但是终端上没有名为Wireshark的命令。怎么了

21
在Mac OS Sierra上使用brew安装节点失败
我正在尝试在macOS Sierra上使用自制软件安装节点。我跑 brew install node 在看似成功的安装之后,尝试运行时得到以下信息node: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib Referenced from: /usr/local/bin/node Reason: image not found Abort trap: 6
91 node.js  homebrew 

3
Ruby无法加载此类文件-active_support / core_ext / object / blank
我正在尝试运行,brew doctor但系统弹出错误消息 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:在`require'中:无法加载此类文件-active_support / core_ext /对象/空白(LoadError) 在线搜索,另一篇文章建议只是“ gem install activesupport”,但随后我遇到了以下错误: ERROR: Error installing activesupport: i18n requires Ruby version >= 2.3.0. 我也尝试过rvm安装ruby-2.3.0,但再次弹出相同的错误 [2019-02-26 10:07:41] requirements_osx_brew_libs_install requirements_osx_brew_libs_install () { brew install "$@" --force || { \typeset ret=$?; requirements_osx_brew_libs_error "installation"; return $ret } } current path: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib PATH=/Users/{user_name}/.aw/pex_resources/scripts/binaries:/usr/local/sbin:/Users/fengjiao/.rbenv/shims:/Users/{user_name}/.nvm/v0.10.32/bin:/Users/fengjiao/bin:/usr/local/sbin:/usr/local/bin:/Users/{user_name}/.rbenv/shims:/Users/{user_name}/.nvm/v0.10.32/bin:/Users/{user_name}/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/opt/X11/bin:/Users/fengjiao/gocode/bin:/Users/{user_name}/.rvm/bin command(10): requirements_osx_brew_libs_install autoconf automake libtool …

2
如何更新自制软件?
当我跑步时: brew update 我收到一条消息,说它在中初始化了一个空存储库/usr/local/.git/,然后出现此错误:
89 git  homebrew 

8
由于readline错误导致无法执行“ rails console”
rails console由于此错误,我无法执行: localhost:TwitterForZombies wiz$ rails c /Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/irb/completion.rb:9:in `require': dlopen(/Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.2.1/readline.bundle, 9): Library not loaded: /usr/local/opt/readline/lib/libreadline.6.2.dylib (LoadError) Referenced from: /Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.2.1/readline.bundle Reason: image not found - /Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.2.1/readline.bundle from /Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (required)>' from /Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands/console.rb:3:in `require' from /Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands/console.rb:3:in `<top (required)>' from /Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:38:in `require' from /Users/wiz/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:38:in `<top (required)>' from script/rails:6:in `require' from script/rails:6:in `<main>' 我已经通过自制软件安装了readline。我想继续使用rbenv而不是rvm。 感谢您阅读我的问题。

30
通过Brew安装MySQL之后,出现错误-服务器退出而不更新PID文件
好的,我进行了全面搜索,并花了很多时间安装,卸载,尝试各种选项,但没有成功。 我在Mac OS X Lion(10.7.3)上,尝试设置Python,MySQL。 我通过HomeBrew成功安装了Python和MySQL。Python很棒。 安装MySQL之后,我按照前两个步骤进行操作-unset和mysql_install_db命令。 现在,当我尝试启动mysql“ mysql.server start”时,出现以下错误 ERROR! The server quit without updating PID file (/usr/local/var/mysql/Brajeshwar.local.pid). Brajeshwar 是我在计算机上的用户名。
88 mysql  homebrew 

7
另一个正在进行的自制程序正在进行中
当我尝试这样做时: brew install node 我收到此消息: /usr/local/Homebrew/Library/Homebrew/utils/lock.sh: line 19: /usr/local/var/homebrew/locks/update: Permission denied -e:1:in `initialize': Bad file descriptor (Errno::EBADF) from -e:1:in `new' from -e:1:in `<main>' Error: Another active Homebrew process is already in progress. Please wait for it to finish or terminate it to continue. Error: Permission denied - /usr/local/var/homebrew/locks/node.brewing 关于如何解决这个问题的任何想法?
88 macos  homebrew 

4
使用Homebrew安装MongoDB
我对MongoDB相对较新,正在尝试通过Homebrew在Mac上安装MongoDB,但是出现以下错误: Error: No available formula with the name "mongodb" ==> Searching for a previously deleted formula (in the last month)... Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow Error: No previously deleted formula found. ==> Searching for similarly named formulae... Error: …

7
在Mac的哪里可以找到bashrc文件?
您好,我正在关注此页面..我正在Mac上安装Python,以便可以设置Django / Eclipse开发环境。 但是我不太确定如何执行此步骤: 该脚本将说明它将进行哪些更改,并在安装开始之前提示您。 安装Homebrew后,将Homebrew目录插入PATH环境变量的顶部。 您可以通过在〜/ .bashrc文件底部添加以下行来完成此 操作 导出PATH = / usr / local / bin:$ PATH 在哪里可以在Mac上找到bashrc文件,在哪里可以找到homebrew目录? 我正在macbook与进行专业合作OS 10.8.5。
87 python  macos  homebrew 

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.