<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gregminster</author_name>
  <author_url>https://blog.hatena.ne.jp/gregminster/</author_url>
  <blog_title>約束の地</blog_title>
  <blog_url>https://obel.hatenablog.jp/</blog_url>
  <categories>
    <anon>OS -&gt; Mac</anon>
    <anon>プログラミング -&gt; Ruby on Rails</anon>
    <anon>プログラミング -&gt; 言語 -&gt; Ruby</anon>
  </categories>
  <description>前提 Intel Mac pg のバージョンは 1.4.6 Ruby のバージョンは 3.2.2 PostgreSQL のバージョンは 15 結論 bundler の config にて、build.pg に対して --with-opt-dir=&quot;/usr/local/opt/libpq&quot; を設定する。 具体的な設定方法 設定方法は 2つ あります。 1. bundle config コマンドで設定する場合 以下のコマンドを実行します。 $ bundle config --local build.pg --with-opt-dir=&quot;/usr/local/opt/libpq&quot; すると、カレント…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobel.hatenablog.jp%2Fentry%2F20230802%2F1690902000&quot; title=&quot;macOS で Bundler で pg gem をインストールしようとする際に Can&amp;#39;t find the &amp;#39;libpq-fe.h&amp;#39; header というエラーが出る場合の対処方法の一つ - 約束の地&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/459657/1568741889764668</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-08-02 00:00:00</published>
  <title>macOS で Bundler で pg gem をインストールしようとする際に Can't find the 'libpq-fe.h' header というエラーが出る場合の対処方法の一つ</title>
  <type>rich</type>
  <url>https://obel.hatenablog.jp/entry/20230802/1690902000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
