homebrew

How to manually download brew package for installation?

大兔子大兔子 提交于 2021-01-03 05:53:43
问题 Being in China means sometimes you just can't upgrade brew packages via brew upgrade it would run into error as such: curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443 Error: An exception occurred within a child process: DownloadError: Failed to download resource "heroku" Download failed: https://cli-assets.heroku.com/heroku-v7.18.10/heroku-v7.18.10.tar.xz I used to download these failed packages to ~/Library/Caches/Homebrew and then run the command

How to run java from macOS Catalina build 10.15.4?

旧街凉风 提交于 2020-12-30 07:33:45
问题 I just upgraded my macOS Catalina from 10.15.3 -> 10.15.4 and I cannot run java in IntelliJ anymore. I managed to get it working from Terminal by applying caveats from brew : ➜ ~ brew reinstall java ==> Reinstalling openjdk ==> Downloading https://homebrew.bintray.com/bottles/openjdk-13.0.2+8_2.catalina.bottle.tar.gz Already downloaded: /Users/jactor/Library/Caches/Homebrew/downloads/0dd8815aa4758e78a47b642bf541e2ada54d5067a8742b33b309989b77d0741b--openjdk-13.0.2+8_2.catalina.bottle.tar.gz ==

brew install fails: curl(77) error setting certificate verify

☆樱花仙子☆ 提交于 2020-12-30 06:24:22
问题 ok, so im running an old Mac 10.6.8 with homebrew. brew doctor reports no errors and i have tried brew prune update etc. Everytime i try to install a package, i get this error: curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /usr/local/etc/openssl/certs ive tried everything, openssl is installed, but the folder mentioned /usr/local/etc/openssl/certs as well as /etc/ssl/certs/ca-certificates.crt is not there. can anyone save me? Full

How to check if Python3 was built with '--enable-shared'?

六月ゝ 毕业季﹏ 提交于 2020-12-29 13:15:16
问题 Environment: Mac OS X 10.8.5 Apache 2.2.26 Homebrew Python 3.3.3 Problem: I am trying to install mod_wsgi but first need to determine if Python was configured and compiled with the '--enable-shared' option. Questions: How can I determine if Homebrew installed Python with the '--enable-shared' option? If it was not installed, what is the correct way to install it? Thank you! 回答1: From the python repl: import sysconfig sysconfig.get_config_vars('Py_ENABLE_SHARED') 来源: https://stackoverflow.com

How to check if Python3 was built with '--enable-shared'?

人盡茶涼 提交于 2020-12-29 13:13:22
问题 Environment: Mac OS X 10.8.5 Apache 2.2.26 Homebrew Python 3.3.3 Problem: I am trying to install mod_wsgi but first need to determine if Python was configured and compiled with the '--enable-shared' option. Questions: How can I determine if Homebrew installed Python with the '--enable-shared' option? If it was not installed, what is the correct way to install it? Thank you! 回答1: From the python repl: import sysconfig sysconfig.get_config_vars('Py_ENABLE_SHARED') 来源: https://stackoverflow.com

How to set up Anaconda so that it doesn't affect other environments like 'homebrew python pip' and Pyenv on MacOS?

不打扰是莪最后的温柔 提交于 2020-12-29 06:58:49
问题 It is well known that Anaconda installation on macOS can cause trouble with other widely used package/environment managers like Homebrew, Pyenv, Virtualenv, etc. The majority of the solutions I've found are 'Anaconda-centric', i.e. using Anaconda as the main python manager and setup conda env for homebrew etc. However, I am looking for a solution that's kind of 'Homebrew-centric', and setup Anaconda as a compliment. Anaconda should be set up in a way that when ever conda is used, it will work

Switch of php versions not working on mac

大憨熊 提交于 2020-12-25 04:47:09
问题 I have High Sierra installed and it comes with php 7.1. During the environment I ended up being able to upgrade to php7.2 but wasn't able to document it, so I dont exactly know what I did. Now, I am trying to switch to php 7.3 Using brew, I ran the following commands: brew unlink php@7.2 brew services install php@7.3 brew link php@7.3 If I restart my terminal and check for the php version: php -v I still see 7.2.25 version and not 7.3 as I desire I also tried with a node package that I found

mybatis连接MySQL乱码

我怕爱的太早我们不能终老 提交于 2020-12-18 02:42:40
首先我想说这个问题.对于我来说坑了一下午 首先问题就是我用mybatispuls 连接mysql 第一步 jdbc:mysql: // localhost:3306/11e?useUnicode=true&characterEncoding=UTF-8 先把连接改了.设置utf-8 ,但是发现问题并没有解决 第二步. 然后我在是不是没有没有配置my.cnf 查找MySQL用到的my.cnf ps aux|grep mysql|grep ' my.cnf ' 发现没有找到. mysql --help |grep ' my.cnf ' 使用这个命令发现有 在etc/下创建 my.cnf # Default Homebrew MySQL server config [mysqld] # Only allow connections from localhost bind -address = 127.0 . 0.1 default -character- set = utf8 [mysqld] character - set -server= utf8 init_connect = ’SET NAMES utf8’ [client] default -character- set =utf8mb4 mysql: [Warning] World-writable config file '

Brew Install Httpd: Welcome to Nginx?

五迷三道 提交于 2020-12-15 05:29:56
问题 I'm trying to install the brew package httpd (apache). I'm so confused. Every time I do and navigate to http://localhost:8080 I get a big welcome screen that says "Welcome to Nginx." I don't understand. Am I running nginx and not apache? How could that be? I'm on macOS 10.15.6. I'm running pretty basic commands... brew install openldap libiconv sudo apachectl stop sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null brew install httpd sudo brew services

Brew Install Httpd: Welcome to Nginx?

回眸只為那壹抹淺笑 提交于 2020-12-15 05:29:08
问题 I'm trying to install the brew package httpd (apache). I'm so confused. Every time I do and navigate to http://localhost:8080 I get a big welcome screen that says "Welcome to Nginx." I don't understand. Am I running nginx and not apache? How could that be? I'm on macOS 10.15.6. I'm running pretty basic commands... brew install openldap libiconv sudo apachectl stop sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null brew install httpd sudo brew services