cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
salmonsm
Community Participant

Ruby 2.4.0 and Rails 4.2.8- reason why install fails at last step?

Jump to solution

I am so very close to a production install on my server. Resolved all issues up to the very last step, simply running canvas_init. I get this error:

/home/michael/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler/setup (LoadError)
    from /home/michael/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /var/canvas/script/delayed_job:7:in `<main>'

a little background, this is an Ubuntu Desktop install, 14.04.5. I installed Ruby 2.4.0 *only* but sudo ruby -v thought the version of Ruby was 1.9.3. Maybe this comes with 14.04? I know I didn't install it.

When looking for mentions of ruby-1.9.3 I saw a lot of files under .rvm. This puzzles me as I manually installed rvm.

Anyway I changed my PATH entries so the system now considered 2.4.0 the main version. That's when I got the above error.

I don't even know what to check at this point, I have tried a dozen different things from various how-tos and Stack Exchange and Github articles. I would so appreciate some ideas here, just what to check.

If the answer is downgrading Ruby, is there an easy way to do that *and* get rid of the references to 2.4.0?

 

Thanks a million.

1 Solution

Accepted Solutions
salmonsm
Community Participant

For the community's info, I think it was because of the Ruby version. I switched to 2.4.1.p111 and despite a few little hiccups (extra space in my server.yml), my Canvas install is now up and running.  Thanks for your time.

View solution in original post

2 Replies
kona
Community Coach
Community Coach

 @salmonsm , I'm not sure of the answer to this question, but I'm going to share this with the https://community.canvaslms.com/groups/canvas-developers?sr=search&searchId=cd76d92f-090e-46ed-b94c-...‌ group to see if they can help. You might consider joining so you have access to their information and resources. 

salmonsm
Community Participant

For the community's info, I think it was because of the Ruby version. I switched to 2.4.1.p111 and despite a few little hiccups (extra space in my server.yml), my Canvas install is now up and running.  Thanks for your time.

View solution in original post