Deploy Unable to find PostgreSQL client library.
donnen
HOBBY
a year ago
I'm attempting to deploy a new Ruby on Rails app, which includes a PostgreSQL database. The gemfile includes the PG gem, but Railway is failing to deploy the PG gem. It appears to be looking for a client library:
12 23.61 Installing rails 7.1.3.2
12 23.66 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
12 23.66
12 23.66 current directory: /usr/local/bundle/ruby/3.1.0/gems/pg-1.5.6/ext
12 23.66 /usr/local/bin/ruby -I /usr/local/lib/ruby/3.1.0 extconf.rb
12 23.66 Calling libpq with GVL unlocked
12 23.66 checking for pg_config… no
12 23.66 checking for libpq per pkg-config… no
12 23.66 Using libpq from
12 23.66 checking for libpq-fe.h… no
12 23.66 Can't find the 'libpq-fe.h header
12 23.66 *
12 23.66
12 23.66 Unable to find PostgreSQL client library.
12 23.66
1 Replies
donnen
HOBBY
a year ago
Solved - it turns out that the deploy process was pulling in an old outdated dockerfile. I had assumed that Railway generated its own.
Status changed to Solved Railway • over 1 year ago