Tag: errors

  • Ruby Exception Handling Practice: Be As Specific As Possible

    Avdi Grimm covers Ruby exception handling in way more detail in Exceptional Ruby (not an affiliate link!) and you should check it out Ruby Exception Handling In Ruby, you should already be aware that catching Exception is a blunt instrument that captures error states that generally should not be handled by your code. This is…

  • pg gem pg-0.18.4 install errors: implicit declaration of function ‘gettimeofday’ is invalid in C99

    Reflexively trying the usual suspects installing pg-0.18.4: https://stackoverflow.com/questions/63182467/not-able-to-install-pg-gem-with-rails Maybe xcode is improperly installed? sudo xcode-select -s /Library/Developer/CommandLineTools Maybe postgresql is improperly installed? brew install postgresqlRunning `brew update –preinstall`… Warning: postgresql 14.2_1 is already installed and up-to-date.To reinstall 14.2_1, run:brew reinstall postgresql ❯ brew reinstall postgresql gem install pg -v ‘0.18.4’ It would have been beneficial…

  • An error occurred while installing debase 0.2.4.1 and…

    An error occurred while installing debase (0.2.4.1), and Bundler cannot continue. https://github.com/ruby-debug/debase/issues/65 gem install debase — –with-cflags=”-Wno-error=implicit-function-declaration”