homebrew

opencv for python on mavericks

▼魔方 西西 提交于 2019-12-19 04:20:34
问题 I know its too soon, but ive upgraded to OSX mavericks and I'm unable to install opencv using Homebrew. ==> Installing dependencies for opencv: cmake, pkg-config, libpng ==> Installing opencv dependency: cmake ==> Downloading http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz ######################################################################## 100.0% ==> ./bootstrap --prefix=/usr/local/Cellar/cmake/2.8.12 --system-libs --no-system-libarchive --datadir=/shar ==> make ==> make install

MacOS安装Homebrew,Homebrew修改镜像

旧街凉风 提交于 2019-12-19 02:19:57
下载安装脚本 cd ~ curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install 编辑修改脚本 BREW_REPO = "git://mirrors.ustc.edu.cn/brew.git".freeze #修改后 CORE_TAP_REPO = "git://mirrors.ustc.edu.cn/homebrew-core.git".freeze #新增 修改成中科院的镜像 git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1 执行安装脚本 ruby brew_install 更换brew源 #替换homebrew默认源 cd "$(brew --repo)" git remote set-url origin git://mirrors.ustc.edu.cn/brew.git #替换homebrew-core源 cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url

Warning: node-5.0.0 already installed, it's just not linked

≡放荡痞女 提交于 2019-12-18 20:08:06
问题 I am trying to install node js. I am getting the following error . Any idea? brew install node Warning: node-5.0.0 already installed, it's just not linked Thanks 回答1: You should be able to run: brew link node What you're doing is telling Brew to create a symlink for the node executable to the /usr/bin (or /usr/local/bin) directory, as far as I am aware. 回答2: For this issue run brew link homebrew/versions/node<version no> To know why, you can surf here. 回答3: You can run the below command to

rbenv installed ruby 2.1.2 cannot load such file — zlib on MAC OSX 10.9.2

此生再无相见时 提交于 2019-12-18 17:57:11
问题 I'm install ruby 2.1.2 via rbenv, and rbenv is installed by homebrew on my MAC OSX 10.9.2, ruby global is successful set to 2.1.2, but when i try to run gem install, get some errors below. MacBook-Pro:~ user1$ gem install bundler ERROR: Loading command: install (LoadError) cannot load such file -- zlib ERROR: While executing gem ... (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass How to solve it, does anyone faced same problems before? 回答1: You need to install the

Need help installing lxml on os x 10.7

…衆ロ難τιáo~ 提交于 2019-12-18 17:29:30
问题 I have been struggling to be able to do from lxml import etree ( import lxml works fine by the way) The error is: ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site- packages/lxml/etree.so, 2): Symbol not found: _htmlParseChunk Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lxml/etree.so Expected in: flat namespace in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lxml/etree.so

homebrew 使用心得

风流意气都作罢 提交于 2019-12-18 15:57:25
''' 安装anaconda 安装命令: brew search anaconda brew cask install anaconda 添加环境变量: vi ~/.bash_profile export PATH="usr/local/anaconda3/bin:$PATH" 刷新环境变量: source ~/.bash_profile 试用: conda list 后续: conda upgrade anaconda conda upgrade anaconda-navigator anaconda-navigator --reset conda upgrade anaconda-client conda upgrade -f anaconda-client 更改源请看USTC镜像站的帮助页面 查看环境变量: echo $PATH 编辑环境变量: sudo vi /etc/paths 替换bash为zsh 安装iterm2:brew search iterm2 brew cask install iterm2 安装git: brew search git brew install git 更换默认终端: chsh -s /bin/zsh(bash) 安装oh my zsh: sh -c "$(curl -fsSL https://raw.githubusercontent

Authentication plugin error while connecting to MySQL database

淺唱寂寞╮ 提交于 2019-12-18 13:32:16
问题 I am working on macOS ver 10.13.5 - the newest one actually. I usually work with Laravel projects (5.6), and so I am using brew services isntaller to make local enviroment working. I am using PHP v 7.1.16, MySQL 8.0.11 and Valet in v. 2.0.12 PHP and MySQL installed through Brew . I've been working without any problems for like 3 months in the past, but the day when I had to reinstall my os finally come. After reinstalling macOS with the fresh copy, and installing each service in the same

Installing Gstreamer-1.0 on Mac OS X Mavericks

我们两清 提交于 2019-12-18 13:22:32
问题 I want to install Gstreamer-1.0 on Mac OS X Mavericks. So I already install gstreamer-1.0-1.6.0-x86_64.pkg and gstreamer-1.0-devel-1.6.0-x86_64.pkg from here. After that I tried to run something like this: gst-launch-1.0 fakesrc ! fakesink But got error: -bash: gst-launch-1.0: command not found So how I can install and use Gstreamer-1.0 on Mac OS X Mavericks? 回答1: From https://stackoverflow.com/a/30873313/1162305 Try installing them with the following commands from your terminal: brew install

Where does homebrew install android-sdk?

巧了我就是萌 提交于 2019-12-18 12:50:35
问题 Where does homebrew install the android-sdk when you run the command: brew cask install android-sdk I want to be able to add it to the PATH. 回答1: The installation folder of android-sdk is: /usr/local/Cellar/android-sdk/<VERSION> Therefore, if you want to add it to PATH, you need to add the following line to ~/.bashrc export PATH=$PATH:/usr/local/Cellar/android-sdk/<VERSION>/tools:/usr/local/Cellar/android-sdk/<VERSION>/platform-tools Don't forget to replace <VERSION> with an installed version

Installing MongoDB with Homebrew

你说的曾经没有我的故事 提交于 2019-12-18 12:13:00
问题 I'm relatively new to MongoDB and am trying to install MongoDB on my Mac with Homebrew, but I'm getting the following error: Error: No available formula with the name "mongodb" ==> Searching for a previously deleted formula (in the last month)... Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow Error: No previously deleted formula found. ==> Searching for similarly named formulae... Error: No similarly named formulae