下载地址
http://www.ruby-lang.org/zh_cn/downloads
切换用户
sudo -i
安装依赖
apt install -y gcc g++ autoconf make automake patch libpam0g-dev perl
编译过程
tar -xf ruby-3.0.0.tar.gz
cd ruby-3.0.0
./configure --prefix=/host/apps/ruby
make && make install
环境变量
echo "export PATH=/host/apps/ruby/bin:\$PATH" >> /etc/profile
source /etc/profile
查看版本
ruby --version
最新回复