編譯安裝 Karabiner-elements

安裝非發(fā)行版 Karabiner-element

Github 項(xiàng)目地址

Readme 文件中寫(xiě)了安裝的依賴(lài)和命令。

make 過(guò)程

嘗試重新安裝 xcode

因?yàn)橹笆窍螺d離線(xiàn)安裝包,懷疑可能是沒(méi)有完全安裝。

  • xcode.appsoftware文件夾移動(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。
  • 無(wú)法移動(dòng)文件到目的文件夾:
    • 提升文件操作權(quán)限:sudo chmod -R 777 usr/local/include
  • 移動(dòng)文件:mv /Users/grc/Downloads/boost_1_64_0/boost /usr/local/include

編譯后安裝

make 之后生成的安裝文件進(jìn)行安裝即可。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀(guān)點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容