0
0

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 3 years have passed since last update.

Ruby on Railsのインストールエラー(error reading '/dev/fd/9')

Last updated at Posted at 2020-12-29

macのターミナルにて進めたところ、以下のエラーが出ました。
rbenv 1.1.2を使用しました。

$ rbenv install 2.6.6
Downloading openssl-1.1.1i.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/e8be6a35fe41d10603c3cc635e93289ed00bf34b79671a3a4de64fcee00d5242
Installing openssl-1.1.1i...
Installed openssl-1.1.1i to /Users/ken/.rbenv/versions/2.6.6

Downloading ruby-2.6.6.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.6.tar.bz2
Installing ruby-2.6.6...
ruby-build: using readline from homebrew

BUILD FAILED (Mac OS X 10.13.6 using ruby-build 20201225)

Inspect or clean up the working tree at /var/folders/wj/4rj93tzj5290k90r0fj2fsrw0000gn/T/ruby-build.20201229072153.43390.j1wMGl
Results logged to /var/folders/wj/4rj93tzj5290k90r0fj2fsrw0000gn/T/ruby-build.20201229072153.43390.log

Last 10 log lines:
translating probes probes.d
compiling ast.c
compiling bignum.c
compiling class.c
error: error reading '/dev/fd/9'
1 error generated.
clang: error: unable to remove file: Operation not permitted
dtrace: failed to compile script probes.d: Preprocessor failed to process input program
make: *** [probes.h] Error 1
make: *** Waiting for unfinished jobs....

ここでのぐぐ正解はerror reading '/dev/fd/9'でした。
(ぐぐ正解:tanukiの中で「ここをググれば答えが見つかる」ところを指します。)

結論としては、ウイルスソフトが読み込みを阻害してしまっていたようですね。
僕はAviraを使っていたので、「リアルタイム保護を無効にする」をしたところ、無事インストールが完了しました!

これ一見どこがぐぐ正解かわかりませんよね、ググり力高めていきたいでです。
(Ruby on Railsのインストールエラー2へ続く)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?