Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restarting app error (ruby 3.1.0): cannot load such file -- rexml/document #2415

Closed
lemig opened this issue Mar 8, 2022 · 2 comments
Closed

Comments

@lemig
Copy link

lemig commented Mar 8, 2022

Hi

When I do:

passenger-config restart-app

I have the error: cannot load such file -- rexml/document
This happens with ruby 3.1.0. It's ok with ruby 2.6.0.

The raison is REXML is no longer in the Ruby Starting Library starting in ruby 3.0.0.
I suggest adding this to Gemfile:

if (Gem.available?("rexml"))
  gem "rexml"
end
@CamJN
Copy link
Member

CamJN commented Apr 4, 2022

That doesn't work: [!] There was an error parsing 'Gemfile': undefined method 'available?' for Gem:Module. Bundler cannot continue.

@CamJN
Copy link
Member

CamJN commented May 10, 2022

should be fixed in 6.0.14

@CamJN CamJN closed this as completed May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants