Issue #14076 has been updated by kubak (Kuba Krzempek).


The problem stems from default gcc version (it's 7) used on Ubuntu 17.10.
Installing gcc-6 and running the install via
`CC=/usr/bin/gcc-6 rbenv install 2.3.1`
should help.

I leave the note for someone passing thru this issue with the same problem (as I did today).

----------------------------------------
Bug #14076: Installing Ruby 2.3.1 - Ubuntu 17.10
https://bugs.ruby-lang.org/issues/14076#change-67728

* Author: smaziano (Sergio Maziano)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.3.1
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
When installing ruby 2.3.1 using rbenv I get the error below:


~~~ ruby
Last 10 log lines:
-- C level backtrace information -------------------------------------------
verconf.h updated
compiling loadpath.c
linking static-library libruby-static.a
ar: `u' modifier ignored since `D' is the default (see `U')
Segmentation fault (core dumped)
uncommon.mk:654: recipe for target 'enc.mk' failed
make: *** [enc.mk] Error 139
make: *** Waiting for unfinished jobs....
verifying static-library libruby-static.a
~~~

I hope this helps track it.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>