homebrew

Library not loaded: /opt/local/lib/libffi.5.dylib but I'm using homebrew

喜欢而已 提交于 2020-01-02 04:51:26
问题 I'm trying to run guard on Mac OS X Lion(XCode 4.3+OSX GCC Installer+Homebrew) Error message: Library not loaded: /opt/local/lib/libffi.5.dylib I have no /opt/local directory since I'm not using MacPorts but Homebrew I tried brew install libffi , which was successful, but the gem still doesn't work. I also have tried uninstalling and reinstalling the gem without success. Problem is also occurring on OSX 10.9 (Mavericks) with apple-gcc42 installed. I have also tried telling gem about the

Install Gtk 3 for python on mac

[亡魂溺海] 提交于 2020-01-02 02:23:29
问题 I have installed python gtk3 using homebrew but it prints Warning: gtk+3-3.14.6 already installed but when i try to import it in python from gi.repository import Gtk it gives the error ImportError: No module named gi.repository Please help. 回答1: When I installed only pygobject3 I got the following error when running a python script: gi.require_version('Gtk', '3.0') File "/usr/local/lib/python2.7/site-packages/gi/__init__.py", line 102, in require_version raise ValueError('Namespace %s not

Can't install Ruby on Mountain Lion with rvm

僤鯓⒐⒋嵵緔 提交于 2020-01-01 19:00:03
问题 Have tried to install Ruby on Mountain Lion using rvm, but got this error message: ruby-1.9.3-p362 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p362 ruby-1.9.3-p362 - #configuring Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 --with-opt-dir=/usr/local/rvm/usr', please read /usr/local/rvm/log/ruby-1.9.3-p362/configure.log

Updating pip and setuptools in homebrew does not work

守給你的承諾、 提交于 2020-01-01 15:09:35
问题 After brew install python , the following comes up: Pip and setuptools have been installed. To update them pip2 install --upgrade pip setuptools Running pip2 install pip2 install --upgrade pip setuptools Traceback (most recent call last): File "/usr/local/bin/pip2", line 11, in <module> load_entry_point('pip==9.0.1', 'console_scripts', 'pip2')() File "/Users/user1/Library/Python/2.7/lib/python/site-packages/pkg_resources/__init__.py", line 564, in load_entry_point return get_distribution(dist

Updating pip and setuptools in homebrew does not work

拈花ヽ惹草 提交于 2020-01-01 15:07:11
问题 After brew install python , the following comes up: Pip and setuptools have been installed. To update them pip2 install --upgrade pip setuptools Running pip2 install pip2 install --upgrade pip setuptools Traceback (most recent call last): File "/usr/local/bin/pip2", line 11, in <module> load_entry_point('pip==9.0.1', 'console_scripts', 'pip2')() File "/Users/user1/Library/Python/2.7/lib/python/site-packages/pkg_resources/__init__.py", line 564, in load_entry_point return get_distribution(dist

Import error no module named zlib (brew installed python)

ぐ巨炮叔叔 提交于 2020-01-01 09:16:27
问题 When I use pip freeze on the brew installed version of python 2.7 I get an import error no module named zlib. ➜ ~ pip freeze Traceback (most recent call last): File "/usr/local/bin/pip", line 9, in <module> load_entry_point('pip==7.1.2', 'console_scripts', 'pip')() File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__

brew doctor Warning: How to add git to PATH?

。_饼干妹妹 提交于 2020-01-01 04:19:11
问题 I installed Homebrew on OS X El Capitan. In the last steps of the installation I was supposed to install git with brew install git which was fine. Now if I run 'brew doctor' this happens: $ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks! Warning: Git could not be found in your PATH. Homebrew uses Git for several

How can I install a newer version of make on Mac OS?

断了今生、忘了曾经 提交于 2020-01-01 04:18:04
问题 Mac OS comes with make version 3.81 and I want a newer version ( >=4.0 ) for use on some projects. How can I install a newer version, preferably using brew? That's related to GNU Make --output-sync doesn't work? as I want to use some feature output sync on parallel builds. 回答1: brew ships a make in the homebrew/dupes tap. brew install homebrew/dupes/make puts a gmake binary in the PATH to avoid clashes with the default make version on macOS. The option --with-default-names will install as

What does linking/unlinking with Homebrew mean?

房东的猫 提交于 2020-01-01 04:04:51
问题 What does it mean to link/unlink something with Homebrew? 回答1: It symlinks the installed package (located in /usr/local/Cellar ) to /usr/local . So when you type for example: $ <name-of-binary> in your terminal (ex. $ rvm ), then the package installed via brew is run. 回答2: It creates a symlink from packages installed in Cellar (regular packages installed with homebrew will already be linked). What this also does is allow the symlinked installation from Cellar to serve as a dependency for

What does linking/unlinking with Homebrew mean?

馋奶兔 提交于 2020-01-01 04:04:47
问题 What does it mean to link/unlink something with Homebrew? 回答1: It symlinks the installed package (located in /usr/local/Cellar ) to /usr/local . So when you type for example: $ <name-of-binary> in your terminal (ex. $ rvm ), then the package installed via brew is run. 回答2: It creates a symlink from packages installed in Cellar (regular packages installed with homebrew will already be linked). What this also does is allow the symlinked installation from Cellar to serve as a dependency for