homebrew

Link errors using Homebrew's Boost::Log in OSX El Capitan

六眼飞鱼酱① 提交于 2021-02-20 04:39:11
问题 OSX 10.11.3 (El Capitan) I'm getting link errors while building the first example from the Boost::Log tutorial. #include <boost/log/trivial.hpp> int main(int, char*[]) { BOOST_LOG_TRIVIAL(trace) << "A trace severity message"; BOOST_LOG_TRIVIAL(debug) << "A debug severity message"; BOOST_LOG_TRIVIAL(info) << "An informational severity message"; BOOST_LOG_TRIVIAL(warning) << "A warning severity message"; BOOST_LOG_TRIVIAL(error) << "An error severity message"; BOOST_LOG_TRIVIAL(fatal) << "A

【MAC】 安装homebrew

久未见 提交于 2021-02-18 08:05:37
安装 homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 安装指定的软件包(以 wget 为例) $ brew install wget 删除指定的软件包(以 wget 为例) $ brew uninstall wget 列出当前安装的软件 $ brew list 查询相关软件的信息(日期、出处、依赖库、安装时) $ brew info wgeteagledembp:~ eagle$ brew info wget wget: stable 1.19.5 (bottled), HEAD Internet file retriever https://www.gnu.org/software/wget/ /usr/local/Cellar/wget/1.19.5 (50 files, 3.7MB) * Poured from bottle on 2018-09-07 at 17:07:02 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/wget.rb ==> Dependencies Build: pkg-config ✘

Easy Way to have Homebrew list all package dependencies

↘锁芯ラ 提交于 2021-02-17 07:28:32
问题 Is there anyway to have the command brew show all the installed or optional dependencies for any given package? It would also be helpful to see which of the install packages are themselves the dependencies of others packages. 回答1: You can use info command like. brew info ffmpeg It will show you information and dependencies of formula. Also, it shows if this package installed by a tick after name of it. 回答2: brew deps --tree --installed Thanks to rob-kovacs for suggesting the --tree addition

Mac下搭建react native开发环境

流过昼夜 提交于 2021-02-16 17:52:41
安装必需软件 Homebrew Homebrew , Mac系统的包管理器,用于安装NodeJS和一些其他必需的工具软件。 /usr/bin /ruby -e "$(curl -fsSL https:/ /raw.githubusercontent.com/Homebrew /install/master /install)" homebrew在安装软件时可能会碰到 /usr/local 目录不可写的权限问题。可以使用下面的命令修复: sudo chown -R `whoami` /usr/ local Node 使用Homebrew来安装 Node.js . brew install node 注意有坑:查看安装的node是否最新版本,默认安装的不是最新版本(我以为默认给我了最新(v8.00),其实默认只给我安装了v4.0.0,v4.0.0不支持ES6,当下面用react-native init <Project> 时会报语法错误 解决方法: 1、安装完node后使用命令查看当前版本 node -v 2、然后查看最新版本 npm info node 3、升级node 清除node.js的cache: sudo npm cache clean -f 安装n工具,n是专门是管理node.js版本的 sudo npm install -g n 安装最新node版本 sudo n

从零开始完整学习全基因组测序数据分析: Trimmomatic、SOAPnuke、sickle和seqtk的比较

流过昼夜 提交于 2021-02-13 06:40:16
在第4节开始之前,先来一段插曲。在上一节中,我们说到可以使用Trimmomatic、sickle、seqtk或者SOAPnuke对fastq数据进行过滤。那么也许你会好奇,那他们都有什么特点,都一样好吗或是有哪些差异之处?正所谓,工欲善其事必先利其器,所以这篇文章将会与你一起来解开这几个问题。 因为Trimmomatic的安装已经在 第3节 数据质控 中说的比较清楚了,这里就不再赘述。那么, 先说SOAPnuke的安装,你有两种方式: 第一,确保你的系统中有automake。由于SOAPnuke还使用了多个第三方的c++ 程序库,包括 但不限于 : boost,log4cplus和openssl。因此,需要在你的系统中先安装好这几个库,并修改SOAPnuke代码包的CMakeLists.txt,重新指定里面这几个程序包的路径。同时还需要把上述包的include目录链接到CMakeList.txt中指定的目录(或者你也可以修改到其他目录)下。此外,如果上述三个包的静态库没在默认路径下,那么。。。你还得找到它们,然后修改路径,并涉及到少量代码的修改,再进行编译,然后祈祷。。。至于第三方程序库的安装方法都可以在网上找到。但特别指出一点,建议使用源码安装(特别是log4cplus),防止有些包默认不产生静态链接库。另外,版本不对也会报各种error,包括编译器的error

Set target java version when build OpenCV with brew

删除回忆录丶 提交于 2021-02-11 17:27:27
问题 I'm using brew to build OpenCV with java support following this tutorial. After built successful I got the error class file has wrong version 57.0, should be 52.0 when using. I'm using OpenJDK 8, how can I target the build to this version. Thank you. 回答1: Found the answer, put the extra -DOPENCV_JAVA_TARGET_VERSION=1.8 args to cmake in brew formula. 来源: https://stackoverflow.com/questions/62115757/set-target-java-version-when-build-opencv-with-brew

Is there a special meaning of the / (slash) in the name of the brew? Or is it just a slash as a string?

你离开我真会死。 提交于 2021-02-11 13:32:57
问题 https://sass-lang.com/install suggests the following installation method: If you use the Homebrew package manager for Mac OS X or Linux, you can install Dart Sass by running brew install sass/sass/sass Is there any special meaning to the / ? Or is it simply a string of characters? 回答1: The slashes have meaning, they separate the name into three parts. See for example https://docs.brew.sh/Taps: If you need a formula to be installed from a particular tap, you can use fully qualified names to

MongoDB-Community not starting on Mac and giving errors

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 06:34:20
问题 I am writing to inform that i had installed mongodb-community some time back using brew (High Sierra) and it was running. Then recently i upgraded and it doesn't seem to wire up. When i am running mongo in terminal, I am getting error: MongoDB shell version v4.4.0 connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by

How are python version 2 and version 3 organized ? I have trouble after brew uninstall python@, I want to reinstate/repair

时光总嘲笑我的痴心妄想 提交于 2021-02-11 04:29:35
问题 I did on my mac big sur: brew uninstall python@2 and then, I tried to check the version of python I have % pwd /Library/Frameworks/Python.framework/Versions % ls -al total 0 drwxrwxr-x 6 root wheel 192 Jan 11 14:18 . drwxr-xr-x 6 root wheel 192 Jan 11 14:18 .. drwxrwxr-x 10 root admin 320 Nov 8 2017 3.6 drwxrwxr-x 10 root admin 320 Jan 2 18:24 3.8 drwxrwxr-x 11 root admin 352 Jan 11 14:18 3.9 lrwxr-xr-x 1 root wheel 3 Jan 11 14:18 Current -> 3.9 % python -V Python 2.7.16 % python3 -V Python 3

brew install open-mpi fails

别来无恙 提交于 2021-02-10 23:14:54
问题 Trying to install openmpi , read that: Could not determine if REAL*16 bit-matches C type Ran brew doctor, and it's giving me: Your system is raring to brew full output % brew install open-mpi ==> Downloading http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6. Already downloaded: /Library/Caches/Homebrew/open-mpi-1.6.4.tar.bz2 ==> Using Homebrew-provided fortran compiler. This may be changed by setting the FC environment variable. ==> ./configure --prefix=/usr/local/Cellar/open