Nokogiri installing with wrong architecture ?

Added by Joao Serra 2 months ago

Hey guys,
Im having trouble running redmine I believe is something related with nokogiri using the wrong architecture

Im on a mac mini
I don't work with ruby or gems neither im a system admin
can you assist me? I believe I will need to compiler the library with system libs or something, or maybe change something in the bundler

this is the log when i try to run

"bundle exec rails server webrick -e production"


Traceback (most recent call last):
31: from bin/rails:4:in `<main>'
30: from bin/rails:4:in `require'
29: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/commands.rb:18:in `<top (required)>'
28: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/command.rb:46:in `invoke'
27: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/command/base.rb:69:in `perform'
26: from /Library/Ruby/Gems/2.6.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
25: from /Library/Ruby/Gems/2.6.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
24: from /Library/Ruby/Gems/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
23: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/commands/server/server_command.rb:142:in `perform'
22: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/commands/server/server_command.rb:142:in `tap'
21: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/commands/server/server_command.rb:145:in `block in perform'
20: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/commands/server/server_command.rb:145:in `require'
19: from /Users/joaoserra/redmine-4.2.1/config/application.rb:18:in `<top (required)>'
18: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler.rb:174:in `require'
17: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:50:in `require'
16: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:50:in `each'
15: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:61:in `block in require'
14: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:61:in `each'
13: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:66:in `block (2 levels) in require'
12: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:66:in `require'
11: from /Library/Ruby/Gems/2.6.0/gems/roadie-rails-2.2.0/lib/roadie-rails.rb:3:in `<top (required)>'
10: from /Library/Ruby/Gems/2.6.0/gems/roadie-rails-2.2.0/lib/roadie-rails.rb:3:in `require'
9: from /Library/Ruby/Gems/2.6.0/gems/roadie-rails-2.2.0/lib/roadie/rails.rb:8:in `<top (required)>'
8: from /Library/Ruby/Gems/2.6.0/gems/roadie-rails-2.2.0/lib/roadie/rails.rb:8:in `require'
7: from /Library/Ruby/Gems/2.6.0/gems/roadie-4.0.0/lib/roadie.rb:31:in `<top (required)>'
6: from /Library/Ruby/Gems/2.6.0/gems/roadie-4.0.0/lib/roadie.rb:31:in `require'
5: from /Library/Ruby/Gems/2.6.0/gems/roadie-4.0.0/lib/roadie/inliner.rb:4:in `<top (required)>'
4: from /Library/Ruby/Gems/2.6.0/gems/roadie-4.0.0/lib/roadie/inliner.rb:4:in `require'
3: from /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri.rb:11:in `<top (required)>'
2: from /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri.rb:11:in `require'
1: from /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri/extension.rb:6:in `<top (required)>'
*/Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri/extension.rb:6:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri/2.6/nokogiri.bundle, 0x0009): could not use '/Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri/2.6/nokogiri.bundle' because it is not a compatible arch - /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri/2.6/nokogiri.bundle (LoadError)*
32: from bin/rails:4:in `<main>'
31: from bin/rails:4:in `require'
30: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/commands.rb:18:in `<top (required)>'
29: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/command.rb:46:in `invoke'
28: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/command/base.rb:69:in `perform'
27: from /Library/Ruby/Gems/2.6.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
26: from /Library/Ruby/Gems/2.6.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
25: from /Library/Ruby/Gems/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
24: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/commands/server/server_command.rb:142:in `perform'
23: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/commands/server/server_command.rb:142:in `tap'
22: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/commands/server/server_command.rb:145:in `block in perform'
21: from /Library/Ruby/Gems/2.6.0/gems/railties-5.2.5/lib/rails/commands/server/server_command.rb:145:in `require'
20: from /Users/joaoserra/redmine-4.2.1/config/application.rb:18:in `<top (required)>'
19: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler.rb:174:in `require'
18: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:50:in `require'
17: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:50:in `each'
16: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:61:in `block in require'
15: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:61:in `each'
14: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:66:in `block (2 levels) in require'
13: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.20/lib/bundler/runtime.rb:66:in `require'
12: from /Library/Ruby/Gems/2.6.0/gems/roadie-rails-2.2.0/lib/roadie-rails.rb:3:in `<top (required)>'
11: from /Library/Ruby/Gems/2.6.0/gems/roadie-rails-2.2.0/lib/roadie-rails.rb:3:in `require'
10: from /Library/Ruby/Gems/2.6.0/gems/roadie-rails-2.2.0/lib/roadie/rails.rb:8:in `<top (required)>'
9: from /Library/Ruby/Gems/2.6.0/gems/roadie-rails-2.2.0/lib/roadie/rails.rb:8:in `require'
8: from /Library/Ruby/Gems/2.6.0/gems/roadie-4.0.0/lib/roadie.rb:31:in `<top (required)>'
7: from /Library/Ruby/Gems/2.6.0/gems/roadie-4.0.0/lib/roadie.rb:31:in `require'
6: from /Library/Ruby/Gems/2.6.0/gems/roadie-4.0.0/lib/roadie/inliner.rb:4:in `<top (required)>'
5: from /Library/Ruby/Gems/2.6.0/gems/roadie-4.0.0/lib/roadie/inliner.rb:4:in `require'
4: from /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri.rb:11:in `<top (required)>'
3: from /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri.rb:11:in `require'
2: from /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri/extension.rb:4:in `<top (required)>'
1: from /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri/extension.rb:25:in `rescue in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.7-arm64-darwin/lib/nokogiri/extension.rb:25:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)

Replies (1)

RE: Nokogiri installing with wrong architecture ? - Added by Joao Serra 2 months ago

So I've ended up going to the gemfiles and comment the wrong architecture, so it would not require it or tried to install it on my mac mini, in my case was arm64

i believe this is an issue due the mac itself cause it should only install 1 architecture but since it has some issues when identifying the arch it will install both

(1-1/1)