Zaman
Zaman

Reputation: 101

Gem::Ext::BuildError: ERROR: Failed to build gem native extension in macOS

I am getting error while running bundle install. This is on macOS 12.6 (Intel chip).

Installing pg_query 2.1.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

...

An error occurred while installing pg_query (2.1.4), and Bundler cannot continue.

In Gemfile:
  pg_query

Upvotes: 0

Views: 509

Answers (2)

Voltan
Voltan

Reputation: 89

I had the same error, macOS 12.6 (intel i5). This helped me:

Upvotes: 1

Zaman
Zaman

Reputation: 101

Deleting xcode tools and reinstalling fixed the issue.

Upvotes: 2

Related Questions