openlitespeed icon indicating copy to clipboard operation
openlitespeed copied to clipboard

RUBYOPT=rubygems needs to be RUBYOPT=-rrubygems

Open climatebrad opened this issue 1 year ago • 2 comments

ubygems.rb alias was removed in Rubygems 3.2.3 (2020).

https://github.com/litespeedtech/openlitespeed/blob/d9610258f5c76ca204e1fd7074c23297b96a64de/src/http/httpvhost.cpp#L1681

Change RUBYOPT=rubygems to RUBYOPT=-rrubygems

See rubygems/rubygems#2393

climatebrad avatar Aug 02 '24 02:08 climatebrad

To be clear I haven't tested this fix and am not an expert, the line may be entirely deprecated or unnecessary. but RUBYOPT=rubygems is definitely an error

climatebrad avatar Aug 02 '24 02:08 climatebrad

Thanks for the bug report. We have found that it causes trouble, so we just removed that environment variable in the latest code. it is not necessary.

litespeedtech avatar Aug 02 '24 03:08 litespeedtech

It will be in 1.8.2 .

litespeedtech avatar Sep 06 '24 17:09 litespeedtech