instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.62k stars 2.49k forks source link

bundle install error #1807

Open Wandimi opened 3 years ago

Wandimi commented 3 years ago

root@piu-HP-200-G3-AiO:/var/canvas# bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.

[!] There was an error evaluating Gemfile: ruby_version must match the:engine_version for MRI. Bundler cannot continue.

from /var/canvas/Gemfile.d/_before.rb:39

-------------------------------------------

>

-------------------------------------------

Captainguoz commented 3 years ago

I also had this problem

Wandimi commented 3 years ago

I also had this problem

right now an experiencing another error in the ruby version and the gem version installed not the same... its hectic

Yetoo1 commented 3 years ago

Yeah it's a mess, what I did was uninstall bundle and bundler before uninstalling all ruby versions via apt or other means and downloaded and used ruby-install 2.6.6 -i /usr to compile install ruby and friends to /usr/bin (it's confusing at first because you first expect it to install the binaries to the path specified such as /usr/bin, but it instead does /usr/bin/bin with the executables in the last bin so that's why you need /usr) (or you could keep it at default and prepend that to PATH .bashrc) and then you should be able to use sudo gem install bundle:2.2.0 or bundler:2.2.0 and then run bundle 2.2.0 for the rest of the tasks. Make sure to update yarn and node to 14.x.

Wandimi commented 3 years ago

@Yetoo1, @Captainguoz @canadaduane @treybean, Thanks I managed this problem, Just a kind request if you can help me out, am stuck after installation, (my canvas is loading from Server I.P on port 3000, I have tried to redirect it to load from my Domain but no successful, am almost giving up) I have been using the product documentation all through. if you know the process kindly help out, reach me on elijahwandimi@gmail.com

Yetoo1 commented 3 years ago

@Wandimi Are you following https://github.com/instructure/canvas-lms/wiki/Production-Start or https://github.com/instructure/canvas-lms/wiki/Quick-Start and edited config/domain.yml for test or production or development? Have you opened the ports on your router/switch? What error are you getting when accessing the server from your domain?