我尝试使用brew安装php@7.3。但是,它返回错误,因为它是版本化公式。它是什么?
命令:brew install php@7.3
结果:Error: php@7.3 has been disabled because it is a versioned formula!
如何更新公式?
我跑brew update.然后,运行brew outdated,输出:
mongodb (1.4.3-x86_64 < 1.6.5-x86_64)
Run Code Online (Sandbox Code Playgroud)
因此,mongodb已经过时了.
我该如何升级呢?我只是卸载然后安装?
我有同样的包几小桶中/usr/local/Cellar/libfoo一样/usr/local/Cellar/libfoo/1.0.1,/usr/local/Cellar/libfoo/HEAD和/usr/local/Cellar/libfoo/mycopy
如何刷新特定版本的链接?
我正在尝试通过Homebrew安装node.js. 不幸的是,我收到此错误:
? ~ brew install node
==> Downloading http://nodejs.org/dist/v0.8.10/node-v0.8.10.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/node/0.8.10
==> make install
==> Caveats
Homebrew installed npm.
We recommend prepending the following path to your PATH environment
variable to have npm-installed binaries picked up:
/usr/local/share/npm/bin
Warning: Could not link node. 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 node'
==> Summary
/usr/local/Cellar/node/0.8.10: 856 files, 13M, built …Run Code Online (Sandbox Code Playgroud) 我知道什么时候brew update它会列出所有内容==> Updated Formulae,但是当我在没有运行的情况下多次更新时brew upgrade,如何获得可以升级的所有应用程序的列表?
尝试安装ruby 1.9.3,请阅读我需要先安装自制软件.跑啤酒医生,它给了我一堆警告.其中之一是:
警告:/ usr/bin发生在/ usr/local/bin之前这意味着将使用系统提供的程序而不是Homebrew提供的程序.两个路径都存在以下工具:
Run Code Online (Sandbox Code Playgroud)easy_install easy_install-2.6考虑修改PATH,以便/ usr/local/bin位于PATH中的/ usr/bin之前.
一个人怎么做它在这里要求的东西?
我正在尝试使用Homebrew安装R. 我在SO上的其他地方运行了这些命令:
brew tap homebrew/science
brew install R
Run Code Online (Sandbox Code Playgroud)
因为brew tap homebrew/science,我收到这个错误:
Error: Already tapped!
Run Code Online (Sandbox Code Playgroud)
对于第二个命令,我收到:
Error: No available formula for r
Run Code Online (Sandbox Code Playgroud)
有什么建议?
NodeJs的最新版本现在是0.4.1
现在命令brew install node,安装0.2.6 - 这是不理想的.我想要0.4.1
我已经查看了brew 的命令列表并尝试过brew install --HEAD node
但是安装节点0.5-pre.
为什么brew没有安装正确的版本,我怎么能强迫它找到正确的版本?
在这个阶段,看起来下载src并手动安装它实际上会更容易.但我想知道Brew发生了什么.
我需要能够在Python 2和3之间来回切换.我如何使用Homebrew做到这一点,因为我不想弄乱路径并遇到麻烦.现在我通过Homebrew安装了2.7.
像其他一些人一样,当我在我的项目中运行rake db:migrate或者甚至为我的Ruby on Rails 3.2应用程序尝试大多数数据库任务时,我收到此错误.
PGError(无法连接到服务器:没有这样的文件或目录.服务器是否在本地运行并接受Unix域套接字上的连接"/tmp/.s.PGSQL.5432"?
很久以前我用Homebrew安装了PostgreSQL,并且在最近尝试安装MongoDB后,我的PostgreSQL安装从未如此.我正在运行OS X v10.6 Snow Leopard.
出了什么问题,我怎么能更好地理解PostgreSQL是如何设置在我的Mac上的呢?
到目前为止(我认为)这告诉我PostgreSQL没有运行(?).
ps -aef|grep postgres (ruby-1.9.2-p320@jct-ana) (develop) ?
501 17604 11329 0 0:00.00 ttys001 0:00.00 grep postgres
Run Code Online (Sandbox Code Playgroud)
但这是否告诉我PostgreSQL正在运行?
? launchctl load -w /usr/local/Cellar/postgresql/9.1.4/homebrew.mxcl.postgresql.plist (ruby-1.9.2-p136)
homebrew.mxcl.postgresql: Already loaded
Run Code Online (Sandbox Code Playgroud)
我该如何解决?我没看到什么?
PS:~/Library/LaunchAgents包含两个PostgreSQL .plist文件.我不确定这是否相关.
org.postgresql.postgres.plist
homebrew.mxcl.postgresql.plist
Run Code Online (Sandbox Code Playgroud)
我尝试了下面的结果,得到了如下结果.
$ psql -p 5432 -h localhost
psql: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on …Run Code Online (Sandbox Code Playgroud)