homebrew

Unable to brew upgrade Python in Mojave

和自甴很熟 提交于 2019-12-24 15:27:14
问题 I ran brew outdated in macOS Mojave 10.14.2 and determined that python and python@2 were outdated. When I ran brew upgrade it failed for both. For example for python@2 : ==> Upgrading python@2 ==> Downloading https://homebrew.bintray.com/bottles/python@2-2.7.15_2.mojave.bottle.tar.gz ######################################################################## 100.0% ==> Pouring python@2-2.7.15_2.mojave.bottle.tar.gz Error: An unexpected error occurred during the `brew link` step The formula built

Homebrew “brew install mysql” giving “…Error while setting value '127.0.0.1' to 'server_id'”

橙三吉。 提交于 2019-12-24 11:49:14
问题 I recently upgraded my system to OS X Yosemite and started encountering some issues to connect locally to my Database via MySQL Workbench. It was mainly classic ones about the PID files and socket, that I managed to find solutions for looking over the web. However one was remaining : "Can't connect to MySQL server on '127.0.0.1' (61) (2003)", and none of the solutions I found on the MySQL website, stackoverflow and other forums were working. I therefore decided to reinstall MySQL using the

When using tmux nvm isn't being sourced

倖福魔咒の 提交于 2019-12-24 10:47:47
问题 I used brew to install nvm on macOS, then I used nvm to install node 8.9.1 and it works fine, until I load tmux, then I get the following messages: nvm is not compatible with the npm config "prefix" option: currently set to "/usr/local" Run `npm config delete prefix` or `nvm use --delete-prefix v8.9.1 --silent` to unset it. After some troubleshooting I noticed that when I use tmux it is using a different npm. Not using tmux: ~ which npm /Users/mario/.nvm/versions/node/v8.9.1/bin/npm ~ npm

PATH issues with homebrew-installed Python 2 and Python 3 on OSX

一世执手 提交于 2019-12-24 09:44:44
问题 I'm relatively new to programming and have searched 'til my fingertips were blue, but can't seem to find a solution to the problem I'm having. I have homebrew-installed versions of Python 2 and Python 3 on OSX and I can't seem to get the proper PATH/PYTHONPATH in my .bash_profile in order to be able to import modules properly in both versions in IDLE. I can, however, import modules when running Python 2 or Python 3 directly in a shell window. I am launching IDLE via terminal so it should

Installing DBD::Sybase on OS X with Homebrew fails to find freetds libraries

拜拜、爱过 提交于 2019-12-24 08:28:59
问题 I am installing DBD::Sybase I receive following error, after setting export SYBASE=/usr/local/Cellar/freetds/0.95.80 and download freetds: brew install freetds Error: Configuring DBD-Sybase-1.15 ... Can't find any Sybase libraries in /usr/local/Cellar/freetds/0.95.80/lib or /usr/local/Cellar/freetds/0.95.80/lib64 at Makefile.PL line 155, <IN> line 44 I believe I need to edit the makefile directly. Do I need to edit makefile? And could I use CPANM still. CPANM is under Brew (cellar). /usr

Installation of imagemagick with BREW

試著忘記壹切 提交于 2019-12-24 08:16:11
问题 My problem is really simple :) schovi@Saskia:~/tmp $ brew install imagemagick Error: You must install brew install git schovi@Saskia:~/tmp $ brew install git Warning: Formula already installed: git schovi@Saskia:~/tmp $ brew install imagemagick Error: You must install Git: brew install git Any idea? :) 回答1: Install git from http://git-scm.com/ 来源: https://stackoverflow.com/questions/6417135/installation-of-imagemagick-with-brew

How do I get Mac to install php with a php.ini file?

烈酒焚心 提交于 2019-12-24 07:07:44
问题 I'm using Mac High Sierra. I need to install php with the php.ini file installed. I ran the following command without errors: brew install php71 --build-from-source However, when I search for a configuration file, I get nothing: localhost:stratum-php-master davea$ php -i | grep "Loaded Configuration File" Loaded Configuration File => (none) How do I get Mac to recognize a php.ini file? 回答1: If you install PHP 7.1 using Homebrew, the php.ini file will be generated in /usr/local/etc/php/7.1/php

libc++abi.dylib: terminating with uncaught exception of type NSException

别来无恙 提交于 2019-12-24 04:01:29
问题 I have developed a program in opencv python on linux and now I am trying to run it on mac. But now I am getting the following error on running it. I installed opencv using brew. /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users /krupanilesh/Desktop/dependencies/gazedev.py 2015-06-23 12:17:00.197 Python[803:16229] -[_NSFullScreenWindow sliders]: unrecognized selector sent to instance 0x102dcb8c0 2015-06-23 12:17:00.198 Python[803:16229] An uncaught exception was raised

libc++abi.dylib: terminating with uncaught exception of type NSException

五迷三道 提交于 2019-12-24 04:01:25
问题 I have developed a program in opencv python on linux and now I am trying to run it on mac. But now I am getting the following error on running it. I installed opencv using brew. /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users /krupanilesh/Desktop/dependencies/gazedev.py 2015-06-23 12:17:00.197 Python[803:16229] -[_NSFullScreenWindow sliders]: unrecognized selector sent to instance 0x102dcb8c0 2015-06-23 12:17:00.198 Python[803:16229] An uncaught exception was raised

Issue when importing matplotlib

半腔热情 提交于 2019-12-24 01:47:14
问题 I've setted up a virtual enviroment for playing around with machine learning using pyenv . When i run import matplotlib.pyplot as plt this i what i get: ImportError Traceback (most recent call last) <ipython-input-1-eff513f636fd> in <module>() ----> 1 import matplotlib.pyplot as plt /usr/local/var/pyenv/versions/2.7.11/envs/machine_learning/lib/python2.7/site-packages/matplotlib/pyplot.py in <module>() 27 from cycler import cycler 28 import matplotlib ---> 29 import matplotlib.colorbar 30