homebrew

Creating a Homebrew formula for standalone application

佐手、 提交于 2019-12-11 09:05:48
问题 I'm trying to create a homebrew formula for an application that doesn't need to be compiled. I've tried looking through the formula cookbook, but I'm missing something to make things properly work. Below is my use-case with more generic filenames. Inside the container is two files: one is the script for the application, the other being a file for man pages. We'll use the following filenames to keep things generic: myapp.py (executable script) resource.txt (a resource file that the script

Trying to install Homebrew: miscellaneous errors returned

守給你的承諾、 提交于 2019-12-11 08:54:37
问题 My platform is OSX 10.7.5. Ruby version is ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin11.4.2] I am attempting to install Homebrew — to no avail. Here is what I tried so far from the Terminal: 1) Command copied from http://brew.sh/ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" This brings up the message -e:192: syntax error, unexpected '.', expecting $end .map { |d| File.join(HOMEBREW_PREFIX, d) } ^ 2) From SO Error when

Homebrew - What's the difference between `python@3` and `python3`?

一世执手 提交于 2019-12-11 06:53:38
问题 I have python 2.7.14 installed via homebrew, and I'd like to install the latest version of python 3 via homebrew as well. When I search for "python3" I see the following results. $ brew search python3 ==> Formulae boost-python3 python3 python@3 If you meant "python3" specifically: It was migrated from homebrew/cask to homebrew/core. Why is there both python@3 and python3 ? What's the difference? 回答1: Right now, there are only two distinct Formula for Python in homebrew-core: python, and

MacOS High Sierra 10.13.6, python3.7 installation Install Certificate.command results in SSLError

☆樱花仙子☆ 提交于 2019-12-11 06:02:28
问题 After installing python 3.7 from python.org, running the Install Certificate.command resulted in the below error. Please, can you provide some guidance? Why does Install Certificate.command result in error? [Some background] Tried to install python via anaconda, brew and python.org, even installing version 3.6.6, hoping I could get one of them to work. Each installation resulted in ssl certification errors when I tried to install a package. See further below for example error from current

Mountain Lion: Can't connect to local MySQL server through socket '/tmp/mysql.sock'

随声附和 提交于 2019-12-11 05:53:14
问题 I installed mysql via homebrew. I ran the two commands brew suggests: unset TMPDIR mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp When I tried to run the mysql_secure_installation script, I receive this error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) A separate thread led me to believe it had to do with permissions: connect to local MySQL server through socket I ran

Mac 下 Nginx、PHP、MySQL 和 PHP-fpm 的安装和配置

混江龙づ霸主 提交于 2019-12-11 05:50:11
首先先装一个交 homebrew 一个类似于npm 的包管理器 可以用来安装 nginx 和MySQL 安装命令 brew install 软件名 就好了 可能你在安装过程中 你会遇到各种各样的问题 祝你好运吧。我搞了好久,不断的查资料。 1. 安装 Mac 的包管理器 - homebrew / usr / bin / ruby - e " $ ( curl - fsSL https: / / raw . githubusercontent . com / Homebrew / install / master / install ) " 如果出现安装不成功,首先检查一下是不是自己网有问题如果网没问题,但是就是打不开。那就只能手动安装 去github 把这个仓库的文件夹全部下载下来。 Homebrew的安装建议直接在官方Git下载后手动安装: 1、下载Homebrew Git上所有文件 https://github.com/Homebrew/brew 2、把Homebrew文件夹中的文件复制到/usr/local/目录下,如果没有的文件夹请自行创建。 3 怎么检测自己的homebrew 是不是安装好了直接 在终端 输入 brew -v 就好了 brew 常用命令 安装软件:brew install 软件名,例:brew install wget 搜索软件:brew search

Postgres - could not connect to server after trying rake db:create:all

孤街醉人 提交于 2019-12-11 05:46:17
问题 I'm trying to get Postgres up and running on OS X Lion - homebrew - rvm. http://railscasts.com/episodes/342-migrating-to-postgresql After following the above instructions, I ran into the same problem described here: Repairing Postgresql after upgrading to OSX 10.7 Lion Running which psql yieled usr/bin/psql when it should be usr/local/bin/psql Ok, so I modified the path like this (this is all that is in the file): export PATH="/usr/local/bin:$PATH" [[ -s "/Users/chase/.rvm/scripts/rvm" ]] &&

osx - C++14 compiler not detected, multiple versions of gcc when compiling graph-tool in anaconda

不羁岁月 提交于 2019-12-11 05:35:24
问题 My ultimate goal is to get python package graph_tool working on my system and also on ipynb if possible. I have already brew install graph-tool , as indicated here, but that's still insufficient. So I follow conda instructions here, and I make decent progress, until I encounter a compiler issue with the configuration. $ conda create -n py36env python=3.6.3 anaconda (py36env) $ conda install -c conda-forge cgal ... and so forth with the other required libraries (py36env) Tams-MacBook-Pro:graph

Libraries missing for ruby-2.2.4

为君一笑 提交于 2019-12-11 05:34:34
问题 I am trying to recompile my ruby because pry stopped working. This is the error I'm getting. Sorry, you can't use Pry without Readline or a compatible library. I did brew update rvm get head rvm cleanup all rvm reinstall ruby-2.2.4 But I'm still getting errors during the installation and can not get pry working. Libraries missing for ruby-2.2.4: /Users/travis/.rvm/rubies/ruby-2.2.4/lib/libruby.2.2.0.dylib. Refer to your system manual for installing libraries and Error running '__rvm_patch -F

Why are my Snort logs empty?

梦想的初衷 提交于 2019-12-11 05:15:53
问题 I am running macOS Sierra 10.12.3 $ sw_vers ProductName: Mac OS X ProductVersion: 10.12.3 BuildVersion: 16D32 I have installed snort using homebrew $ brew install snort $ brew ls --versions snort snort 2.9.9.0 I am running snort and with a user config file, -s syslog switch, and a tcpdump-file $ sudo snort -c /etc/snort/snort.conf -s -r tcpdump.pcap my /etc/snort/snort.conf file has the following output settings: output alert_syslog: LOG_AUTH LOG_ALERT When I execute,a blank file gets created