
mac
农民小飞侠
如果放弃了,那还谈什么理想
展开
-
Mac no library called “libcairo-2“ was found
【代码】Mac no library called “libcairo-2“ was found。原创 2024-05-01 20:50:24 · 1076 阅读 · 3 评论 -
Mac安装dlib
今天尝试了一下在mac上安装dlib的过程:brew install cmakepip install boost把这两个安装完以后,再安装dlib:pip install dlib安装部分日志如下: Stored in directory: /Users/wugaosheng/Library/Caches/pip/wheels/9e/ae/0b/df27975f0f616740b618f40c644067956e5413429acb6ae48e Removing source in原创 2021-09-15 20:41:54 · 1058 阅读 · 1 评论 -
Mac visual studio code ssh connection timed out
今天在使用visual studio code的remote SSH的时候,发现连接ssh超时了解决方法不要问我为啥,我也不知道。但是这些设置完了之后确实能够登录了。参考文献why ssh connection timed out in vscode?原创 2021-08-19 23:58:09 · 1575 阅读 · 0 评论 -
Mac Support for password authentication was removed on August 13, 2021.
今天在github提交代码的时候,出现了下面的错误,我的电脑是macremote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.解决方法去自己的github setting页面,找到 Developer settings,点击,然后选择,Personal access tokens,点击generate new token来原创 2021-08-16 13:28:05 · 767 阅读 · 0 评论 -
visual studio code (Error: Handler already set!)
今天用visual studio code的remote SSH远程连接的时候,出现了下面的问题:(Error: Handler already set!)解决方法cd /Users/your_name/Library/Application Support/Code/User/workspaceStorage把这个文件夹里面的缓存全部删掉rm -rf .参考文献Remote SSH connection failed. ...原创 2021-07-08 00:31:30 · 792 阅读 · 0 评论 -
mac fatal: unable to access Failed to connect to github.
今天在使用git pull的时候出现了下面的错误:➜ bert_img git:(main) ✗ git pullfatal: unable to access 'https://github.com/w5688414/paddleImage.git/': Failed to connect to github.com port 443: Operation timed out解决方法git config --global --unset http.proxy参考文献问题:Failed t原创 2021-05-31 19:59:49 · 1374 阅读 · 1 评论 -
fatal: unable to access ‘https://github.com/ohmyzsh/ohmyzsh.git/‘:
今天发现ohmyzsh更新失败了,我特地找了一下原因,下面是更新失败的日志:[oh-my-zsh] Would you like to update? [Y/n] YUpdating Oh My Zshfatal: unable to access 'https://github.com/ohmyzsh/ohmyzsh.git/': Failed to connect to github.com port 443: Operation timed outThere was an error upda原创 2021-03-30 11:25:25 · 12437 阅读 · 3 评论 -
mac [oh-my-zsh] Insecure completion-dependent directories detected
今天装完zsh和autosuggestions之后,出现了下面的问题:[oh-my-zsh] Insecure completion-dependent directories detected:drwxrwxrwx 7 wugaosheng admin 224 1 20 14:34 /usr/local/share/zshdrwxrwxrwx 4 wugaosheng admin 128 1 18 10:50 /usr/local/share/zsh/site-functions原创 2021-01-20 23:47:13 · 379 阅读 · 0 评论 -
mac homebrew Failed to connect to raw.githubusercontent.com port 443: Connection refused
今天在mac上安装homebrew的时候出现了下面的错误:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方法sudo vim /etc/hosts# Git...原创 2021-01-18 10:24:50 · 228 阅读 · 0 评论 -
mac homebrew修改为国内的阿里源和中科院镜像
最近发现homebrew下载东西超级的慢,发现阿里的源很快,我这里分享一下我的修改过程:# 替换brew.git:cd "$(brew --repo)"git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git# 替换homebrew-core.git:cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin原创 2020-07-28 00:13:57 · 1646 阅读 · 0 评论 -
Android aapt 在 Mac 上的使用
最近需要用到android sdk的aapt来解析apk包,这里我分享一下我的使用过程,首先配置aapt的环境变量:AAPT_HOME=/Users/admin/Library/Android/sdk/build-tools/29.0.3export AAPT_HOMEexport PATH=$PATH:$AAPT_HOME把这几行加入到~/.zshrc中去,然后测试,重新打开一个t...原创 2020-05-04 10:24:45 · 1180 阅读 · 0 评论 -
打不开“NoxAppPlayer”,因为 Apple 无法检查其是否包含恶意软件。
今天在mac上安装mac程序启动的时候出现了下面的错误:打不开“NoxAppPlayer”,因为 Apple 无法检查其是否包含恶意软件。解决方法终端输入:sudo spctl --master-disable然后重新打开就可以了。参考文献[1].无法打开“KextBeast”,因为Apple无法检查其是否包含恶意软件。”的问题解决;https://www....原创 2020-03-28 11:55:29 · 3118 阅读 · 2 评论 -
mac python3 利用mitmproxy抓取安卓手机流量包
最近试了一下利用mitmproxy来抓取安卓手机流量,用于分析。前面使用过Charles,但是是图形化界面的,不方便把数据存下来,mitmproxy支持python编程,容易把数据存放起来,所以这里分享一下使用方法。安装首先下载网易mumu模拟器,用于android手机模拟,这是因为真机有诸多的限制,所以用模拟器方便一点,下载链接为:http://mumu.163.com/ 然后需要安...原创 2020-03-21 20:04:13 · 1149 阅读 · 0 评论 -
mac安装warpctc-pytorch
最近在做语音识别项目的训练,发现需要安装pytorch版本的ctc,这个包需要编译,这里我来分享一下我的安装过程:git clone https://github.com/SeanNaren/warp-ctc.gitcd warp-ctcmkdir build; cd buildcmake ..你可能会遇见下面的错误:zsh: command not found: cmake...原创 2020-03-09 17:00:28 · 953 阅读 · 1 评论 -
mac 安装ctcdecode
今天在mac上安装ctcdecode的时候碰到了很多问题,这里分享一下我的安装过程:git clone --recursive https://github.com/parlance/ctcdecode.gitcd ctcdecodepip install wgetpip install .可能会报错:(base) ➜ ctcdecode git:(master) pip ...原创 2020-02-26 11:40:19 · 1636 阅读 · 3 评论 -
mac安装pocketsphinx-python出现错误
今天我在mac上安装pocketsphinx的时候,出现了下面的错误:....deps/sphinxbase/src/libsphinxad/ad_openal.c:43:10: fatal error: 'al.h' file not found #include <al.h>解决方法最后查资料发现,mac上需要通过源代码安装:git clone --r...原创 2020-02-25 18:53:01 · 1596 阅读 · 1 评论 -
mac 安装webrtcvad出现了gcc的问题
今天使用下面的命令安装webrtcvad的时候出现了下面的问题,命令为:pip install webrtcvad错误信息为:(base) ➜ ~ pip install webrtcvadLooking in indexes: http://mirrors.aliyun.com/pypi/simple/Collecting webrtcvad Downloading h...原创 2020-02-03 17:49:21 · 1970 阅读 · 0 评论 -
mac制作ubuntu 18.04 U盘启动盘
最近由于需要安装ubuntu系统,手头上没有windows电脑,我这里分享一下在mac上免费的制作Ubuntu U盘启动盘的操作:首先插入U盘到mac上diskutil list/dev/disk0 (internal, physical): #: TYPE NAME SIZE ID...原创 2020-01-19 09:57:41 · 6960 阅读 · 1 评论 -
mac sox安装
sox的mac安装非常简单,但是百度上居然没搜到,这里弥补一下空缺,首先安装homebrew:ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null然后,安装sox:brew install sox...原创 2020-01-07 16:39:12 · 3348 阅读 · 0 评论 -
mac安装mysql 8.0版本
mysql8.0既可以用homebrew安装,也可以自己下载安装包安装,这里介绍第二种方法。mysql的下载地址为:https://dev.mysql.com/downloads/file/?id=490317选择里面的:https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.18-macos10.14-x86_64.dmg下载速...原创 2019-12-22 23:24:39 · 585 阅读 · 0 评论 -
mac 2059 - Authentication plugin 'caching_sha2_password' cannot be loaded:
今天在用navicat连接mysql 8.0的时候出现了下面的错误:2059 - Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(../Frameworks/caching_sha2_password.so, 2): image not found解决方法终端登陆mysql,然后...原创 2019-12-22 22:57:42 · 650 阅读 · 0 评论 -
mac ERROR! The server quit without updating PID file
今天在启动mac上的mysql的时候,出现了下面的错误:Starting MySQL.Logging to '/usr/local/var/mysql/WuMacBook-Pro.local.err'. ERROR! The server quit without updating PID file (/usr/local/var/mysql/WuMacBook-Pro.local.pi...原创 2019-11-10 21:59:51 · 2657 阅读 · 2 评论 -
mac 测试colc的时候Can't locate Moo/Role.pm in @INC (you may need to install the Moo::Role module)
今天在mac上测试colc的时候,出现了下面的问题:Can't locate Moo/Role.pm in @INC (you may need to install the Moo::Role module) (@INC contains: /usr/local/Cellar/cloc/1.84/libexec/lib/perl5/darwin-thread-multi-2level /u...原创 2019-11-03 21:25:37 · 2759 阅读 · 0 评论 -
mac安装redis-cli
今天在mac上安装redis-cli,在百度上搜的时候,发现教程很少,这里弥补一下空缺,需要用到homebrew,接下来就是优雅的安装方式了。brew tap ringohub/redis-clibrew update && brew doctorbrew install redis-cli参考文献[1].Mac(os x): Is there a way ...原创 2019-10-22 23:18:25 · 13609 阅读 · 0 评论 -
mac 用homebrew安装mysql,然后用navicat premium连接mysql
感想最近在做一个项目的demo,需要用到数据库,然后我这里把我的安装实战过程记录下来,方便后面进行知识梳理基本安装首先要安装homebrew,这里不是重点,这里默认大家都已经安装。brew install mysqlmysql.server startmysql -uroot然后上面的就是最基本的安装过程,然后我们可以就可以匿名登陆,不用输入密码了。创建带密码的账户和...原创 2018-12-03 11:06:01 · 1508 阅读 · 0 评论 -
mac insufficient permission for adding an object to repository
今天在使用git pull的时候出现了下面的错误:remote: Enumerating objects: 15, done.remote: Counting objects: 100% (15/15), done.remote: Compressing objects: 100% (3/3), done.remote: Total 9 (delta 6), reused 9 (del...原创 2019-03-12 23:41:58 · 454 阅读 · 0 评论 -
Mac Homebrew安装JDK8
安装最新版JDKbrew cask install adoptopenjdk安装某个特定版本的jdk:brew tap AdoptOpenJDK/openjdkbrew cask install adoptopenjdk8brew cask install adoptopenjdk9参考文献[1].How can I install java openjdk 8 on ...原创 2019-06-29 11:30:00 · 24655 阅读 · 2 评论 -
mac 用brew安装node.js 指定版本
今天在运行yarn来安装node.js的时候,发现安装了最新的12版本,但是因为项目的原因,我需要node.js版本为8.0版本。我的安装命令为: brew install yarn解决方法npm install -g nsudo n 8.16.0就行了。我的版本为:localhost:~ admin$ sudo n 8.16.0Password: ins...原创 2019-07-18 23:02:31 · 5028 阅读 · 0 评论 -
mac Mojave (10.14) python3 安装lightgbm
今天成功安装了lightgbm,这里分享一下安装的经历首先安装:brew install cmakebrew install libomp然后获取lightgbm源代码:git clone --recursive https://github.com/microsoft/LightGBMcd LightGBMmkdir buildcd build编译:cmake ...原创 2019-08-09 10:33:17 · 631 阅读 · 0 评论 -
macos LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
今天在提交git的时候出现了下面的错误:LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443然后我尝试git clone其他的仓库,也是报这个错误。后面查了一下说是使用了代理,但是别人的给的方案比如重启和reset命令都不起作用。最后发现了一个解决方法:vim ~/.gitconfig...原创 2019-08-20 08:49:08 · 50612 阅读 · 40 评论 -
ModuleNotFoundError: No module named 'AppKit'
我的环境是python3, mac系统今天在跑程序的时候,出现了下面的错误:ModuleNotFoundError: No module named 'AppKit'解决方法pip3 install pyobjc参考文献[1].Import Error: No module named AppKit.https://stackoverflow.com/question...原创 2019-09-11 10:53:45 · 3361 阅读 · 1 评论 -
mac OSError: [Errno 30] Read-only file system: 'complete_data.txt'
我今天把移动硬盘插在mac电脑里面,然后想直接运行Mac电脑的python程序,然后出现了下述错误:mac OSError: [Errno 30] Read-only file system: 'complete_data.txt'然后,我下载Mounty for NTFS之后,安装后,重新把移动硬盘插入mac电脑上,中间会弹出一个提示,选择赋予read write操作就行啦。是不是很简单原创 2018-02-03 19:00:30 · 9938 阅读 · 0 评论