أحاول استيراد قاعدة البيانات من 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)
هل يمكن لأحد المساعدة؟