Installing mysql2 gem errors on Apple silicon M1, M2 or M3 Mac running macOS Sonoma.
Make sure mysql-client, openssl and zstd are installed on Mac via Homebrew.
Replace
mysql-clientwith whichever mysql package you are using
| echo 'require "objspace"; ObjectSpace.trace_object_allocations_start; Kernel.send(:define_method, :sup) do |obj| ; puts "#{ ObjectSpace.allocation_sourcefile(obj) }:#{ ObjectSpace.allocation_sourceline(obj) }"; end' > tmp/tmp-gemfile | |
| cat Gemfile >> tmp/tmp-gemfile | |
| cat tmp/tmp-gemfile > Gemfile | |
| # $ bundle exec irb | |
| # irb(main):001:0> require 'rails' | |
| # => true | |
| # irb(main):002:0> sup(Rails) | |
| # /Users/richardschneeman/.gem/ruby/2.4.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:3 |
| #!/usr/bin/env ruby | |
| def changelog_for_gem(gem) | |
| changelogs = `bundle exec gem contents #{gem}`.lines.grep(/history|changelog|news/i) | |
| if changelogs.empty? | |
| puts "No changelog found for gem #{gem}" | |
| return nil | |
| end |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |