homebrew

Why does my python installation recognize /Library/Python/2.7/site-packages/?

和自甴很熟 提交于 2019-12-13 19:17:16
问题 I have installed Python using Homebrew. I would like for this installation of python to recognize only one site-pakages directory -- /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages However, when I start the python shell and give the command print [f for f in sys.path if f.endswith('packages')] I get the following output: ['/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '

Package check was not found in the pkg-config search path

ぃ、小莉子 提交于 2019-12-13 17:45:58
问题 I am using check package in netbeans for C programming, But I receive this error from netbeans: Package check was not found in the pkg-config search path. Perhaps you should add the directory containing `check.pc' to the PKG_CONFIG_PATH environment variable No package 'check' found In the terminal if I insert this line: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig and then pkg-config --modversion check it can find the check package, but in netbeans I still get the same error. What should I

How do I undo `brew link --force openssl` on mac yosemite

拟墨画扇 提交于 2019-12-13 14:42:37
问题 I had some issues while trying to upgrade the brew formulas with php54. I found on github some suggestions to deal with the openssl php brew bug. Some of them suggested to run brew link openssl --force and I did that but at the end the issue was somewhere else and was not related to openssl. So how do I undo brew link openssl --force . I tried to see what this does with brew link openssl --dry-run but the output is: Warning: openssl is keg-only and must be linked with --force Note that doing

setting path in terminal

大城市里の小女人 提交于 2019-12-13 14:34:26
问题 I am installing Homebrew on my Mac in order to install Macvim. After installing Homebrew, I am prompted to run brew doctor, which in turn generates a number of warnings. I have resolved several of these but am stuck on two: Warning: Enthought Python was found in your PATH. This can cause build problems, as this software installs its own copies of iconv and libxml2 into directories that are picked up by other build systems. I'm not sure if I should simply ignore this or look for a way to

How to fix missing library after update and upgrade of Homebrew

故事扮演 提交于 2019-12-13 14:22:12
问题 I decided to update and upgrade Homebrew on a Friday afternoon (because why not) and it appears to have resulted in a missing library that's affecting my ability to run pretty much everything (PHP, Laravel Valet, Node, etc...) The error message on each is the same, so I'm hoping this is a simple fix, but I'm not sure where to begin. Chriss-MacBook-Pro-2:~ chris$ node --version dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib Referenced from: /usr/local/bin/node Reason:

passenger meet Library not loaded error : liblzma.5.dylib

邮差的信 提交于 2019-12-13 13:55:41
问题 I am trying to running rails with passenger. I both AWS SDK 1 and 2 gem installed: gem 'aws-sdk-v1' gem 'aws-sdk', '~> 2' when I use AWS sdk to run: s3 = AWS::S3.new I meet error: LoadError: dlopen(/Users/XXXX/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.6.2/lib/nokogiri/nokogiri.bundle, 9): Library not loaded: /usr/local/lib/liblzma.5.dylib Referenced from: /Users/XXXX/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.6.2/lib/nokogiri/nokogiri.bundle Reason

How to access a file on Amazon S3 from the Command Line?

非 Y 不嫁゛ 提交于 2019-12-13 11:41:32
问题 Question: Is there a simple way to access a data file stored on Amazon S3 directly from the command line? Motivation: I'm loosely following an online tutorial where the author links to the following URL: s3://bml-data/churn-bigml-80.csv It is a simple csv file, but I can't open it using my web browser, or with curl . The tutorial opens it with BigML, but I want to download the data for myself. Some googling tells me that there are a number of python and Scala libraries designed for S3 access

Postgres - FATAL: database files are incompatible with server

无人久伴 提交于 2019-12-13 11:32:51
问题 After restarting my MacBook Pro I am unable to start the database server: 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"? I checked the logs and the following line appears over and over again: FATAL: database files are incompatible with server DETAIL: The data directory was initialized by PostgreSQL version 9.2, which is not compatible with this version 9.0.4. 9.0.4 was the version that

Install Ubuntu equivalent libraries in Macos e.g libssl-dev

耗尽温柔 提交于 2019-12-13 09:52:06
问题 I would like to install ubuntu libraries listed below in macos. Please does anyone know what the equivalent commands in macos terminal are? I have searched homebrew already and they don't exist there. apt-get install -y build-essential libssl-dev libnet-ssleay-perl libcrypt-ssleay-perl libidn11-dev Any pointers in the right direction will be highly appreciated. 回答1: There’s no equivalent to build-essential on macOS because those basic tools are already installed. libssl-dev is OpenSSL: brew

OSX Yosemite - invalid characters in path

拥有回忆 提交于 2019-12-13 08:25:06
问题 I'm having trouble installing Homebrew, and it looks like the problem (invalid byte sequence in UTF-8 (ArgumentError) error message) is due to a fault in my PATH. when I run echo $PATH, I get the following (be sure to scroll to the far right in the code block below to see the fault): /usr/local/mysql/bin:/opt/subversion/bin/:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:PATH=/usr/local/share/python:$PATH:PATH=/usr/local/share/npm/bin:$PATH:export PATH��:/usr/local/git/bin I