我正在尝试在 Mountain Lion 上安装 CouchDB。我已按照以下指南操作:http://wiki.apache.org/couchdb/Installing_on_OSX
我到了必须要做的事情brew install couchdb
,但是当我这样做时,我得到了:
Erlang <= R15B03-1 is required to install.
You have a erlang version R15B03-1
The work-around is:
brew unlink erlang
cd /usr/local
git checkout 168742f Library/Formula/erlang.rb
brew install erlang
brew install couchdb
Error: An unsatisfied requirement failed this build.
请注意,我已经获得了它要求的 Erlang 版本,但它仍然失败。
当我第一次尝试安装 CouchDB 时,我已经安装了 MacPorts,但我卸载了它并再次尝试,但没有成功。
跑步brew doctor
给我:
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libaspell.15.1.4.dylib
/usr/local/lib/libcdt.5.dylib
/usr/local/lib/libcgraph.6.dylib
/usr/local/lib/libgimpprint.1.1.3.dylib
/usr/local/lib/libgraph.5.dylib
/usr/local/lib/libgs.8.64.dylib
/usr/local/lib/libgvc.6.dylib
/usr/local/lib/libgvpr.2.dylib
/usr/local/lib/libpathplan.4.dylib
/usr/local/lib/libpspell.15.1.4.dylib
/usr/local/lib/libusb-0.1.4.4.4.dylib
/usr/local/lib/libusb-0.1.4.dylib
/usr/local/lib/libusb.dylib
/usr/local/lib/libusbpp-0.1.4.4.4.dylib
/usr/local/lib/libusbpp-0.1.4.dylib
/usr/local/lib/libusbpp.dylib
/usr/local/lib/libxdot.4.dylib
/usr/local/lib/ZeppelinUpdater.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libaspell.la
/usr/local/lib/libgimpprint.la
/usr/local/lib/libpspell.la
/usr/local/lib/libusb.la
/usr/local/lib/libusbpp.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/fuse.pc
/usr/local/lib/pkgconfig/libcdt.pc
/usr/local/lib/pkgconfig/libcgraph.pc
/usr/local/lib/pkgconfig/libgraph.pc
/usr/local/lib/pkgconfig/libgvc.pc
/usr/local/lib/pkgconfig/libgvpr.pc
/usr/local/lib/pkgconfig/libpathplan.pc
/usr/local/lib/pkgconfig/libxdot.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libgimpprint.a
/usr/local/lib/libusb.a
/usr/local/lib/libusbpp.a
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
2to3
2to3-2.7
idle
idle2.7
pydoc
pydoc2.7
python
python-config
python2.7
python2.7-config
pythonw
pythonw2.7
smtpd.py
smtpd2.7.py
Consider amending your PATH so that /usr/local/bin
occurs before /usr/bin in your PATH.
即使我改变了 etc/paths 使得 /usr/local/bin 成为第一行:
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
此外,我不太愿意改变上述文件的位置,因为我不知道它们是什么。
最后,我还尝试了 CouchDB 应用程序http://www.apache.org/dist/couchdb/notes/1.2.1/apache-couchdb-1.2.1.html,但当我运行它时我得到CouchDB Server doesn't seem to be operating properly. Check Console logs for more details.
我不知道如何访问控制台日志...
任何帮助是极大的赞赏。
答案1
所以我得到了同样的东西。我按照Couchdb 网站上的说明并遇到了另一个问题在 stack overflow 上记录了一个解决方案 但我认为我有一个更直接的解决方案给你。
试试这个,用你喜欢的文本编辑器打开公式
vim /usr/local/Library/Formula/couchdb.rb
更正引用依赖项的行。如果您遇到问题,可以按照我在 stack overflow 上描述的解决方案操作,但您应该能够解决这个问题。
希望有帮助!
-担
答案2
它不能解决您遇到的 brew 问题,但您也可以从 CouchDB 网站下载现成的二进制分发版:http://couchdb.apache.org/#download