安装rv:

gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable

使用rvm安装ruby:

fcbai@fcbai-a4:~$ rvm  install 3.0.0
ruby-3.0.0 - #removing src/ruby-3.0.0..
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/22.04/x86_64/ruby-3.0.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/fcbai/.rvm/rubies/ruby-3.0.0, this may take a while depending on your cpu(s)...
ruby-3.0.0 - #downloading ruby-3.0.0, this may take a while depending on your connection...
ruby-3.0.0 - #extracting ruby-3.0.0 to /home/fcbai/.rvm/src/ruby-3.0.0.....
ruby-3.0.0 - #configuring.........................................................................
ruby-3.0.0 - #post-configuration..
ruby-3.0.0 - #compiling...............................................................................................................|
Error running '__rvm_make -j20',
please read /home/fcbai/.rvm/log/1675047507_ruby-3.0.0/make.log

There has been an error while running make. Halting the installation.

linking shared-object bigdecimal.so
make[2]: Leaving directory '/home/fcbai/.rvm/src/ruby-3.0.0/ext/bigdecimal'
cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics
linking shared-object json/ext/generator.so
cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics
make[2]: Leaving directory '/home/fcbai/.rvm/src/ruby-3.0.0/ext/json/generator'

解决办法:

rvm pkg install openssl
rvm install 3.0.0 --with-openssl-dir=/home/$(whoami)/.rvm/usr

安装redmine:
https://www.redmine.org/projects/redmine/wiki/redmineinstall


扫码手机观看或分享: