Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROR activerecord sample app errors on bundle install step #34

Open
schoudhury opened this issue Jun 25, 2019 · 2 comments
Open

ROR activerecord sample app errors on bundle install step #34

schoudhury opened this issue Jun 25, 2019 · 2 comments

Comments

@schoudhury
Copy link
Contributor

schoudhury commented Jun 25, 2019

Following error is observed for bundle install step on macOS Mojave 10.14.6

An error occurred while installing pg (1.1.4), and Bundler cannot continue.
Make sure that `gem install pg -v '1.1.4' --source 'https://rubygems.org/'` succeeds before bundling.

The above error is caused when PostgreSQL server is not installed locally, which in the YBDB case is a normal case. The underlying error is Can't find the 'libpq-fe.h header.

Fixed the above by following instructions listed here: https://michaelrigart.be/install-pg-ruby-gem-without-postgresql/

$ brew install libpq
$ bundle config --local build.pg --with-opt-dir="/usr/local/opt/libpq"
$ bundle install
@sibtayshah
Copy link
Contributor

@schoudhury is there a gem package available for yugabyte? We need these to connect with YugaByte

@schoudhury
Copy link
Contributor Author

@syedshah12tech pls see the updated comment above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants