BREW

Installing Google Protocol Buffers on mac

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to install the older version of Google Protocol Buffers (protobuf-2.4.1) on mac using Terminal command line. I tried with brew install protobuf , but the latest version 2.5.0 has been installed. Is it possible to install the older version from terminal. Thanks 回答1: There are some issues with building protobuf 2.4.1 from source on a Mac. There is a patch that also has to be applied. All this is contained within the homebrew protobuf241 formula, so I would advise using it. To install protocol buffer version 2.4.1 type the

Installing openCV 2.4.2 on Mac OS X 10.9 (Mavericks)

匿名 (未验证) 提交于 2019-12-03 02:43:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to install openCV 2.4.2 (not the newest version but stable version compatible with newer OS X according to several sources) on Mac OS X 10.9 (Mavericks). I have tried installing from source and using homebrew but neither works. I get the following error when I try installing it: build Marieke$ make [ 25 %] Building CXX object modules / ts / CMakeFiles / opencv_ts . dir / src / precomp . cpp . o In file included from / users / Marieke / Downloads / OpenCV - 2.4 . 2 / modules / ts / src / precomp . cpp : 1 : In file

Error: The 'brew link' step did not complete successfully

匿名 (未验证) 提交于 2019-12-03 02:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to install node.js via Homebrew. Unfortunately, I get this error: So then I try to link node manually... No luck, so I try forcefully linking node... I'm not familiar with dtrace in any regard and I'm afraid to mess with permissions, so I tried to sudo.. I've tried uninstalling node via brew uninstall node and retrying the install with no luck. 回答1: The homebrew package for node.js now includes npm again, so this happened to me when I missed the homebrew package's message about removing the standalone version first. Assuming, like

Import pandas on jupyter ipython notebook fails

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am able to import the pandas package within the spyder ide; however, if I attempt to open a new juypter notebook, the import fails. I use the Anaconda package distribution on MAC OS X. Here is what I do: In [1]: import pandas and this is the response I get: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-5-97925edf8fb0> in <module>() ----> 1 import pandas //anaconda/lib/python2.7/site-packages/pandas/__init__.py in <module>() 11 "pandas from the source

How to install Haskell on Mac OS

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to install Haskell on my Macbook two days and can not get the success. What I have done: $ brew install ghc Fine. Now I am trying to install $ cabal install text and get next error messages: Data/Text.hs:1074:4: error: invalid preprocessing directive #-} ^ I have googled and found this . So: brew install gcc48 $ /usr/local/bin/gcc-4.8 --version gcc-4.8 (GCC) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or

Brew Update not working after mac 10.9

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: First time running brew since 10.9 upgrade. From the output below, should I just remove Library/Formula/ant.rb and Library/Formula/apple-gcc42.rb? Also, unclear why git pull is failing. Thanks for any help 525 [projects]$ brew --config HOMEBREW_VERSION: 0.9.4 ORIGIN: https://github.com/mxcl/homebrew.git HEAD: 27c26faf7b958de6028ad55be8ccc5a57b094d3f HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar CPU: 8-core 64-bit ivybridge OS X: 10.9-x86_64 Xcode: 5.0.2 GCC-4.2: build 5666 LLVM-GCC: build 0 Clang: 5.0 build 500 X11: N/A

Brew update failed: untracked working tree files would be overwritten by merge

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Trying to update Homebrew with brew update I got the following error error: The following untracked working tree files would be overwrittenby merge: Library/Formula/argp-standalone.rb Library/Formula/cocot.rb Please move or remove them before you can merge. Aborting Updating e088818..5909e2c Error: Failed while executing git pull origin refs/heads/master:refs/remotes/origin/master I found a blog post by someone who experienced a similar problem after having installed Mountain Lion (which I did this week too). He explains how he removed the

Cannot connect to mongodb errno:61 Connection refused

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I recently installed mongodb-2.6.0 with Homebrew . After successfully installed, I tried to connect using the mongo command. I am receiving the following errors which do not allow me to connect: 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 回答1: It can happen when the mongodb service is not running on the mac. To start it, I tried brew services start mongodb and it

SciPy build/install Mac Osx

匿名 (未验证) 提交于 2019-12-03 02:13:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I successfully built/installed NumPy on my mac os x for python 2.7.3. Now I would like to build/install scipy as well. I downloaded it from git hub. Went into the directory. Ran python setup.py build and it seemed to be working until it came across this error: customize Gnu95FCompiler Could not locate executable gfortran Could not locate executable f95 customize NAGFCompiler customize AbsoftFCompiler Could not locate executable f90 Could not locate executable f77 customize IBMFCompiler Could not locate executable xlf90 Could not locate

Brew doctor says: “Warning: /usr/local/include isn't writable.”

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Brew doctor says: Warning: /usr/local/include isn't writable. This can happen if you "sudo make install" software that isn't managed by Homebrew. If a brew tries to write a header file to this directory, the install will fail during the link step. You should probably chown /usr/local/include I've tried different commands to solve this but I'm still stuck here. I'm running homebrew on 10.8.2 回答1: Take ownership of it and everything in it. $ sudo chown - R $USER : admin / usr / local / include Then do another $ brew doctor 回答2: What