LoginSignup
0
0

More than 1 year has passed since last update.

make && make install 実行中に file cannot create directory: /usr/local/lib/pkgconfig. Maybe need administrative privileges.

Posted at

概要

cmakeを使ってライブラリをbuildしていた際に
パッケージの説明に従ってmake && make installを実行したら
file cannot create directory: /usr/local/lib/pkgconfig. Maybe need administrative privileges.
と怒られた。

administrative って書いてあるのでsidoつければいいかなと思ったので
sudo make && make installに変えても同じエラーに、、

結論

&&使っているので両方のコマンドにsudoつけないとダメだった。。

sudo make && sudo make install

これで解決。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0