homebrew

Brew install on Mojave

二次信任 提交于 2019-12-17 22:37:47
问题 I did these steps: Updated to Mojave Installed Xcode 10 beta3 Ran this command: sudo xcode-select -switch /Applications/Xcode-beta.app/ Now I'm trying to install node8: brew install node@8 And it gives me this error: Error: The Command Line Tools header package must be installed on Mojave. The installer is located at: /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg Still, doing install -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for

How do i fix brew doctor errors

杀马特。学长 韩版系。学妹 提交于 2019-12-17 22:05:29
问题 I'm very much a newbie when it comes to all this so forgive my incompetence. When I run brew Doctor, I get the following. Can someone help? [/usr/local]$ brew doctor Error: Setting DYLD_LIBRARY_PATH can break dynamic linking. You should probably unset it. Error: Some keg-only formula are linked into the Cellar. Linking a keg-only formula, such as gettext, into the cellar with brew link f will cause other formulae to detect them during the ./configure step. This may cause problems when

Homebrew npm install: could not symlink

a 夏天 提交于 2019-12-17 21:45:23
问题 So I made the mistake of trying to get rid of all sudo dependencies. I downloaded npm as a package from the site and did a manual/global install. But it seemed as if i was always having to run with sudo...so I tried to uninstall and run with homebrew. Now I can't get node or npm to even run...I guess I have to link with brew link them but i'm getting this error: Could not symlink share/doc/node/gdbinit Target /usr/local/share/doc/node/gdbinit already exists. You may want to remove it: rm '

`Sudo pip install matplotlib` fails to find freetype headers. [OS X Mavericks / 10.9] [closed]

↘锁芯ラ 提交于 2019-12-17 21:44:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I already have matplotlib-1.2.1 installed as well as numpy-1.8.0 . Note - I am using system python with homebrew installed - I have $PYTHONPATH set so Python loads from /Library/Python/x.y/site-packages (where pip installs to). Here is the code for installing matplotlib (the configurations) BUILDING MATPLOTLIB

How do you uninstall rbenv on OSX?

社会主义新天地 提交于 2019-12-17 18:25:43
问题 How do you uninstall rbenv on OSX? My version of rbenv is messed up, and brew uninstall rbenv isn't working because brew relies on ruby. 回答1: I took these steps to successfully get rid of rbenv on my mac running El Capitan (10.11.4). Rbenv is a major cause of Failed to build gem native extension errors from my experience. Remove using brew: brew remove rbenv Delete .rbenv directory: rm -rf ~/.rbenv Open .bash_profile file and delete any lines with rbenv in them: vi ~/.bash_profile Open

How to install the Python development headers on Mac OS X?

让人想犯罪 __ 提交于 2019-12-17 18:16:06
问题 For a project using Boost.Python (see this other question) I need the Python development headers containing e.g. pyconfig.h . These are apparently missing from my system. I've installed Python 3 via Homebrew: cls ~ $ brew info python3 python3: stable 3.3.0 http://www.python.org/ Depends on: pkg-config, readline, sqlite, gdbm /usr/local/Cellar/python3/3.2.3 (4420 files, 78M) /usr/local/Cellar/python3/3.3.0 (4843 files, 93M) * https://github.com/mxcl/homebrew/commits/master/Library/Formula

mysql2 gem fails to compile with MySQL 5.6.12 on OS X with Homebrew

*爱你&永不变心* 提交于 2019-12-17 17:48:31
问题 I updated all the packages I installed with Homebrew. MySQL got upgraded to 5.6.12 (from 5.5.27 or so): $ mysql --version mysql Ver 14.14 Distrib 5.6.12, for osx10.8 (x86_64) using EditLine wrapper and now the mysql2 gem doesn't compile anymore: $ gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/pupeno/.rvm/rubies/ruby-1.9.3-p429-perf/bin/ruby extconf.rb checking for rb_thread_blocking

OpenCV Undefined symbols for architecture x86_64: error

安稳与你 提交于 2019-12-17 17:33:42
问题 before this gets flagged as a repeat question please read the end. Thanks for looking. I set up openCV using home-brew. These were the commands I used: brew tap homebrew/science brew install opencv I am using the following simple file I found online to test my set up: // Example showing how to read and write images #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; int main(int argc, char** argv) { // Load an image from file - change this based on your

env: node: No such file or directory in mac

半城伤御伤魂 提交于 2019-12-17 17:32:47
问题 I'm searching it in google on how to show the version of node js or how I'm gonna work with npm? If I do this npm -v even I already install it using brew install node . The result is always env: node: No such file or directory I already do a lot of command to solve for it, but failed. these are the command that I already try: sudo apt-get install nodejs-legacy sudo ln -s /usr/local/bin/node /usr/bin/node brew unlink node brew link node I can't start the task because of this. help me guys.

Cannot connect to mongodb errno:61 Connection refused

狂风中的少年 提交于 2019-12-17 17:23:58
问题 I recently installed mongodb-2.6.0 with Homebrew. After successfully installed, I tried to connect using the mongo command. I am receiving the following errors which do not allow me to connect: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146 exception: connect failed 回答1: It can happen when the mongodb service is not running on the mac. To start it