homebrew

missing libgeos_c.so on OSX

我只是一个虾纸丫 提交于 2021-02-06 10:07:02
问题 I am trying to install Postgis in order to use GeoDjango on OSX. For this, I first uninstalled postgres completely, then I installed everything following the GeoDjango documentation: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#homebrew I did the following: brew update brew upgrade brew install postgresql brew install postgis brew install gdal brew install libgeoip When I run my Django project, I get the following error: OSError at / dlopen(/usr/local/lib/libgeos_c.so, 6):

missing libgeos_c.so on OSX

走远了吗. 提交于 2021-02-06 10:03:52
问题 I am trying to install Postgis in order to use GeoDjango on OSX. For this, I first uninstalled postgres completely, then I installed everything following the GeoDjango documentation: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#homebrew I did the following: brew update brew upgrade brew install postgresql brew install postgis brew install gdal brew install libgeoip When I run my Django project, I get the following error: OSError at / dlopen(/usr/local/lib/libgeos_c.so, 6):

Homebrew fails on MacOS Big Sur

南楼画角 提交于 2021-02-06 06:48:28
问题 I upgraded from Mohave to Big Sur and found that homebrew is not working any more. I installed the command line tools using the command xcode-select --install After I run brew list , I get the following error ~ brew list Traceback (most recent call last): 11: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `<main>' 10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `require_relative' 9: from /usr/local/Homebrew/Library/Homebrew/global.rb:37:in `<top (required)>' 8: from /usr

What is the difference between brew install XXX and brew cask install XXX

放肆的年华 提交于 2021-02-05 12:38:29
问题 I'm familiarizing myself with the whole homebrew kit and the documentation is rather poor. What is a cask, Cellar and a tap? 回答1: Homebrew-Cask is an extension to Homebrew to install GUI applications such as Google Chrome or Atom. It started independently but its maintainers now work closely with Homebrew’s core team. Homebrew calls its package definition files “formulae” (British plural for “formula”). Homebrew-Cask calls them “casks”. A cask, just like a formula, is a file written in a Ruby

What is the difference between brew install XXX and brew cask install XXX

主宰稳场 提交于 2021-02-05 12:37:44
问题 I'm familiarizing myself with the whole homebrew kit and the documentation is rather poor. What is a cask, Cellar and a tap? 回答1: Homebrew-Cask is an extension to Homebrew to install GUI applications such as Google Chrome or Atom. It started independently but its maintainers now work closely with Homebrew’s core team. Homebrew calls its package definition files “formulae” (British plural for “formula”). Homebrew-Cask calls them “casks”. A cask, just like a formula, is a file written in a Ruby

iOS Jenkins+蒲公英实现持续集成

泪湿孤枕 提交于 2021-02-05 10:42:03
随着项目的迭代速度不断加快,原始的使用xcode -> product -> archive 的方式已经不能满足迭代需要。还要现在已经有比较成熟的 Jenkins + 蒲公英持续集成方案。最近学习研究学了下这个方案。林林总总,遇到许多坑也学习到很多 。这里把直接把正确的方向分享记录下来 。方便下次再配置环境的时候可以一步到位,直取敌首。 如果从官网下载安装jenkins的apk包,会默认安装的 /Users/Shared/jenkins 目录下。安装在这个目录下我们使用 jenkins账户访问主账户资源的时候会遇到各种权限问题,我遇到的就是:在jenkins配置页面执行shell脚本的时候提示 permission denied,原因可能是jenkins安装在这个目录下无权访问主账户的某些文件 。 个人也尝试了网上大部分的通过命令行修改jenkins用户组的方法,效果并不理想(也可能是我操作方式不对 )。 如果能把jenkins安装在主账户的某个目录下不就是可以解决这个问题了么,从这个角度出发,于是有了下面一种比较好的解决方法 。 通过homebrew安装而不是apk包 。首先你要安装homebrew 。 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

How to tell Homebrew to install inside virtualenv?

天大地大妈咪最大 提交于 2021-02-04 12:27:10
问题 Here's my problem. I can't install MatPlotLib both via pip and from source (Matplotlib installation on Mavericks). I tried brew install matplotlib and the installation successfully ended. However, it installed MatPlotLib globally and not inside the currently activated VirtualEnv. Is it possible to tell brew to install a package inside the current VirtualEnv? 回答1: I help maintain the homebrew-python tap. This is not and will not be supported and there probably isn't an easy way to do it. This

OS X: installed gcc links to clang

假装没事ソ 提交于 2021-02-04 07:27:07
问题 I already have gcc and g++ install: $ which gcc /usr/bin/gcc $ which g++ /usr/bin/g++ $ brew install gcc Warning: gcc-6.2.0 already installed I follow Compile OpenMP programs with gcc compiler on OS X Yosemite to reinstall gcc via HomeBrew: $ brew reinstall gcc --without-multilib then $ /usr/bin/g++ openmp.cpp openmp.cpp:12:10: fatal error: 'omp.h' file not found #include <omp.h> ^ 1 error generated. with -fopenmp $ /usr/bin/g++ openmp.cpp -fopenmp clang: error: unsupported option '-fopenmp'

刷题记录:[DDCTF 2019]homebrew event loop

六眼飞鱼酱① 提交于 2021-02-02 05:03:41
[TOC] 刷题记录:[DDCTF 2019]homebrew event loop 题目复现链接: https://buuoj.cn/challenges 参考链接: DDCTF2019-WRITEUP 知识点 1、逻辑漏洞 def trigger_event(event): session['log'].append(event) if len(session['log']) > 5: session['log'] = session['log'][-5:] if type(event) == type([]): request.event_queue += event else: request.event_queue.append(event) 首先路由异步处理请求,使用了一个队列 def buy_handler(args): num_items = int(args[0]) if num_items <= 0: return 'invalid number({}) of diamonds to buy<br />'.format(args[0]) session['num_items'] += num_items trigger_event(['func:consume_point;{}'.format(num_items), 'action:view;index'])

Ansible 2.10 on MacOS with Python 3

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 18:42:03
问题 What's correct way to install Ansible on MacOS? I'v tried a few ways and none works: brew has only 2.9 installing Python 3 via brew or asdf and using pip to install Ansible - Ansible is not on the path, nor in Lib folder Edit: I've noticed an error, when tryig to manually run ansible script: /usr/local/opt/python@3.9/bin/python3.9: bad interpreter: No such file or directory Looking at the script it tries to use: #!/usr/local/opt/python@3.9/bin/python3.9 which doesn't seem too be a correct