view · edit · sidebar · attach · print · history

< Niklaus.20220411-textinfo-problems | Index | Niklaus.20220309-refdata-update >>

20220330-ruby-311-on-thinpower

Summary

Commits

Index:

Port oddb.org to Ruby 3.1.1 on thinpower

YUS

Ran /usr/local/bin/gen_ruby311 as root. Checking

/usr/local/bin/ruby-311 --version
ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-linux]

As user root we install yus via /usr/local/bin/gem-311 install yus. Replace in /service/yus/run 300 by 311 and ruby-3.0.0 by ruby-3.1.1

Replacing logical link of /usr/bin/ruby vi cd /usr/bin; ln -s /usr/local/bin/ruby-311 ruby.

cd /usr/local/src
git clone https://github.com/zdavatz/yus.git
chown -R ywesee yus
sudo -iu ywesee
cd /usr/local/src/yus
/usr/local/bin/bundle-311 install --without development
svstat /service/yus/
/service/yus/: up (pid 10241) 59 seconds

Now yus is running fine again.

MIGEL

Now for migeld

cd /var/www/migel
git pull
bundle-311 config set --local path vendor
bundle-311 install

Repleced 300 by 311 in /service/migeld/run. But get the following error while starting /var/www/migel/vendor/ruby/3.1.0/gems/mail-2.7.1/lib/mail.rb:9:in `require': cannot load such file -- net/smtp (LoadError)

This was corrected in my fork. But I had forgotten to rebase it to the upstream. Fixed and created a pull request.

ODDB.ORG

Now for oddb.org

cd /var/www/oddb.org
git pull
bundle-311 config set --local path vendor
bundle-311 install

As root replacing 300 by 311 in /service/ch.oddb/run and restarting the service. Looks fine.

Doing the same for the other services *.ch.oddb.org

view · edit · sidebar · attach · print · history
Page last modified on April 12, 2022, at 05:41 AM