MyBB에서 discourse로 데이터베이스를 가져오려고 합니다. @Paul_King와 마찬가지로 DigitalOcean 서버에서 작동하지 않습니다. 이 가이드를 따라가면서 온갖 종류의 오류가 계속 발생합니다.
명령을 실행하는 데 막혀 있습니다.
$ bundle exec rails db:drop
bundler: command not found: rails
Install missing gem executables with `bundle install`
bundle install은 완료되었다고 합니다.
$ bundle install
Your Gemfile lists the gem mysql2 (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Using bundler 1.16.1
Using mysql2 0.4.10
Bundle complete! 2 Gemfile dependencies, 2 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
rails를 수동으로 설치하려고 하면 다음과 같은 결과가 나옵니다:
$ gem install rails
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/racc-1.5.2/ext/racc/cparse
/usr/bin/ruby2.5 -r ./siteconf20210110-8155-1ms05r3.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.5.0/gems/racc-1.5.2 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/racc-1.5.2/gem_make.out
이것은 정말 짜증스럽습니다.
이 게시글을 열어두고 결국 rails를 설치하는 데 성공했습니다. 그 후 또 다른 수많은 오류가 발생했지만 그것들도 해결했습니다. 오류. 매. 단계.마다. 발생했습니다.
이토록 순수한 증오를 소프트웨어에 느낀 적은 처음입니다. 왜 ruby는 이런가요? 이것은 악몽입니다. 지금은 이 오류로 인해 막혀 있습니다:
$ bundle exec rails db:drop
Traceback (most recent call last):
1: from /usr/local/bin/bundle:23:in `<main>'
/usr/local/bin/bundle:23:in `load': cannot load such file -- /usr/share/rubygems-integration/all/gems/bundler-1.16.1/exe/bundle (LoadError)
도와주실 분 계신가요?