ruby install - deptno/deptno.github.io GitHub Wiki
ruby-install
~/.rubies
μ μ¬λ¬ λ²μ μ λ£¨λΉ μ€μΉκ° κ°λ₯νλ€.
chruby μμ μ¬μ©λλ€.
3.x
$ ruby-install INT 2m 42s 00:00:18
>>> Downloading latest ruby versions ...
>>> Downloading latest jruby versions ...
>>> Downloading latest rbx versions ...
>>> Downloading latest truffleruby versions ...
>>> Downloading latest truffleruby-graalvm versions ...
>>> Downloading latest mruby versions ...
Stable ruby versions:
ruby:
2.6.9
2.7.5
3.0.3
3.1.0
jruby:
9.3.2.0
rbx:
5.0
truffleruby:
21.3.0
truffleruby-graalvm:
21.3.0
mruby:
3.0.0
$ arch -arm64 ruby-install 3.1.0
## 2.x
κ·Έλ₯ μΈμ€ν¨νλ κ²½μ° m1 μμ [error](/deptno/deptno.github.io/wiki/μλ¬) λ₯Ό λ΄λΏλλ€.
```sh
$ ruby-install ruby 2.7.5
compiling readline.c
readline.c:1904:37: error: use of undeclared identifier 'username_completion_function'; did you mean 'rl_username_completion_function'?
rl_username_completion_function);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rl_username_completion_function
readline.c:79:42: note: expanded from macro 'rl_username_completion_function'
# define rl_username_completion_function username_completion_function
^
/opt/homebrew/opt/readline/include/readline/readline.h:485:14: note: 'rl_username_completion_function' declared here
extern char *rl_username_completion_function PARAMS((const char *, int));
^
1 error generated.
make[2]: *** [readline.o] Error 1
make[1]: *** [ext/readline/all] Error 2
make: *** [build-ext] Error 2
!!! Compiling ruby 2.7.5 failed!
μ΄μ ν΄κ²°μ μ¬κΈΈ μ°Έμ‘° https://github.com/postmodern/ruby-install/issues/399
$ CFLAGS="-Wno-error=implicit-function-declaration" arch -arm64 ruby-install ruby 2.7.5
arch-arm64 μ΅μ μ m1 νλ‘μΈμμΌλ νμνλ€.