homebrew

Why is pyplot giving me a TclError on osx?

倖福魔咒の 提交于 2019-12-06 22:52:31
UPDATE 2: I uninstalled and reinstalled with pip and now this happens. It seems like tk is not installed right. $ ipython Python 2.7.11 (default, Dec 21 2015, 14:13:54) Type "copyright", "credits" or "license" for more information. IPython 4.0.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: from matplotlib import pyplot as plt objc[66269]: Class TKApplication is implemented in both /usr/local/opt/tcl-tk/lib

Error message for virtualenvwrapper on OS X Lion

空扰寡人 提交于 2019-12-06 17:58:52
问题 I've used homebrew to install python on a new Mac Lion installation, and have been trying to install virtualenv and virtualenvwrapper with pip, but when I start a new terminal session, I get this traceback: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named virtualenvwrapper.hook_loader virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that

Missing the OpenSSL lib?

馋奶兔 提交于 2019-12-06 17:03:33
I have been trying to install ruby 2.1.1 but when I run it in the terminal, this is what i get: $rbenv install 2.1.1 Downloading yaml-0.1.6.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e Installing yaml-0.1.6... Installed yaml-0.1.6 to /Users/nthulanemakgato/.rbenv/versions/2.1.1 Downloading ruby-2.1.1.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2 Installing ruby-2.1.1... BUILD FAILED Inspect or clean up the working tree at /var/folders/tj/_bd6whds6lb7wtn2m8ylwx7h0000gp/T/ruby-build.20140427221824.34053 Results logged to

$PATH is not properly set up

狂风中的少年 提交于 2019-12-06 16:48:26
I just ran 'rvm get stable' to be given the below error; Warning! PATH is not properly set up, '/Users/jamesbkemp/.rvm/gems/ruby-2.2.1/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-2.2.1'. Previous to running 'rvm get stable' I ran 'brew upgrade ruby' to Ruby 2.2.2. 'echo $PATH' returns the below: /usr/local/heroku/bin:/Users/user/.rvm/gems/ruby-2.2.1/bin:/Users/user/.rvm/gems

Getting Fabric Python Library to Work

荒凉一梦 提交于 2019-12-06 16:35:13
I installed Fabric via Pip, which was installed via Homebrew (OS X 10.6.6). The Fabric library is where pip says it should be, however I cannot get a basic fabfile going. I've tried the simple hello world example found here: http://docs.fabfile.org/en/1.0.1/tutorial.html Bash gives me the following error when I try fab hello : -bash: fab: command not found Paths: Python 2.7.1: /usr/local/bin/python pip libraries: /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages I'm probably overlooking something silly. Thanks for the help. When you install Fabric with Homebrew and Pip, fab gets put

Cannot create dylib for distribution that works on OS X 10.5 (building in 10.6 environment)

邮差的信 提交于 2019-12-06 16:01:08
I'm trying to distribute cairo (1.10.2) with my application. I can create the necessarily dylibs using Homebrew but they are dependent on versions of other dynamic libraries that aren't present in OS X 10.5 (libfontconfig, libfreetype, and others located primarily in /usr/X11/lib ). I assume to solve this I want it to be using the dylibs in /Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib rather than the libraries in /usr/X11/lib . I've tried anything I could find for targeting cairo against the 10.5 SDK. Setting MACOSX_DEPLOYMENT_TARGET environment variable to 10.5 (before calling brew or using

Problems installing Ruby 1.9.3 with Rvm

こ雲淡風輕ζ 提交于 2019-12-06 15:57:48
问题 I am trying to install ruby 1.9.3 using this guide: http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/. When I run rvm install 1.9.3 I get this error Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password. Skipping `brew update` make sure your

brew - permission denied

孤人 提交于 2019-12-06 15:44:52
My system is OSX 10.11.6. I'm running into this error: System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:959:in `read': Permission denied - /Library/Ruby/Gems/2.0.0/specifications/terminal-notifier-1.6.0.gemspec (Errno::EACCES) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:959:in `load' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:644:in `block (2 levels) in each_spec' from /System/Library/Frameworks/Ruby.framework/Versions/2.0

Curl 'certificate verification failed' on mac

社会主义新天地 提交于 2019-12-06 15:03:30
On the Mac, brew install something (chromedriver in this case), yields: curl: (51) SSL: certificate verification failed (result: 5) Error: Failed to download resource "chromedriver" Download failed: https://chromedriver.storage.googleapis.com/2.22/chromedriver_mac32.zip Que pasa? Env var SSL_CERT_FILE was set to something by some other tool previously. This ... export SSL_CERT_FILE="" brew install something ... fixes the problem 来源: https://stackoverflow.com/questions/38737490/curl-certificate-verification-failed-on-mac

-bash: pg_dump: command not found

≡放荡痞女 提交于 2019-12-06 13:39:04
I'm trying to pull a production database locally for my rails app. My local postgres version was too low so I needed to update to Postgresql 9.6.5 from 9.4.1. I installed Postgres 9.6.6 via Homebrew as such: brew install postgresql@9.6 Then ran: brew services start postgresql@9.6 However, when I try to do pg_dump I get -bash: pg_dump: command not found . I also tried updating my path as such: export PATH="/usr/local/Cellar/postgresql\@9.6/9.6.6/bin:$PATH" Any idea what I need to do to get pg_dump to work? Adding this to my ~/.bash_profile did the trick: export PATH=/usr/local/Cellar/postgresql