Bug 56467 - Невозможно создать новый проект Ruby-On-Rails
Summary: Невозможно создать новый проект Ruby-On-Rails
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: rails (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: majioa@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-18 14:39 MSK by Артем Добровинский
Modified: 2025-10-18 16:09 MSK (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Артем Добровинский 2025-10-18 14:39:15 MSK
Делаю всё по инструкции https://wiki.altlinux.org/Ruby_on_Rails_QuickStart
Зависимости устанавливаются. Во время создания проекта bundler уходит в неизвестную ошибку. rvm install ruby нужной версии не помогает.
Подскажите, пожалуйста, как создать проект и начать разработку.

```bash
❯ ruby -v
ruby 3.1.4p223 (2023-03-30) [x86_64-linux]
❯ rails -v
Rails 7.1.5.1
❯ gem -v
3.3.26

~
❯ cd /ruby
bash: cd: /ruby: No such file or directory

~
✗ mkdir ruby/

~
❯ rails new hello
      create
      create  README.md
      create  Rakefile
      create  .ruby-version
      create  config.ru
      create  .gitignore
      create  .gitattributes
      create  Gemfile
         run  git init from "."
Initialized empty Git repository in /home/superman/hello/.git/
      create  app
      create  app/assets/config/manifest.js
      create  app/assets/stylesheets/application.css
      create  app/channels/application_cable/channel.rb
      create  app/channels/application_cable/connection.rb
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/jobs/application_job.rb
      create  app/mailers/application_mailer.rb
      create  app/models/application_record.rb
      create  app/views/layouts/application.html.erb
      create  app/views/layouts/mailer.html.erb
      create  app/views/layouts/mailer.text.erb
      create  app/assets/images
      create  app/assets/images/.keep
      create  app/controllers/concerns/.keep
      create  app/models/concerns/.keep
      create  bin
      create  bin/rails
      create  bin/rake
      create  bin/setup
      create  Dockerfile
      create  .dockerignore
      create  bin/docker-entrypoint
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/cable.yml
      create  config/puma.rb
      create  config/storage.yml
      create  config/environments
      create  config/environments/development.rb
      create  config/environments/production.rb
      create  config/environments/test.rb
      create  config/initializers
      create  config/initializers/assets.rb
      create  config/initializers/content_security_policy.rb
      create  config/initializers/cors.rb
      create  config/initializers/filter_parameter_logging.rb
      create  config/initializers/inflections.rb
      create  config/initializers/new_framework_defaults_7_1.rb
      create  config/initializers/permissions_policy.rb
      create  config/locales
      create  config/locales/en.yml
      create  config/master.key
      append  .gitignore
      create  config/boot.rb
      create  config/database.yml
      create  db
      create  db/seeds.rb
      create  lib
      create  lib/tasks
      create  lib/tasks/.keep
      create  lib/assets
      create  lib/assets/.keep
      create  log
      create  log/.keep
      create  public
      create  public/404.html
      create  public/422.html
      create  public/500.html
      create  public/apple-touch-icon-precomposed.png
      create  public/apple-touch-icon.png
      create  public/favicon.ico
      create  public/robots.txt
      create  tmp
      create  tmp/.keep
      create  tmp/pids
      create  tmp/pids/.keep
      create  tmp/cache
      create  tmp/cache/assets
      create  vendor
      create  vendor/.keep
      create  test/fixtures/files
      create  test/fixtures/files/.keep
      create  test/controllers
      create  test/controllers/.keep
      create  test/mailers
      create  test/mailers/.keep
      create  test/models
      create  test/models/.keep
      create  test/helpers
      create  test/helpers/.keep
      create  test/integration
      create  test/integration/.keep
      create  test/channels/application_cable/connection_test.rb
      create  test/test_helper.rb
      create  test/system
      create  test/system/.keep
      create  test/application_system_test_case.rb
      create  storage
      create  storage/.keep
      create  tmp/storage
      create  tmp/storage/.keep
      remove  config/initializers/cors.rb
      remove  config/initializers/new_framework_defaults_7_1.rb
         run  bundle install
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies....
Using rake 13.3.0
Following files may not be writable, so sudo is needed:
  /var/cache/ruby/gemie
  /var/cache/ruby/gemie/build_info
  /var/cache/ruby/gemie/cache
  /var/cache/ruby/gemie/doc
Using benchmark 0.4.1
Using concurrent-ruby 1.3.5
Using bindex 0.8.1
Using msgpack 1.8.0
Using bundler 2.3.26
Using matrix 0.4.3
Using regexp_parser 2.11.3
Using cgi 0.5.0
Using builder 3.3.0
Using websocket-extensions 0.1.5
Using tsort 0.2.0
Using crass 1.0.6
Using rack 3.2.3
Using timeout 0.4.3
Using marcel 1.1.0
Using mini_mime 1.1.5
Using public_suffix 6.0.2
Using base64 0.3.0
Using connection_pool 2.5.4
Using logger 1.7.0
Using drb 2.2.3
Using minitest 5.26.0
Using erb 4.0.4
Using securerandom 0.4.1
Using erubi 1.13.1
Using net-protocol 0.2.2
Using prettyprint 0.2.0
Using zeitwerk 2.6.18
Using sprockets 4.2.2
Fetching net-pop 0.1.2
Using io-console 0.8.1
Using net-smtp 0.5.1
Using pp 0.6.3
Using error_highlight 0.7.0
Using thor 1.4.0
Using i18n 1.14.7
Using tzinfo 2.0.6
Using bootsnap 1.18.6
Using mutex_m 0.3.0
Installing websocket-driver 0.8.0 with native extensions
Using rack-test 2.2.0
Using addressable 2.8.7
Using racc 1.8.1
Using rack-session 2.1.1
Using reline 0.6.2
Using nokogiri 1.18.10 (x86_64-linux-gnu)
Using rubyzip 2.4.1
Installing stringio 3.1.7 with native extensions
Using loofah 2.24.1
Using sqlite3 2.7.4 (x86_64-linux-gnu)
Using rackup 2.2.1
Using rexml 3.4.4
Using xpath 3.2.0
Using websocket 1.2.11
Using rails-html-sanitizer 1.6.2
Using capybara 3.40.0
Using selenium-webdriver 4.32.0
Installing date 3.4.1 with native extensions
Installing bigdecimal 3.3.1 with native extensions
Installing nio4r 2.7.4 with native extensions


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle config set --local path 'vendor/bundle'
      bundle install

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password:
Installing net-pop 0.1.2
--- ERROR REPORT TEMPLATE -------------------------------------------------------

```
NoMethodError: undefined method `gsub!' for nil:NilClass

      ext_src.gsub!(src[0..-6], "")
     ^^^^^^
  /usr/lib/ruby/bundler/source/rubygems.rb:220:in `block in install'
  /usr/lib/ruby/bundler/source/rubygems.rb:214:in `each'
  /usr/lib/ruby/bundler/source/rubygems.rb:214:in `install'
  /usr/lib/ruby/bundler/installer/gem_installer.rb:54:in `install'
  /usr/lib/ruby/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /usr/lib/ruby/bundler/installer/parallel_installer.rb:186:in `do_install'
  /usr/lib/ruby/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
  /usr/lib/ruby/bundler/worker.rb:62:in `apply_func'
  /usr/lib/ruby/bundler/worker.rb:57:in `block in process_queue'
  /usr/lib/ruby/bundler/worker.rb:54:in `loop'
  /usr/lib/ruby/bundler/worker.rb:54:in `process_queue'
  /usr/lib/ruby/bundler/worker.rb:91:in `block (2 levels) in create_threads'

```

## Environment

```
Bundler       2.3.26
  Platforms   ruby, x86_64-linux
Ruby          3.1.4p223 (2023-03-30 revision HEAD) [x86_64-linux]
  Full Path   /usr/lib/ruby/bin/ruby
  Config Dir  /etc
RubyGems      3.3.26
  Gem Home    /var/cache/ruby/gemie
  Gem Path    /var/cache/ruby/gemie:/usr/lib/ruby/gemie:/usr/lib64/ruby/gemie:/usr/lib/ruby/gems/2.7.0
  User Home   /home/superman
  User Path   /home/superman/.local/share/gem/ruby/3.1.0
  Bin Dir     /var/cache/ruby/gemie/bin
OpenSSL
  Compiled    OpenSSL 3.1.5 30 Jan 2024
  Loaded      OpenSSL 3.3.3 11 Feb 2025
  Cert File   /var/lib/ssl/cert.pem
  Cert Dir    /var/lib/ssl/certs
Tools
  Git         2.50.1
  RVM         1.29.12-next (manual)
  rbenv       not installed
  chruby      not installed
```

## Bundler Build Metadata

```
Built At          2025-10-18
Git SHA           unknown
Released Version  false
```

## Bundler settings

```
ignore_messages
  Set via BUNDLE_IGNORE_MESSAGES: true
```

## Gemfile

### Gemfile

```ruby
source "https://rubygems.org"

ruby "3.1.4"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.1.5", ">= 7.1.5.1"

# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem "sprockets-rails"

# Use sqlite3 as the database for Active Record
gem "sqlite3", ">= 1.4"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", ">= 5.0"

# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
gem "importmap-rails"

# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails"

# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails"

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder"

# Use Redis adapter to run Action Cable in production
# gem "redis", ">= 4.0.1"

# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ windows jruby ]

# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require: false

# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"

group :development, :test do
  # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
  gem "debug", platforms: %i[ mri windows ]
end

group :development do
  # Use console on exceptions pages [https://github.com/rails/web-console]
  gem "web-console"

  # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
  # gem "rack-mini-profiler"

  # Speed up commands on slow machines / big apps [https://github.com/rails/spring]
  # gem "spring"

  gem "error_highlight", ">= 0.4.0", platforms: [:ruby]
end

group :test do
  # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
  gem "capybara"
  gem "selenium-webdriver"
end
```

### Gemfile.lock

```
<No /home/superman/hello/Gemfile.lock found>
```

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=undefined+method+%60gsub%21%27+for+nil+NilClass&type=Issues

If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issu
         run  bundle lock --add-platform=x86_64-linux
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies....
Writing lockfile to /home/superman/hello/Gemfile.lock
         run  bundle binstubs bundler
Could not find rails-7.1.5.2, importmap-rails-2.2.2, turbo-rails-2.0.17, stimulus-rails-1.3.4, jbuilder-2.14.1, debug-1.11.0,
web-console-4.2.1, actioncable-7.1.5.2, actionmailbox-7.1.5.2, actionmailer-7.1.5.2, actionpack-7.1.5.2, actiontext-7.1.5.2,
actionview-7.1.5.2, activejob-7.1.5.2, activemodel-7.1.5.2, activerecord-7.1.5.2, activestorage-7.1.5.2, activesupport-7.1.5.2,
railties-7.1.5.2, nio4r-2.7.4, irb-1.15.2, websocket-driver-0.8.0, mail-2.8.1, net-imap-0.5.12, rails-dom-testing-2.3.0,
globalid-1.3.0, bigdecimal-3.3.1, rdoc-6.15.0, date-3.4.1, psych-5.2.6, stringio-3.1.7 in locally installed gems
       rails  importmap:install
Could not find rails-7.1.5.2, importmap-rails-2.2.2, turbo-rails-2.0.17, stimulus-rails-1.3.4, jbuilder-2.14.1, debug-1.11.0, web-cons
Run `bundle install` to install missing gems.
       rails  turbo:install stimulus:install
Could not find rails-7.1.5.2, importmap-rails-2.2.2, turbo-rails-2.0.17, stimulus-rails-1.3.4, jbuilder-2.14.1, debug-1.11.0, web-cons
Run `bundle install` to install missing gems.

~ took 13s
❯ bundle install
Could not locate Gemfile

~
✗ cd hello
Required ruby-3.1.4 is not installed.
To install do: 'rvm install "ruby-3.1.4"'

hello master ? via ? v3.1.4
❯ bundle install
Fetching gem metadata from https://rubygems.org/.........
Using rake 13.3.0
Following files may not be writable, so sudo is needed:
  /var/cache/ruby/gemie
  /var/cache/ruby/gemie/build_info
  /var/cache/ruby/gemie/cache
  /var/cache/ruby/gemie/doc
  /var/cache/ruby/gemie/extensions
  /var/cache/ruby/gemie/gems
  /var/cache/ruby/gemie/plugins
  /var/cache/ruby/gemie/specifications
Using benchmark 0.4.1
Using concurrent-ruby 1.3.5
Using bindex 0.8.1
Using msgpack 1.8.0
Using bundler 2.3.26
Using matrix 0.4.3
Using regexp_parser 2.11.3
Using cgi 0.5.0
Using prettyprint 0.2.0
Using drb 2.2.3
Using tsort 0.2.0
Using rack 3.2.3
Using public_suffix 6.0.2
Using thor 1.4.0
Using rexml 3.4.4
Using rubyzip 2.4.1
Using websocket 1.2.11
Using connection_pool 2.5.4
Using error_highlight 0.7.0
Using tzinfo 2.0.6
Using rack-test 2.2.0
Using addressable 2.8.7
Using bootsnap 1.18.6
Using pp 0.6.3
Using erb 4.0.4
Using rackup 2.2.1
Using timeout 0.4.3
Using marcel 1.1.0
Using mini_mime 1.1.5
Using net-protocol 0.2.2
Using base64 0.3.0
Using websocket-extensions 0.1.5
Using net-smtp 0.5.1
Using sqlite3 2.7.4 (x86_64-linux-gnu)
Using net-pop 0.1.2
Using rack-session 2.1.1
Using logger 1.7.0
Using i18n 1.14.7
Using minitest 5.26.0
Using mutex_m 0.3.0
Using sprockets 4.2.2
Using io-console 0.8.1
Using selenium-webdriver 4.32.0
Using zeitwerk 2.6.18
Using crass 1.0.6
Using erubi 1.13.1
Using racc 1.8.1
Using reline 0.6.2
Using builder 3.3.0
Using securerandom 0.4.1
Using nokogiri 1.18.10 (x86_64-linux-gnu)
Using loofah 2.24.1
Using xpath 3.2.0
Using rails-html-sanitizer 1.6.2
Using capybara 3.40.0
Installing websocket-driver 0.8.0 with native extensions
Installing stringio 3.1.7 with native extensions
Installing bigdecimal 3.3.1 with native extensions
Installing date 3.4.1 with native extensions
Installing nio4r 2.7.4 with native extensions


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle config set --local path 'vendor/bundle'
      bundle install

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password:
--- ERROR REPORT TEMPLATE -------------------------------------------------------

```
NoMethodError: undefined method `gsub!' for nil:NilClass

      ext_src.gsub!(src[0..-6], "")
     ^^^^^^
  /usr/lib/ruby/bundler/source/rubygems.rb:220:in `block in install'
  /usr/lib/ruby/bundler/source/rubygems.rb:214:in `each'
  /usr/lib/ruby/bundler/source/rubygems.rb:214:in `install'
  /usr/lib/ruby/bundler/installer/gem_installer.rb:54:in `install'
  /usr/lib/ruby/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /usr/lib/ruby/bundler/installer/parallel_installer.rb:186:in `do_install'
  /usr/lib/ruby/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
  /usr/lib/ruby/bundler/worker.rb:62:in `apply_func'
  /usr/lib/ruby/bundler/worker.rb:57:in `block in process_queue'
  /usr/lib/ruby/bundler/worker.rb:54:in `loop'
  /usr/lib/ruby/bundler/worker.rb:54:in `process_queue'
  /usr/lib/ruby/bundler/worker.rb:91:in `block (2 levels) in create_threads'

```

## Environment

```
Bundler       2.3.26
  Platforms   ruby, x86_64-linux
Ruby          3.1.4p223 (2023-03-30 revision HEAD) [x86_64-linux]
  Full Path   /usr/lib/ruby/bin/ruby
  Config Dir  /etc
RubyGems      3.3.26
  Gem Home    /var/cache/ruby/gemie
  Gem Path    /var/cache/ruby/gemie:/usr/lib/ruby/gemie:/usr/lib64/ruby/gemie:/usr/lib/ruby/gems/2.7.0
  User Home   /home/superman
  User Path   /home/superman/.local/share/gem/ruby/3.1.0
  Bin Dir     /var/cache/ruby/gemie/bin
OpenSSL
  Compiled    OpenSSL 3.1.5 30 Jan 2024
  Loaded      OpenSSL 3.3.3 11 Feb 2025
  Cert File   /var/lib/ssl/cert.pem
  Cert Dir    /var/lib/ssl/certs
Tools
  Git         2.50.1
  RVM         1.29.12-next (manual)
  rbenv       not installed
  chruby      not installed
```

## Bundler Build Metadata

```
Built At          2025-10-18
Git SHA           unknown
Released Version  false
```

## Gemfile

### Gemfile

```ruby
source "https://rubygems.org"

ruby "3.1.4"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.1.5", ">= 7.1.5.1"

# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem "sprockets-rails"

# Use sqlite3 as the database for Active Record
gem "sqlite3", ">= 1.4"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", ">= 5.0"

# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
gem "importmap-rails"

# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails"

# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails"

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder"

# Use Redis adapter to run Action Cable in production
# gem "redis", ">= 4.0.1"

# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ windows jruby ]

# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require: false

# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"

group :development, :test do
  # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
  gem "debug", platforms: %i[ mri windows ]
end

group :development do
  # Use console on exceptions pages [https://github.com/rails/web-console]
  gem "web-console"

  # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
  # gem "rack-mini-profiler"

  # Speed up commands on slow machines / big apps [https://github.com/rails/spring]
  # gem "spring"

  gem "error_highlight", ">= 0.4.0", platforms: [:ruby]
end

group :test do
  # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
  gem "capybara"
  gem "selenium-webdriver"
end
```

### Gemfile.lock

```
GEM
  remote: https://rubygems.org/
  specs:
    actioncable (7.1.5.2)
      actionpack (= 7.1.5.2)
      activesupport (= 7.1.5.2)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
      zeitwerk (~> 2.6)
    actionmailbox (7.1.5.2)
      actionpack (= 7.1.5.2)
      activejob (= 7.1.5.2)
      activerecord (= 7.1.5.2)
      activestorage (= 7.1.5.2)
      activesupport (= 7.1.5.2)
      mail (>= 2.7.1)
      net-imap
      net-pop
      net-smtp
    actionmailer (7.1.5.2)
      actionpack (= 7.1.5.2)
      actionview (= 7.1.5.2)
      activejob (= 7.1.5.2)
      activesupport (= 7.1.5.2)
      mail (~> 2.5, >= 2.5.4)
      net-imap
      net-pop
      net-smtp
      rails-dom-testing (~> 2.2)
    actionpack (7.1.5.2)
      actionview (= 7.1.5.2)
      activesupport (= 7.1.5.2)
      nokogiri (>= 1.8.5)
      racc
      rack (>= 2.2.4)
      rack-session (>= 1.0.1)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.2)
      rails-html-sanitizer (~> 1.6)
    actiontext (7.1.5.2)
      actionpack (= 7.1.5.2)
      activerecord (= 7.1.5.2)
      activestorage (= 7.1.5.2)
      activesupport (= 7.1.5.2)
      globalid (>= 0.6.0)
      nokogiri (>= 1.8.5)
    actionview (7.1.5.2)
      activesupport (= 7.1.5.2)
      builder (~> 3.1)
      erubi (~> 1.11)
      rails-dom-testing (~> 2.2)
      rails-html-sanitizer (~> 1.6)
    activejob (7.1.5.2)
      activesupport (= 7.1.5.2)
      globalid (>= 0.3.6)
    activemodel (7.1.5.2)
      activesupport (= 7.1.5.2)
    activerecord (7.1.5.2)
      activemodel (= 7.1.5.2)
      activesupport (= 7.1.5.2)
      timeout (>= 0.4.0)
    activestorage (7.1.5.2)
      actionpack (= 7.1.5.2)
      activejob (= 7.1.5.2)
      activerecord (= 7.1.5.2)
      activesupport (= 7.1.5.2)
      marcel (~> 1.0)
    activesupport (7.1.5.2)
      base64
      benchmark (>= 0.3)
      bigdecimal
      concurrent-ruby (~> 1.0, >= 1.0.2)
      connection_pool (>= 2.2.5)
      drb
      i18n (>= 1.6, < 2)
      logger (>= 1.4.2)
      minitest (>= 5.1)
      mutex_m
      securerandom (>= 0.3)
      tzinfo (~> 2.0)
    addressable (2.8.7)
      public_suffix (>= 2.0.2, < 7.0)
    base64 (0.3.0)
    benchmark (0.4.1)
    bigdecimal (3.3.1)
    bindex (0.8.1)
    bootsnap (1.18.6)
      msgpack (~> 1.2)
    builder (3.3.0)
    capybara (3.40.0)
      addressable
      matrix
      mini_mime (>= 0.1.3)
      nokogiri (~> 1.11)
      rack (>= 1.6.0)
      rack-test (>= 0.6.3)
      regexp_parser (>= 1.5, < 3.0)
      xpath (~> 3.2)
    cgi (0.5.0)
    concurrent-ruby (1.3.5)
    connection_pool (2.5.4)
    crass (1.0.6)
    date (3.4.1)
    debug (1.11.0)
      irb (~> 1.10)
      reline (>= 0.3.8)
    drb (2.2.3)
    erb (4.0.4)
      cgi (>= 0.3.3)
    error_highlight (0.7.0)
    erubi (1.13.1)
    globalid (1.3.0)
      activesupport (>= 6.1)
    i18n (1.14.7)
      concurrent-ruby (~> 1.0)
    importmap-rails (2.2.2)
      actionpack (>= 6.0.0)
      activesupport (>= 6.0.0)
      railties (>= 6.0.0)
    io-console (0.8.1)
    irb (1.15.2)
      pp (>= 0.6.0)
      rdoc (>= 4.0.0)
      reline (>= 0.4.2)
    jbuilder (2.14.1)
      actionview (>= 7.0.0)
      activesupport (>= 7.0.0)
    logger (1.7.0)
    loofah (2.24.1)
      crass (~> 1.0.2)
      nokogiri (>= 1.12.0)
    mail (2.8.1)
      mini_mime (>= 0.1.1)
      net-imap
      net-pop
      net-smtp
    marcel (1.1.0)
    matrix (0.4.3)
    mini_mime (1.1.5)
    minitest (5.26.0)
    msgpack (1.8.0)
    mutex_m (0.3.0)
    net-imap (0.5.12)
      date
      net-protocol
    net-pop (0.1.2)
      net-protocol
    net-protocol (0.2.2)
      timeout
    net-smtp (0.5.1)
      net-protocol
    nio4r (2.7.4)
    nokogiri (1.18.10-x86_64-linux-gnu)
      racc (~> 1.4)
    pp (0.6.3)
      prettyprint
    prettyprint (0.2.0)
    psych (5.2.6)
      date
      stringio
    public_suffix (6.0.2)
    puma (7.1.0)
      nio4r (~> 2.0)
    racc (1.8.1)
    rack (3.2.3)
    rack-session (2.1.1)
      base64 (>= 0.1.0)
      rack (>= 3.0.0)
    rack-test (2.2.0)
      rack (>= 1.3)
    rackup (2.2.1)
      rack (>= 3)
    rails (7.1.5.2)
      actioncable (= 7.1.5.2)
      actionmailbox (= 7.1.5.2)
      actionmailer (= 7.1.5.2)
      actionpack (= 7.1.5.2)
      actiontext (= 7.1.5.2)
      actionview (= 7.1.5.2)
      activejob (= 7.1.5.2)
      activemodel (= 7.1.5.2)
      activerecord (= 7.1.5.2)
      activestorage (= 7.1.5.2)
      activesupport (= 7.1.5.2)
      bundler (>= 1.15.0)
      railties (= 7.1.5.2)
    rails-dom-testing (2.3.0)
      activesupport (>= 5.0.0)
      minitest
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.6.2)
      loofah (~> 2.21)
      nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
    railties (7.1.5.2)
      actionpack (= 7.1.5.2)
      activesupport (= 7.1.5.2)
      irb
      rackup (>= 1.0.0)
      rake (>= 12.2)
      thor (~> 1.0, >= 1.2.2)
      zeitwerk (~> 2.6)
    rake (13.3.0)
    rdoc (6.15.0)
      erb
      psych (>= 4.0.0)
      tsort
    regexp_parser (2.11.3)
    reline (0.6.2)
      io-console (~> 0.5)
    rexml (3.4.4)
    rubyzip (2.4.1)
    securerandom (0.4.1)
    selenium-webdriver (4.32.0)
      base64 (~> 0.2)
      logger (~> 1.4)
      rexml (~> 3.2, >= 3.2.5)
      rubyzip (>= 1.2.2, < 3.0)
      websocket (~> 1.0)
    sprockets (4.2.2)
      concurrent-ruby (~> 1.0)
      logger
      rack (>= 2.2.4, < 4)
    sprockets-rails (3.5.2)
      actionpack (>= 6.1)
      activesupport (>= 6.1)
      sprockets (>= 3.0.0)
    sqlite3 (2.7.4-x86_64-linux-gnu)
    stimulus-rails (1.3.4)
      railties (>= 6.0.0)
    stringio (3.1.7)
    thor (1.4.0)
    timeout (0.4.3)
    tsort (0.2.0)
    turbo-rails (2.0.17)
      actionpack (>= 7.1.0)
      railties (>= 7.1.0)
    tzinfo (2.0.6)
      concurrent-ruby (~> 1.0)
    web-console (4.2.1)
      actionview (>= 6.0.0)
      activemodel (>= 6.0.0)
      bindex (>= 0.4.0)
      railties (>= 6.0.0)
    websocket (1.2.11)
    websocket-driver (0.8.0)
      base64
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    xpath (3.2.0)
      nokogiri (~> 1.8)
    zeitwerk (2.6.18)

