Ruby rubyinstaller.cn 正式运行,感谢上海交通大学镜像服务

ccmywish · January 22, 2021 · Last by fleam replied at March 24, 2022 · 2999 hits
Topic has been selected as the excellent topic by the admin.

太快了!

Rei mark as excellent topic. 22 Jan 18:55

官方的地址重定向到亚马逊的 S3,国内速度感人,开了梯子下,一定时间内没下玩 Token 就过期了,返回 403 了。 用腾讯云的服务器的 wget 下依然渣渣,后面搞了个阿里云的 1 个小时的按需付费实例,北京区域的秒下~~然后搭了 ftp 从服务器上下来,可谓真艰难的曲线救国。😂 顶起来!幸苦楼主了!

https://ruby-china.org/topics/40842

我跑起来了,感谢(安装就是一路回车,没怎么管拉取失败的错误)

另外我的环境遇到问题,提示:tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle install

我的环境:


操作系统:win11

ruby版本:ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]

rails版本:Rails 7.0.2.3

我是这样操作的:

1、修改 Gemfile

# gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]

2、执行命令

gem uninstall tzinfo-data

3、修改 Gemfile

# gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
gem "tzinfo-data"

4、重新安装依赖

bundle install

5、本地端口被占会提示权限错误,指定端口启动

rails s -p 888

You need to Sign in before reply, if you don't have an account, please Sign up first.