homebrew

“Incorrect MySQL client library version”

夙愿已清 提交于 2019-12-10 19:45:27
问题 I'm getting the following error when running rake assets:precompile Incorrect MySQL client library version! This gem was compiled for 5.6.10 but the client library is 5.5.12. MySQL is installed using Homebrew and is version 5.6.10. I can connect to the database on 127.0.0.1 locally. I've tried the following with no luck: ARCHFLAGS="-arch x86_64" gem install mysql2 -- –with-mysql-config=/usr/local/bin/mysql_config It seems that advice is for folks whose "client library" is newer than the one

Can't load installed PHP version in Apache (Homebrew OS X)

纵饮孤独 提交于 2019-12-10 19:19:13
问题 Ok there was question like that but situation was different - I want to use build - in OS-X Apache (2.4) and PHP installed by Homebrew (5.6). So I put this is httpd.conf LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so And when i restart Apache I get this httpd: Syntax error on line 118 of /usr/local/etc/apache2/2.2/httpd.conf: Cannot load /usr/local/opt/php56/libexec/apache2/libphp5.so into server: dlopen(/usr/local/opt/php56/libexec/apache2/libphp5.so, 10): Symbol not

Python3, lxml and “Symbol not found: _lzma_auto_decoder” on Mac OS X 10.9

自闭症网瘾萝莉.ら 提交于 2019-12-10 17:34:28
问题 I have installed python 3 using homebrew and afterwards installed pip3 and lxml. The following line from lxml import entree leads to the following error: $ python3 Python 3.3.5 (v3.3.5:62cf4e77f785, Mar 9 2014, 01:12:57) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from lxml import etree Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dlopen(/Library/Frameworks/Python

pip missing for osx homebrew installed python3.5

痞子三分冷 提交于 2019-12-10 17:29:58
问题 I use homebrew to install and mantain python installations on OSX Since latest python3 update pip is missing. The pip module for python2.7 is present while it is missing for python3 It would be nice to have some suggestions on how to install it so that it would not break at every python3 upgrade Please note that the packages are installed using homebrew (eg. brew install pythonX.X) Following are the system information: OS: OSX 10.11.2 (el capitan) python + pip installation status - python2.7

How can I set up a superuser account on Cassandra with homebrew build?

一笑奈何 提交于 2019-12-10 16:51:52
问题 I have installed cassandra with homebrew and am trying to create a superuser admin account. when I type sudo cqlsh -u cassandra -p cassandra I get this error: Python Cassandra driver not installed, or not on PYTHONPATH. You might try "pip install cassandra-driver". Python: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Module load path: ['/usr/local/Cellar/cassandra/2.1.2/bin', '/Library/Python/2.7/site-packages/cql-1.4.0-py2.7.egg', '

brew记录贴

百般思念 提交于 2019-12-10 16:43:13
解决brew卡顿问题 1. 替换brew的源 cd "$(brew --repo)" git remote set - url origin https : / / mirrors . ustc . edu . cn / brew . git 2. 替换homebrew-core的源 cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set - url origin https : / / mirrors . ustc . edu . cn / homebrew - core . git 3. 官方默认的源 cd "$(brew --repo)" git remote set - url origin https : / / github . com / Homebrew / brew . git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set - url origin https : / / github . com / Homebrew / homebrew - core . git 4. brew 常用的命令 brew –help // 查看帮助 brew install xx //安装软件 brew

brew installation error : Appears homebrew is already installed

巧了我就是萌 提交于 2019-12-10 15:54:30
问题 unknown7cd1c37eb7ca:local shoaibali$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" -e:67: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 -e:96: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 It appears Homebrew is already installed. If your intent is to reinstall you should do the following before running this installer again: rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup unknown7cd1c37eb7ca:local shoaibali$ ls

Pip install pygraphviz fails: Failed building wheel for pygraphviz

倖福魔咒の 提交于 2019-12-10 14:57:21
问题 I have troubles installing pygraphviz on macOS 10.10.5. I have a fully functional installation of Python 2.7.x, and I'd like to run the test example of queueing-tool, which requires installing pygraphviz using pip. When executing the command pip install pygraphviz , I get the following lengthy error message: Collecting pygraphviz Using cached pygraphviz-1.3.1.zip Building wheels for collected packages: pygraphviz Running setup.py bdist_wheel for pygraphviz ... error Complete output from

Error installing hadoop with homebrew

偶尔善良 提交于 2019-12-10 14:19:48
问题 I'm trying to get hadoop setup locally on my Mac, but am getting the following error when trying to brew install hadoop: $ brew install hadoop ==> Downloading http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz ==> Best Mirror http://apache.mirrors.pair.com/hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz curl: (22) The requested URL returned error: 404 Error: Download failed: http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz

Installing postgresql with Homebrew and Rails on Mountain Lion

那年仲夏 提交于 2019-12-10 13:26:36
问题 I have been having a lot of trouble installing Postgresql on my computer. I have a Rails app that I deploy to Heroku and want to use Postgresql on my local machine. Before I downloaded Postgres.app but never really used it and recently uninstalled it thinking it may be causing some problems. I install Postgres and every time I run rake db:create:all, I get the following error: could not connect to server: No such file or directory Is the server running locally and accepting connections on