Message
미친 왜 오류나나 보는데 별 오류날 건덕지도 없어 보인다. 의존성 설치하라는거 다 설치했고
rbenv install 2.3.3 Downloading ruby-2.3.3.tar.bz2... -> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.bz2 Installing ruby-2.3.3... BUILD FAILED (Ubuntu 17.10 using ruby-build 20171226-3-g01e7b7b) Inspect or clean up the working tree at /tmp/ruby-build.20180222140444.23312 Results logged to /tmp/ruby-build.20180222140444.23312.log Last 10 log lines: checking for ruby... /usr/bin/ruby config.guess already exists config.sub already exists checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking whether the C compiler works... no configure: error: in `/tmp/ruby-build.20180222140444.23312/ruby-2.3.3': configure: error: C compiler cannot create executables See `config.log' for more details
cat /tmp/ruby-build.20180222140444.23312.log /tmp/ruby-build.20180222140444.23312 ~/.rbenv/plugins/ruby-build /tmp/ruby-build.20180222140444.23312/ruby-2.3.3 /tmp/ruby-build.20180222140444.23312 ~/.rbenv/plugins/ruby-build checking for ruby... /usr/bin/ruby config.guess already exists config.sub already exists checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking whether the C compiler works... no configure: error: in `/tmp/ruby-build.20180222140444.23312/ruby-2.3.3': configure: error: C compiler cannot create executables See `config.log' for more details
해결
rbenv의 버그라고 봐야할 것 같다.
우분투 최신버전이라 GCC7이 기본으로 설정되어 있는데
이걸로 빌드하면 오류가 나는 것 같다.
gcc-4.8을 강제 지정해서 해결
$ CC=/usr/bin/gcc-4.8 rbenv install 2.3.3