pg_query icon indicating copy to clipboard operation
pg_query copied to clipboard

Can't install with Ruby 3.1.1

Open feliperaul opened this issue 3 years ago • 4 comments

I'm getting this message when trying to install with latest ruby 3.1.1 on a Mac:

google-protobuf-3.19.4-x86_64-darwin requires ruby version < 3.1.dev, >= 2.5, which is incompatible with the current version, ruby 3.1.1p18

feliperaul avatar Mar 04 '22 16:03 feliperaul

I guess that gem install google-protobuf also fails on Ruby 3.1.1 - if yes, then we are waiting for google-protobuf to support 3.1.1.

olleolleolle avatar Mar 05 '22 02:03 olleolleolle

@olleolleolle It seems that google-protobuf is Ruby 3.1.x ready: https://github.com/protocolbuffers/protobuf/pull/9566

I am locally testing v3.20.1 of google-protobuf with Ruby 3.1.2.

mobilutz avatar Apr 29 '22 13:04 mobilutz

I was able now to install:

➜  ~ gem i  pg_query

Fetching pg_query-2.1.3.gem
Fetching google-protobuf-3.20.1-x86_64-darwin.gem
Successfully installed google-protobuf-3.20.1-x86_64-darwin
Building native extensions. This could take a while...
Successfully installed pg_query-2.1.3
2 gems installed
➜  ~ ruby -v
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin21]

@feliperaul Can this Issue now be considered closable?

olleolleolle avatar Apr 29 '22 13:04 olleolleolle

Although original report was for Mac, worth noting that Ruby 3.1 is still not working on Windows. This PR should fix it: https://github.com/protocolbuffers/protobuf/pull/9963

johnnyshields avatar May 13 '22 19:05 johnnyshields