How to install package ruby2.6 and make it the system wide default ruby?


I need to install and use Ruby 2.6.6 system wide.

I already tried:

sudo pacman -R ruby ruby-irb ruby-reline rubygems
sudo pacman -S ruby2.6
sudo ln -s /opt/ruby2.6/bin/ruby-2.6 /usr/bin/ruby
sudo ln -s /opt/ruby2.6/bin/gem-2.6 /usr/bin/gem
sudo ln -s /opt/ruby2.6/bin/irb-2.6 /usr/bin/irb
sudo ln -s /opt/ruby2.6/bin/bundle /usr/bin/bundle

but it seems not to be enough.

I want to install Zammad 3.5.0, that demands Ruby 2.6.6, and let systemd manage startup/shutdown of services, following Install from source documentation.

I am using latest Manjaro KDE 20.1.1.

What’s the error message?


This is the strange part, I do not find an error message.

If I launch servers manually, everything works fine.

If I try to use systemd, the service is activated but doesn’t start.

I will redo all setup I try to get more info.

I started again, from scratch.

After all dependencies are ready, I started servers manually using:

zammad@nitro $ rails s -p 3000
zammad@nitro $ script/websocket-server.rb start
zammad@nitro $ script/scheduler.rb start

Then I accessed http://nitro:3000 and done the initial configuration. Everything seems fine.

Rebooted the system and then:

[zammad@nitro ~]$ cd /opt/zammad/script/systemd && sudo ./ && cd
Created symlink /etc/systemd/system/ → /etc/systemd/system/zammad.service.
[zammad@nitro ~]$
[zammad@nitro ~]$ sudo systemctl status zammad
● zammad.service - Zammad
     Loaded: loaded (/etc/systemd/system/zammad.service; enabled; vendor preset: disabled)
     Active: active (running) since Thu 2020-10-15 17:04:03 -03; 1min 10s ago
   Main PID: 1473 (sleep)
      Tasks: 1 (limit: 19051)
     Memory: 152.0K
     CGroup: /system.slice/zammad.service
             └─1473 /bin/sleep infinity

out 15 17:04:03 nitro systemd[1]: Started Zammad.
[zammad@nitro ~]$

Now Zammad doesn’t work anymore… :neutral_face:

Where can I start looking for the problem?

That’s a Zammad issue so you’d be better off posting something in their forum. FYI: it looks like your output is missing a piece…

Thanks @Fabby, I also posted there.

Where looks like output is missing? I copied full output from terminal.

My doubt is if the problem is related to change actual ruby version to an old one, system wide, on Manjaro 20.1.1 or if the problem is on systemd script done by Zammad.

ending a command with cd doesn’t make sense. pushd and popd would.

Ending in a . doesn’t make sense neither.

(I could be wrong though)

I use cd just to go back to user’s home directory.

The line ending with . is just some text output, I think . is being used just to “finish” the sentence.

confirmed: I was wrong!