安裝非發(fā)行版 Karabiner-element
Readme 文件中寫(xiě)了安裝的依賴(lài)和命令。
make 過(guò)程
嘗試重新安裝 xcode
因?yàn)橹笆窍螺d離線(xiàn)安裝包,懷疑可能是沒(méi)有完全安裝。
- 將
xcode.app
從software
文件夾移動(dòng)到applicaton
文件夾。 sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
之后發(fā)現(xiàn)是沒(méi)有安裝 boost 依賴(lài)
Boost C++ Libraries 安裝地址。
按照說(shuō)明將 boost 文件夾移動(dòng)到目的文件夾。
To install the Boost requirement, download the latest Boost release, open the boost folder inside of it, and move all of the files there into /opt/local/include/boost/.
發(fā)現(xiàn)問(wèn)題:
- 沒(méi)有相關(guān)文件夾
/opt/local/include
:- macOS 對(duì)應(yīng)的文件夾地址為:
usr/local/include
。
- macOS 對(duì)應(yīng)的文件夾地址為:
- 無(wú)法移動(dòng)文件到目的文件夾:
- 提升文件操作權(quán)限:
sudo chmod -R 777 usr/local/include
- 提升文件操作權(quán)限:
- 移動(dòng)文件:
mv /Users/grc/Downloads/boost_1_64_0/boost /usr/local/include
。
編譯后安裝
make 之后生成的安裝文件進(jìn)行安裝即可。