Ciao
Sto cercando di migrare WordPress a Discourse.
Ambiente di sviluppo: macOS.
Discourse funziona bene, ma quando provo a migrare WordPress a Discourse eseguendo
IMPORT=1 bundle && IMPORT=1 bundle exec ruby script/import_scripts/bbpress.rb
ottengo questo errore
Gem::Ext::BuildError: ERRORE: Impossibile creare la gemma nativa.
directory corrente: /Users/devuser/.rvm/gems/ruby-3.2.2/gems/mysql2-0.5.5/ext/mysql2
/Users/devuser/.rvm/rubies/ruby-3.2.2/bin/ruby extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for rb_gc_mark_movable()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enc_interned_str() in ruby.h... yes
-----
Impossibile trovare la directory della libreria /home/devuser/.rvm/usr/lib
-----
*** extconf.rb failed ***
Impossibile creare Makefile per qualche motivo, probabilmente a causa della mancanza delle librerie e/o degli header necessari. Controlla il file mkmf.log per maggiori dettagli. Potrebbero essere necessarie opzioni di configurazione.
Opzioni di configurazione fornite:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/devuser/.rvm/rubies/ruby-3.2.2/bin/$(RUBY_BASE_NAME)
--with-openssl-dir
--with-openssl-dir
--with-openssl-include
--without-openssl-include=${openssl-dir}/include
--with-openssl-lib
--without-openssl-lib=${openssl-dir}/lib
Per vedere perché questa estensione non è riuscita a compilare, controlla il file mkmf.log che si trova qui:
/Users/devuser/.rvm/gems/ruby-3.2.2/extensions/arm64-darwin-22/3.2.0/mysql2-0.5.5/mkmf.log
extconf failed, exit code 1
I file delle gemme rimarranno installati in /Users/devuser/.rvm/gems/ruby-3.2.2/gems/mysql2-0.5.5 per ispezione.
Risultati registrati in /Users/devuser/.rvm/gems/ruby-3.2.2/extensions/arm64-darwin-22/3.2.0/mysql2-0.5.5/gem_make.out
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:119:in `run'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:27:in `build'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:187:in `build_extension'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:221:in `block in build_extensions'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:218:in `each'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:218:in `build_extensions'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/installer.rb:843:in `build_extensions'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/rubygems_gem_installer.rb:72:in `build_extensions'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/rubygems_gem_installer.rb:28:in `install'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/source/rubygems.rb:200:in `install'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/installer/gem_installer.rb:54:in `install'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/installer/parallel_installer.rb:155:in `do_install'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/installer/parallel_installer.rb:146:in `block in worker_pool'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/worker.rb:62:in `apply_func'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/worker.rb:57:in `block in process_queue'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/worker.rb:54:in `loop'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/worker.rb:54:in `process_queue'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'
Si è verificato un errore durante l'installazione di mysql2 (0.5.5) e Bundler non può continuare.
In Gemfile:
mysql2
Gem::Ext::BuildError: ERRORE: Impossibile creare la gemma nativa.
directory corrente: /Users/devuser/.rvm/gems/ruby-3.2.2/gems/tiny_tds-2.1.5/ext/tiny_tds
/Users/devuser/.rvm/rubies/ruby-3.2.2/bin/ruby extconf.rb
ricerca degli header di freetds nelle seguenti directory:
- /opt/local/include
- /opt/local/include/freetds
- /usr/local/include
- /usr/local/include/freetds
ricerca della libreria freetds nelle seguenti directory:
- /opt/local/lib
- /opt/local/lib/freetds
- /usr/local/lib
- /usr/local/lib/freetds
checking for sybfront.h... no
checking for sybdb.h... no
checking for tdsdbopen() in -lsybdb... no
checking for dbanydatecrack() in -lsybdb... no
Fallito! Hai installato FreeTDS 0.95.80 o superiore?
*** extconf.rb failed ***
Impossibile creare Makefile per qualche motivo, probabilmente a causa della mancanza delle librerie e/o degli header necessari. Controlla il file mkmf.log per maggiori dettagli. Potrebbero essere necessarie opzioni di configurazione.
Opzioni di configurazione fornite:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/devuser/.rvm/rubies/ruby-3.2.2/bin/$(RUBY_BASE_NAME)
--help
--with-freetds-dir
--without-freetds-dir
--with-freetds-include
--without-freetds-include=${freetds-dir}/include
--with-freetds-lib
--without-freetds-lib=${freetds-dir}/lib
--with-sybdb-dir
--without-sybdb-dir
--with-sybdb-include
--without-sybdb-include=${sybdb-dir}/include
--with-sybdb-lib
--without-sybdb-lib=${sybdb-dir}/lib
--with-sybdblib
--without-sybdblib
--with-sybdblib
--without-sybdblib
Per vedere perché questa estensione non è riuscita a compilare, controlla il file mkmf.log che si trova qui:
/Users/devuser/.rvm/gems/ruby-3.2.2/extensions/arm64-darwin-22/3.2.0/tiny_tds-2.1.5/mkmf.log
extconf failed, exit code 1
I file delle gemme rimarranno installati in /Users/devuser/.rvm/gems/ruby-3.2.2/gems/tiny_tds-2.1.5 per ispezione.
Risultati registrati in /Users/devuser/.rvm/gems/ruby-3.2.2/extensions/arm64-darwin-22/3.2.0/tiny_tds-2.1.5/gem_make.out
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:119:in `run'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:27:in `build'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:187:in `build_extension'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:221:in `block in build_extensions'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:218:in `each'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:218:in `build_extensions'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/installer.rb:843:in `build_extensions'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/rubygems_gem_installer.rb:72:in `build_extensions'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/rubygems_gem_installer.rb:28:in `install'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/source/rubygems.rb:200:in `install'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/installer/gem_installer.rb:54:in `install'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/installer/parallel_installer.rb:155:in `do_install'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/installer/parallel_installer.rb:146:in `block in worker_pool'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/worker.rb:62:in `apply_func'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/worker.rb:57:in `block in process_queue'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/worker.rb:54:in `loop'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/worker.rb:54:in `process_queue'
/Users/devuser/.rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.4/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'
Si è verificato un errore durante l'installazione di tiny_tds (2.1.5) e Bundler non può continuare.
In Gemfile:
tiny_tds
Ho bisogno di assistenza
Grazie