homebrew

Imagemagick issue on Lion installed with Homebrew

三世轮回 提交于 2019-12-17 16:48:09
问题 I am trying to use the Paperclip gem on a Rails project so followed the docs and first installed Imagemagick using the Homebrew recipe. I added to my model my attachment has_attached_file :screenshot This worked OK and the file uploads functioned as expected I then wanted to add thumbnails to this, so again followed the docs and added to the model has_attached_file :screenshot, :styles => { :medium => "300x300>", :thumb => "100x100>" } At this point the uploads no longer worked I check the

How can I install multiple versions of Python on latest OS X and use them in parallel?

眉间皱痕 提交于 2019-12-17 15:55:18
问题 I want to run tests with multiple Python versions on OS X 10.11, including: Python 2.6 - ?! Python 2.7 - default - solved Python 3.4 - ?! Python 3.5 - installed via brew - works well Conda Python 3.5 - ?! I want to run the tests via tox so tox needs to be able to find them. Sadly it seems that brew doesn't want to install 3.4 since they added 3.5 and I obviously do not want to remove 3.5 one. 回答1: This blog post suggests using pyenv with the desired detox . The basic setup with brew requires:

Brew doctor: dyld: Library not loaded & Error: No available formula for zlib

一曲冷凌霜 提交于 2019-12-17 15:46:46
问题 When I brew doctor I get the following errors: dyld: Library not loaded: /usr/lib/libltdl.7.dylib Referenced from: /usr/local/bin/php Reason: image not found Error: No available formula for zlib The file libltdl.7.dylib is not in my /usr/lib directory, but there are several other .dylib files. I'm running 10.8.1 with the latest version of Xcode (4.4.1) and its Command Line Tools installed. Any idea how to solve these errors? 回答1: Try to re-install libtool by: brew reinstall libtool -

How do you update Xcode on OSX to the latest version?

岁酱吖の 提交于 2019-12-17 15:21:42
问题 What is the easiest way to update Xcode on OSX? I see this in the terminal: $ brew install xxxxxxx Warning: Your Xcode (4.3.3) is outdated Please install Xcode 4.6. But when I go to open up Xcode > Preferences > Downloads , it says there are no updates? 回答1: Open up App Store Look in the top right for the updates section Find Xcode & click Update 回答2: softwareupdate --list see the list of outdated software. softwareupdate --install --all update all outdated software. softwareupdate --install

For homebrew mysql installs, where's my.cnf?

十年热恋 提交于 2019-12-17 10:11:11
问题 For homebrew mysql installs, where's my.cnf? Does it install one? 回答1: There is no my.cnf by default. As such, MySQL starts with all of the default settings. If you want to create your own my.cnf to override any defaults, place it at /etc/my.cnf. Also, you can run mysql --help and look through it for the conf locations listed. Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf The following groups are read: mysql

Getting a “bad interpreter” error when using brew

送分小仙女□ 提交于 2019-12-17 09:43:18
问题 I'm getting this error when I try to run any brew command. Holger-Sindbaeks-MacBook-Air:~ holgersindbaek$ brew help -bash: /usr/local/bin/brew: /usr/bin/ruby: bad interpreter: No such file or directory I have absolutely no idea on how to fix this and been searching for a long time without answer. 回答1: What you are getting means that Homebrew has not been able to locate the Ruby interpretter at the specified location. Install Apple Developer Kit (comes with Xcode) which should be available to

How to get Ruby / Homebrew / RVM to work on Yosemite?

二次信任 提交于 2019-12-17 08:05:21
问题 After installing Yosemite, I was unable to run brew or ruby. I was getting this error on brew update: /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0 getting this error on irb: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in mkdir': Permission denied - /Library

Octave-Gnuplot-AquaTerm error: set terminal aqua enhanced title “Figure 1”…unknown terminal type"

大憨熊 提交于 2019-12-17 08:02:30
问题 I've installed Octave and gnuplot via Homebrew, and downloaded AquaTerm.dmg. When I try to plot, I get the following message: octave:4> plot(x,y) gnuplot> set terminal aqua enhanced title "Figure 1" font "*,6" ^ `line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list` In a bash terminal set terminal , set Terminal , set term , (and the same, followed by "aqua" too) etc gives nothing. I've tried plotting again from octave having the "AquaTerm" already open, but nothing

How can I switch to ruby 1.9.3 installed using Homebrew?

天大地大妈咪最大 提交于 2019-12-17 07:02:12
问题 I have installed ruby 1.9.3 using hombrew brew install ruby But default 1.8.7 is still used. How can I switch osx to use 1.9.3 as default ruby? 回答1: I suggest you take a look at rvm. You can then set it as default with rvm use 1.9.3 --default But if you are happy with your homebrew install. Then just change the precedence of directories in the PATH Here is my /etc/paths # homebrews should always take precedence /usr/local/bin # the default stack /usr/bin /bin /usr/sbin /sbin This is important

Using Python with homebrew on OS X

为君一笑 提交于 2019-12-17 06:18:30
问题 I have been using Mac python for a while, and I decided to teach myself matplotlib , because I want to have the experience with some common modules. I hear from everyone that once you get into non-standard modules, it's best to use python threw homebrew, so you have access to pip and not easy_install . After running: $brew install python --with-brewed-openssl , $brew install python3 --with-brewed-openssl , and $pip install matplotlib , I go to the python shell with $python3 . Once there, I