PG::ConnectionBad: fe_sendauth: no password supplied

localhost as a host refers to a TCP connection, which means the auth method is md5 (password required) per your pg_hba.conf: # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5 For the peer method to be taken, you’d need to connect through Unix domain sockets, and since you seem to be using … Read more

warning: constant ::Fixnum is deprecated When generating new model

This warnings appear because you are using ruby 2.4.0. This version introduced this change: Unify Fixnum and Bignum into Integer See here for the announcement: https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/ The warnings come from the activesupport gem which is part of rails and will be fixed in an upcoming release. For now you can just ignore those warnings. Update: … Read more

Can’t find the ‘libpq-fe.h header when trying to install pg gem

It looks like in Ubuntu that header is part of the libpq-dev package (at least in the following Ubuntu versions: 11.04 (Natty Narwhal), 10.04 (Lucid Lynx), 11.10 (Oneiric Ocelot), 12.04 (Precise Pangolin), 14.04 (Trusty Tahr) and 18.04 (Bionic Beaver)): So try installing libpq-dev or its equivalent for your OS: For Ubuntu/Debian systems: sudo apt-get install libpq-dev On Red Hat Linux (RHEL) systems: yum install postgresql-devel For Mac Homebrew: brew install postgresql For Mac MacPorts PostgreSQL: gem install pg — –with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config … Read more

How do I remove Permission denied @ rb_sysopen – Gem install error?

Its a permissions issue. You could fix it with this: or possibly in your case What does this do: This is telling the system to change the files to change the ownership to the current user. Something must have gotten messed up when something got installed. Usually this is because there are multiple accounts or … Read more