BREW

Homebrew: Could not symlink, /usr/local/bin is not writable

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: While installing tig , HomeBrew is displaying the following issues while installing a dependency: Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/a2x /usr/local/bin is not writable. You can try again using: brew link asciidoc 回答1: Following Alex' answer I was able to resolve this issue; seems this to be an issue non specific to the packages being installed but of the permissions of homebrew folders. sudo chown -R `whoami`:admin /usr/local/bin For some

Postgres could not connect to server

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: After I did brew update and brew upgrade, my postgres got some problem. I tried to uninstall postgres and install again, but it didn't work as well. This is the error message.(I also got this error message when I try to do rake db:migrate) $ psql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? How can I solve it? Mac version: Mountain lion. homebrew version: 0.9.3 postgres version: psql (PostgreSQL) 9.2.1 And this is what I did.

How to install Java 8 on Mac

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to do some programming with the latest JavaFX, which requires Java 8. I'm using IntelliJ 13 CE and Mac OS X 9 Mavericks. I ran Oracle's Java 8 installer, and the files look like they ended up at /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk but previous versions are at /System/Library/Java/JavaFrameworks/jdk1.6.... Not sure why the latest installer puts this in /Library instead of /System/Library (nor what the difference is). But /usr/libexec/java_home doesn't find 1.8, so all the posts I've found on how to set your current java

ImportError: cannot import name HTTPSHandler using PIP

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Facing an HTTPSHandler error while installing python packages using pip, following is the stack trace, --------desktop:~$ pip install Django==1.3 Traceback (most recent call last): File "/home/env/.genv/bin/pip", line 9, in <module> load_entry_point('pip==1.4.1', 'console_scripts', 'pip')() File "/home/env/.genv/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/home/env/.genv/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry

Error Installing Homebrew - Brew Command Not Found

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've spent the bulk of my Friday trying to get the latest version of Ruby installed on my new MacBook Air (w/ Mountain Lion installed). I have all the latest versions of XCode and command line tools. But I can't seem to get Homebrew to work! Here's a screenshot of where I keep getting stuck (I'm a new user, so can't embed this image). As you can see I used the following to instal Homebrew: ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)" While there was a "warning" it seemed as though the installation worked: Warning: /usr

Error running &#039;requirements_osx_brew_libs_install…&#039; on Mac 10.7

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Trying to install brew on a last generation Macbook Pro and keep getting the following error: Error running 'requirements_osx_brew_libs_install autoconf automake libtool pkg-config apple-gcc42 libyaml readline libxml2 libxslt libksba openssl sqlite', please read /Users/allegrascrugham/.rvm/log/ruby-1.9.3-p392/1368142352_package_install_autoconf_automake_libtool_pkg-config_apple-gcc42_libyaml_readline_libxml2_libxslt_libksba_openssl_sqlite.log I tried removing and reinstalling RVM & Brew with no luck. 回答1: I had the exact same error when

Can&#039;t connect to local MySQL server through socket homebrew

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I recently tried installing MySQL with homebrew ( brew install mysql ) and when I try to run it I get the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) There is no /tmp/mysql.sock nor a /var/lib/mysql.sock . I've searched and haven't found any mysql.sock file. How can I fix this? 回答1: When you got the server running via mysql.server start you should see the socket in /tmp/mysql.sock . However, the system seems to expect it in /var/mysql/mysql.sock . To fix this, you have to

Installing R with Homebrew

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to install R using Homebrew. I ran these commands which are recommended elsewhere on SO: brew tap homebrew / science brew install R For brew tap homebrew/science , I'm receiving this error: Error : Already tapped ! For the second command, I receive this: Error : No available formula for r Any suggestions? 回答1: As of 2014 (using an Yosemite), the method is the following: brew tap homebrew / science brew install Caskroom / cask / xquartz brew install r The gcc package (will be installed automatically as a required

Cocoapods: Failed to connect to GitHub to update the CocoaPods/Specs specs repo

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: When running pod repo update the following error is generated: Updating spec repo `master` [!] Failed to connect to GitHub to update the CocoaPods / Specs specs repo - Please check if you are offline , or that GitHub is down Using cocoapods 1.0.1 I'm also aware of this: . Adding --verbose flag to the call shows the ruby call stack: . rvm / gems / ruby - 2.3 . 0 / gems / cocoapods - core - 1.0 . 1 / lib / cocoapods - core / github . rb : 100 : in `modified_since_commit' .rvm/gems/ruby-2.3.0/gems/cocoapods-core-1.0.1/lib/cocoapods

python/pip error on osx

匿名 (未验证) 提交于 2019-12-03 01:55:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've recently purchased a new hard drive and installed a clean copy of OS X Mavericks. I installed python using homebrew and i need to create a python virtual environment. But when ever i try to run any command using pip, I get this error. I haven't been able to find a solution online for this problem. Any reference would be appreciated. Here is the error I'm getting. ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7