homebrew

Uninstall memcached and/or (force) install with Homebrew - Mac OS X

让人想犯罪 __ 提交于 2019-12-06 00:08:45
I need a memcached on my Mac (os X 10.8), and I began by installing memcached and libevent 'manually' (1). Well, maybe I did this a bit too quickly, and now I'm figuring out that it would be better to install it 'cleanly' with Homebrew. I think I should first uninstall 'cleanly' libevent and memcached. Should I ? Or should I simply run brew install memcached , and use the function to delete the files Homebrew thinks are to be deleted ? (I mean brew link -f memcached after brew install memcached ; I'm wondering how 'clean' it will be , and if I won't encounter problems hard to solve later on ..

brew install redis (osx 10.7)

谁说胖子不能爱 提交于 2019-12-05 23:55:29
问题 i tried installing Redis on osx 10.7 via homebrew in bash and I get the following error: ==> Downloading http://redis.googlecode.com/files/redis-2.6.9.tar.gz Already downloaded: /Library/Caches/Homebrew/redis-2.6.9.tar.gz ==> make -C /private/tmp/redis-wQAX/redis-2.6.9/src CC=cc Error: Permission denied - /usr/local/var/db Redis is not installed from what i can tell. $ ps -aux | grep redis ps: No user named 'x' I cannot find the solution and don't know who to ask! Please let me know if you

Easiest way to install pygtk on Mac OS X

旧时模样 提交于 2019-12-05 23:20:41
问题 Ideally, I would like to install pygtk using pip or Homebrew. Neither one seems to be possible. I am running Leopard. 回答1: You need to install pygtk yourself - at least because since some of its dependencies like dextras are not available through PyPI. 回答2: I've archive some success running tryton which uses pygtk with Homebrew. I've uninstalled anything installed before in Homebrew and installed again with: brew install pygtk I guess to do the trick is setting the PYTHONPATH as brew says end

mac下phpize编译提示Cannot find autoconf解决办法

≯℡__Kan透↙ 提交于 2019-12-05 22:16:04
在 mac 下 phpize编译扩展时,出现如下报错: /usr/bin/ phpize Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 Cannot find autoconf . Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. 解决办法也简单,在终端中运行如下命令: $ brew install autoconf 如果 Homebrew 未安装,可先参考: Homebrew 套件管理器使 Mac OS X 更完美 $ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 来源: https://my.oschina.net/owenzhang24/blog/3134729

“config” scripts exist outside your system or Homebrew directory

青春壹個敷衍的年華 提交于 2019-12-05 21:35:39
问题 Ran "brew doctor" and got some errors. I managed to fix the path issue by following the advice at this link: How to modify PATH for Homebrew?. However, completely lost with what to do with the following error: Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and what additional flags to use when compiling and linking. Having additional scripts in your path can

Homebrew pyenv install error dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib

十年热恋 提交于 2019-12-05 21:18:49
After installing pyenv from Homebrew on MacOS Mojave I am getting build errors when attempting to install any python versions. When running pyenv install for any version the build will fail with error: dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib Referenced from: /usr/local/bin/awk Reason: image not found The solution for me was to force link the readline 8 lib that I had under /usr/local/opt/readline/lib/ . > cd /usr/local/opt/readline/lib/ > ls libhistory.8.0.dylib libhistory.a libreadline.8.dylib libreadline.dylib libhistory.8.dylib libhistory.dylib libreadline

What techniques can you use to profile your code

前提是你 提交于 2019-12-05 20:59:37
Some of the platforms that I develop on, don't have profiling tools. I am looking for suggestions/techniques that you have personally used to help you identify hotspots, without the use of a profiler. The target language is C++. I am interested in what you have personally used. I've found the following quite useful: #ifdef PROFILING # define PROFILE_CALL(x) do{ \ const DWORD t1 = timeGetTime(); \ x; \ const DWORD t2 = timeGetTime(); \ std::cout << "Call to '" << #x << "' took " << (t2 - t1) << " ms.\n"; \ }while(false) #else # define PROFILE_CALL(x) x #endif Which can be used in the calling

在mac上安装rabbitmq

自闭症网瘾萝莉.ら 提交于 2019-12-05 20:53:36
在 OS X 上安装 RabbitMQ ¶ 在 Snow Leopard 上安装 RabbitMQ 最简单的方式就是 Homebrew ——OS X 上的一款新颖别致,光彩动人的包管理系统。 在本例中,我们将把 Homebrew 安装到 /lol ,但你可以选择任意位置, 如果你想,甚至可以是你的用户根目录,Homebrew 的强大之处之一就是可以重定址。 Homebrew 实际上是一个 git 仓库,所以要安装 Homebrew,你首先需要安装 git。 从 http://code.google.com/p/git-osx-installer/downloads/list?can=3 下载并安装磁盘映像。 当安装好 git 后,你终于可以克隆这个仓库到 /lol : $ git clone git://github.com/mxcl/homebrew /lol Brew 包含一个简单的工具称为 brew ,用于安装、移除和查询包。为了使用它,你需要先把它添加到 PATH 中。可以把下面的这行添加到你的 ~/.profile 末尾来实现: export PATH="/lol/bin:/lol/sbin:$PATH" 保存并重新加载: $ source ~/.profile 你终于可以用 brew 安装 RabbitMQ 了: $ brew install rabbitmq

How to install Python25 on my mac with Homebrew

时光毁灭记忆、已成空白 提交于 2019-12-05 20:52:05
I'm new to Mac's and Python. I want to install an older version of Python (2.5) on to the Mac (OS X 10.8.1). I'm using homebrew as it's newer than MacPorts and I don't know enough to choose between them. Following instructions I have installed Rails, mySQL, budle, pow - all sorts of stuff, but when I use the same technique to install python 2.5 it doesn't work. I tried: Axolotl:.pow neil$ brew search python25 homebrew/versions/python25 Axolotl:.pow neil$ brew install python25 Error: No available formula for python25 Axolotl:.pow neil$ brew install homebrew/versions/python25 Error: No available

How to pass arguments to homebrew service

落爺英雄遲暮 提交于 2019-12-05 20:30:45
I have installed beanstalkd using homebrew but am unable to increase the maximum job size. This is normally done by passing the -z argument as "-z byte_size" All attempts to edit the formula for myself have failed to increase the job size as needed. How do I successfully pass the -z argument in homebrew to increase the maximum job size. I have tried using "brew edit beanstalkd" and modified the file adding a second "string" value with the -z 10000000 but this didn't seem to help. 来源: https://stackoverflow.com/questions/41880429/how-to-pass-arguments-to-homebrew-service