ima0123 ima0123 - 11 months ago 115
Ruby Question

miniruby Permission denied Error occurred when installing ruby 2.3.1 using rbenv installed homebrew

I got error message when installing ruby 2.3.1 using rbenv.
My environment is below.

  • MacOS 10.10.5

  • rbenv 1.0.0

The log message is below.

$ rbenv install 2.3.1


Last 10 log lines:
compiling enc/unicode.c
compiling enc/utf_8.c
compiling enc/trans/newline.c
linking miniruby
generating encdb.h
make: ./miniruby: Permission denied
make: ./miniruby: Permission denied
make: *** [.rbconfig.time] Error 1
make: *** Waiting for unfinished jobs....
make: *** [encdb.h] Error 1

If you get the same error, would you please tell me how to solve this error?

Thank you for your help.

Answer Source

add sudo before the command(To give the admin permission to install)

ex)sudo make ruby 2.3.1