Software Alternatives & Reviews

Can't find the PostgreSQL client library (libpq) – after updating to Ruby 3.2.2

RubyGems asdf-vm
  1. RubyGems. org is the Ruby community's gem hosting service. Instantly publish your gems and then install them. Use the API find out more about available gems. Become a contributor and improve the site yourself.
    Pricing:
    • Open Source
    Bundle install Fetching gem metadata from https://rubygems.org/........... Resolving dependencies... Installing pg 1.5.4 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. Current directory: /Users/victorblomberg/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/pg-1.5.4/ext /Users/victorblomberg/.asdf/installs/ruby/3.2.2/bin/ruby extconf.rb --with-pg-config\=/usr/local/opt/libpq/bin/pg_config Calling libpq with GVL unlocked Using config values from /usr/local/opt/libpq/bin/pg_config Checking for whether -Wl,-rpath,/usr/local/opt/libpq/lib is accepted as LDFLAGS... Yes Using libpq from /usr/local/opt/libpq/lib Checking for libpq-fe.h... Yes Checking for libpq/libpq-fs.h... Yes Checking for pg_config_manual.h... Yes Checking for PQconnectdb() in -lpq... No Checking for PQconnectdb() in -llibpq... No Checking for PQconnectdb() in -lms/libpq... No Can't find the PostgreSQL client library (libpq) ***************************************************************************** Unable to find PostgreSQL client library. Please install libpq or postgresql client package like so: Brew install libpq Or try again with: Gem install pg -- --with-pg-config=/path/to/pg_config Or set library paths manually with: Gem install pg -- --with-pg-include=/path/to/libpq-fe.h/ --with-pg-lib=/path/to/libpq.so/ *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary Libraries and/or headers. Check the mkmf.log file for more details. You may Need configuration options.

    #Front End Package Manager #Package Manager #Code Collaboration 95 social mentions

  2. An extendable version manager
    Pricing:
    • Open Source
    I am using ASDF (https://asdf-vm.com/) as my Version Manager.

    #Programming #Programming Tools #Version Manager 163 social mentions

Discuss: Can't find the PostgreSQL client library (libpq) – after updating to Ruby 3.2.2

Log in or Post with