litespeedtech / openlitespeed

Our high-performance, lightweight, open source HTTP server
https://openlitespeed.org
GNU General Public License v3.0
1.16k stars 189 forks source link

RUBYOPT=rubygems needs to be RUBYOPT=-rrubygems #408

Closed climatebrad closed 3 weeks ago

climatebrad commented 2 months ago

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 commented 2 months ago

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

litespeedtech commented 2 months ago

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 commented 3 weeks ago

It will be in 1.8.2 .