ruby-plsql-spec icon indicating copy to clipboard operation
ruby-plsql-spec copied to clipboard

Installation instructions fail

Open forceedge01 opened this issue 4 years ago • 6 comments

The installation instructions propose that we install ruby-oci8 and ruby-plsql-rpec. I've tried this on two version.

ruby v2.7: ruby-oci8 installs fine. ruby-plsql-spec fails due to Nokogiri package supported only till ruby 2.4

ruby v2.4: ruby-oci8 fails - requires ruby 2.5 >

Bit of a paradox. It would be good to know the exact dependencies this is tested with so people can follow the same when installing. Appreciate this is actually because of external packages and a bit out of this package's hand. I am a newbie in ruby - and this may have a very obvious solution such as installing an older version of ruby-oci8.

forceedge01 avatar Jan 21 '21 16:01 forceedge01

Did you get any solution to this.

AvneetBaweja avatar Jul 23 '21 03:07 AvneetBaweja

This is a problem on Windows only. For our Windows-based developers I have modified ruby-plsql-spec gem and updated nokogiri dependency to 1.8. This works fine.

bpom avatar Jul 23 '21 08:07 bpom

Thank @bpom , Could you please share what changes have you made to ruby-plsql-spec gem to make it work. I am very new to ruby and does not know much about gems.

AvneetBaweja avatar Jul 25 '21 21:07 AvneetBaweja

Actually you can use https://github.com/rsim/ruby-plsql-spec/pull/47 to fix this for your installation.

bpom avatar Jul 29 '21 12:07 bpom

Tried many combinations of different Ruby versions and gems. Finally managed to make things work using...

  • Ruby 2.3.3

...with the following gems...

  • ruby-oci8 -v 2.2.8
  • ruby-plsql -v 0.7.1
  • ruby-plsql-spec -v 0.5.0

This, with latest VS Code and "rebornix.ruby" and "kaiwood.endwise" extensions, is working.

javs1979 avatar Oct 31 '21 17:10 javs1979

The above Ruby 2.3.3 instructions worked for me but I had problems at first because the CA certificates supplied with Ruby 2.3.3 aren't up to date.

To be able to install the gems I needed to:

  • download .pem file https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem
  • copy it to the relevant directory, which for me was C:\Ruby23-x64\lib\ruby\2.3.0\rubygems\ssl_certs

After this the above worked for me.

alanmaydwell avatar Mar 07 '22 13:03 alanmaydwell