title: Failing to setup my database
body: <p>I have Ruby on Rails running on Raspberry Pi 3/Raspbian (probably not a good idea), although I rarely encounter any issues. However, when I switched from SQLite to PostgreSQL for my database I get this strange error message that I cannot wrap my head around. I created a new Rails application using <code>rails new myapp --database=postgresql</code> which generated my application. I then went on to issue <code>rails db:setup</code> which is where I ran into the issue. I captured the error message into a text file using <code>rails db:setup &amp;&gt; error_message.txt</code>, which created a lengthy file. The first two lines are probably the most interesting:</p>
  
  <pre class="lang-none prettyprint-override"><code>/usr/local/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/compile_cache/iseq.rb:18: [BUG] Bus Error at 0x00aaa33b
  ruby 2.5.1p57 (2018-03-29 revision 63029) [armv7l-linux-eabihf]
  </code></pre>
  
  <p>My question is essentially: <em>is Ruby on Rails incompatible with ARM architectures?</em></p>
  
  <p><strong>Update 1:</strong> I was able to get around this error by commenting out <code>require 'bootsnap/setup'</code> under <code>config/boot.rb</code>, but then I encounter this error instead:</p>
  
  <pre><code>** Invoke db:setup (first_time)
  ** Invoke db:schema:load_if_ruby (first_time)
  ** Invoke db:create (first_time)
  ** Invoke db:load_config (first_time)
  ** Invoke environment (first_time)
  ** Execute environment
  /usr/local/lib/ruby/gems/2.5.0/gems/rb-inotify-0.9.10/lib/rb-inotify/notifier.rb:54: [BUG] Segmentation fault at 0x00000023
  ruby 2.5.1p57 (2018-03-29 revision 63029) [armv7l-linux-eabihf]
  </code></pre>
  
  <p><strong>Update 2:</strong> I decided to setup my development environment on Debian 9 (executing on an x86 architecture), instead of my Raspbian (ARM architecture). I can now confirm that Ruby on Rails executes the aforementioned commands without generating any errors.</p>