2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

brew install で `cp: chmod: /usr/local/Cellar/jemalloc/.: Operation not permitted`エラー

Last updated at Posted at 2021-04-11

brew install 実行時に下記のエラーがでた

cp: utimes: /usr/local/Cellar/gettext/.: Operation not permitted
cp: chmod: /usr/local/Cellar/gettext/.: Operation not permitted
Error: Failure while executing; `cp -pR /private/tmp/d20210405-78012-1fygwiz/gettext/. /usr/local/Cellar/gettext` exited with 1. Here's the output:
cp: utimes: /usr/local/Cellar/gettext/.: Operation not permitted
cp: chmod: /usr/local/Cellar/gettext/.: Operation not permitted

次のコマンドでなおった

brew installation error “cp: utimes: /usr/local/Cellar/jemalloc/.: Operation not permitted cp: chmod: /usr/local/C” - Programmer Sought

sudo chown -R $(whoami) /usr/local/Cellar

Linuxコマンド【 chown 】ファイルの所有者やグループを変更 - Linux入門 - Webkaru
Linuxコマンド【whoami】現在のユーザー名を表示 - Linux入門 - Webkaru
homebrewとは何者か。仕組みについて調べてみた - Qiita
https://qiita.com/saba1024/items/0f397b3f59d28e0ef527

  • インストールしたパッケージが/usr/local/Cellarに保存されるみたい
  • /usr/local/Cellarの所有権を現在のユーザー名に変更している

以前、別のMacユーザーで brew install 実行してたのが原因かも?

jemalloc ってなんだろ

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?