PLATFORMS
  x86_64-linux

DEPENDENCIES
  bootsnap
  capybara
  debug
  error_highlight (>= 0.4.0)
  importmap-rails
  jbuilder
  puma (>= 5.0)
  rails (~> 7.1.5, >= 7.1.5.1)
  selenium-webdriver
  sprockets-rails
  sqlite3 (>= 1.4)
  stimulus-rails
  turbo-rails
  tzinfo-data
  web-console

RUBY VERSION
   ruby 3.1.4p223

BUNDLED WITH
   2.3.26
```

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=undefined+method+%60gsub%21%27+for+nil+NilClass&type=Issues

If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there.

hello master ? via ? v3.1.4 took 8s
✗ rails -v
Could not find rails-7.1.5.2, importmap-rails-2.2.2, turbo-rails-2.0.17, stimulus-rails-1.3.4, jbuilder-2.14.1, debug-1.11.0, web-console-4.2.1, actioncable-7.1.5.2, actionmailbox-7.1.5.2, actionmailer-7.1.5.2, actionpack-7.1.5.2, actiontext-7.1.5.2, actionview-7.1.5.2, activejob-7.1.5.2, activemodel-7.1.5.2, activerecord-7.1.5.2, activestorage-7.1.5.2, activesupport-7.1.5.2, railties-7.1.5.2, nio4r-2.7.4, irb-1.15.2, websocket-driver-0.8.0, mail-2.8.1, net-imap-0.5.12, rails-dom-testing-2.3.0, globalid-1.3.0, bigdecimal-3.3.1, rdoc-6.15.0, date-3.4.1, psych-5.2.6, stringio-3.1.7 in locally installed gems
Run `bundle install` to install missing gems.
```
Comment 1 Артем Добровинский 2025-10-18 14:40:11 MSK
bundle config set --local path 'vendor/bundle' не помогает в решении проблемы
Comment 2 Артем Добровинский 2025-10-18 15:00:35 MSK
Если сделать всё не по инструкции в wiki, а официальной https://guides.rubyonrails.org/install_ruby_on_rails.html#install-ruby-on-ubuntu всё работает.
Возможно, стоит править wiki.