博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MacOS在没有安装xcode情况下使用homebrew
阅读量:7225 次
发布时间:2019-06-29

本文共 717 字,大约阅读时间需要 2 分钟。

hot3.png

当没有xcode时,我们使用homebrew会提示出错。

Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool

或者出现

Error: The /usr/local directory is not writable.

Even if this directory was writable when you installed Homebrew, other

software may change permissions on this directory. Some versions of the

"InstantOn" component of Airfoil are known to do this.

You should probably change the ownership and permissions of /usr/local

back to your user account.

  sudo chown -R $(whoami):admin /usr/local

 

在某些情况下,我们需要使用mac的命令行工具(如homebrew),但不想安装xcode开发环境。这时,我们需要

更新xcode的开发链接路径,使之指向实际的命令行工具路径。

sudo xcode-select --switch /Library/Developer/CommandLineTools

这样,homebrew就能找到环境了。

转载于:https://my.oschina.net/u/2392723/blog/1503624

你可能感兴趣的文章
给年轻工程师的10大忠告
查看>>
补习系列(7)-springboot 实现拦截的五种姿势
查看>>
Github网站加载不完全,响应超时,如何解决
查看>>
rem自适应布局
查看>>
django 坑~~
查看>>
Python 函数
查看>>
Linux64位程序中的漏洞利用
查看>>
Shell 编程(实例二)
查看>>
dp --- 二维dp + 最大上升子序列
查看>>
Android - TabHost 选项卡功能用法详解
查看>>
数据结构03-栈和队列
查看>>
【代码随笔集】点击对象的获取
查看>>
Cmder + Babun 打造 Windows 好用的终端工具
查看>>
Source code for Bayesian based CS and blind debluring
查看>>
dubbo源码—service export
查看>>
八大排序算法
查看>>
高德地图-控件
查看>>
梦断代码--阅读笔记2
查看>>
css3新增的属性 - 分享
查看>>
python之路---07 join() fromkeys() 深浅拷贝
查看>>