8000 Ruby 3.1.3 fails to build on Fedora 42 · rbenv ruby-build · Discussion #2529 · GitHub
[go: up one dir, main page]

Skip to content

Ruby 3.1.3 fails to build on Fedora 42 #2529

Discussion options

You must be logged in to vote

For those who are unable to install the older GCC with dnf on the atomic desktop Fedoras (Universal Blue spins, Aurora, Bazzite, BlueFin, and uCore) you can supply the -std=gnu17 flag to CFLAGS to have it use GCC v14 sytle compilation.

CFLAGS="-std=gnu17" rbenv install 3.1.7

I've updated the wiki as well. Installing GCC v14 should not be needed.

This works because GCC v15 upgraded the default mode from gnu17 to gnu23.

Additionally, this PR fixes installation of Ruby 2.7, 3.0, and 3.1 on Fedora 42 so no hacks are needed.

NOTE: This only works for Ruby 3.1. Older Rubies break for other reasons. UPDATE: This works as-is for Ruby 3.0, and 2.7 once a C++ compiler is installed (aside: why does…

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@myaccountgitoube
Comment options

Comment options

You must be logged in to vote
6 replies
@myaccountgitoube
Comment options

@myaccountgitoube
Comment options

@myaccountgitoube
Comment options

@myaccountgitoube
Comment options

@mislav
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mislav
Comment options

Answer selected by mislav

This comment was marked as spam.

@pboling
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
0