-
Notifications
You must be signed in to change notification settings - Fork 180
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
0.10.0 build failed on mac os #53
Comments
Original comment by Michael Granger (Bitbucket: ged, GitHub: ged). Can you also attach or paste your mkmf.log? That will have the specifics as to why it can't find the libpq-fe.h header. Thanks! PS: while I do all of my development on a Mac, I haven't tested this under 1.9.1 since 1.9.2 came out. I doubt that's the issue, however. |
Original comment by sl_bug (Bitbucket: sl_bug, ). i don't know why 1.9.1 in path, but i use ruby 1.9.3 ruby -v output: ruby 1.9.3dev (2010-11-20 trunk 29843) [x86_64-darwin10.5.0] P.S. using ruby 1.9.2 i got same error. and strange 1.9.1 in path too - "/Users/user/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/mkmf.rb" |
Original comment by Michael Granger (Bitbucket: ged, GitHub: ged). I think the problem is that your libpq is compiled as a universal binary (with three architectures) and your Ruby is compiled without at least one of them. If you do a For example, my system Ruby says:
while my rvm-installed 1.9.2 says:
The clue is in the linker phase from the mkmkf.log:
That's why I put that warning in the extconf that says:
|
Original comment by sl_bug (Bitbucket: sl_bug, ). I haven't compiled postgres by myself, i downloaded binary. seems like only one way to fix it is compile ruby as universal binary or set ARCHFLAGS='-arch x86_64' before installing pg gem. |
Original comment by Michael Granger (Bitbucket: ged, GitHub: ged). Even setting the architecture yourself won't work, as it won't be able to link completely due to the missing architectures. If you want to use the installation of PostgreSQL you're currently using, the only way (that I know of) is, as you say, to compile Ruby with the same three architectures that your Postgres supports. |
Original comment by sl_bug (Bitbucket: sl_bug, ). setting archflags helped. at least gem installed successfully and it works. |
Original report by sl_bug (Bitbucket: sl_bug, ).
log:
everything was ok in 0.9.0 pg gem.
The text was updated successfully, but these errors were encountered: