-
Notifications
You must be signed in to change notification settings - Fork 170
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
./cstore.pb-c.h:7:10: fatal error: 'protobuf-c/protobuf-c.h' file not found #40
Comments
I have some questions:
|
Both work! Btw, I tried to do 'make' after adding .../Cellar/protobuf-c/... to my path, still same issue:
(you see different version of Postgres.app because I upgraded it after posting the message last night. current version of postgres.app is 9.3.5.2) |
@falconair you are right. One of my coworkers says he had ran into a similar situation after he upgraded. He said he ran the following command lines to fix his brew installation:
Can you try them and then reinstall protobuf-c? |
Strange, I did update and upgrade, uninstalled protobuf-c and re-installed, still same issue. Btw, I just noticed that the error I pasted originally cut out some text due to angle brackets. Here is another attempt: gcc -mmacosx-version-min=10.7 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv --std=c99 -I. -I. -I/Applications/Postgres.app/Contents/Versions/9.3/include/postgresql/server -I/Applications/Postgres.app/Contents/Versions/9.3/include/postgresql/internal -I/Applications/Postgres.app/Contents/Versions/9.3/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/9.3/include -c -o cstore.pb-c.o cstore.pb-c.c In file included from cstore.pb-c.c:9: ./cstore.pb-c.h:7:10: fatal error: 'protobuf-c/protobuf-c.h' file not found #include <protobuf-c/protobuf-c.h> ^ 1 error generated. make: *** [cstore.pb-c.o] Error 1 |
I fought this for a bit on my own machine and found that the 10.10-provided version of
Before doing the above,
Now I see:
Not entirely sure why this made the difference, but now Hopefully this helps! |
@jasonmp85 I followed your steps exactly and I was able to compile! Thanks! On to the experiments :) |
Awesome! Closing now. |
Hi, I'm trying to install cstore_fdw and getting the following error:
gcc -mmacosx-version-min=10.7 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv --std=c99 -I. -I. -I/Applications/Postgres93.app/Contents/MacOS/include/postgresql/server -I/Applications/Postgres93.app/Contents/MacOS/include/postgresql/internal -I/Applications/Postgres93.app/Contents/MacOS/include/libxml2 -I/Applications/Postgres93.app/Contents/MacOS/include -c -o cstore.pb-c.o cstore.pb-c.c
In file included from cstore.pb-c.c:9:
./cstore.pb-c.h:7:10: fatal error: 'protobuf-c/protobuf-c.h' file not found
include <protobuf-c/protobuf-c.h>
1 error generated.
make: *** [cstore.pb-c.o] Error 1
I am attempting this on my MBP (osx) laptop. I have installed postgre using postgres.app (version 9.3.1.0 (18)).
I installed protobuf and they seem to have installed without any errors:
brew info protobuf-c
protobuf-c: stable 1.0.2
https://github.com/protobuf-c/protobuf-c
/usr/local/Cellar/protobuf-c/1.0.2 (10 files, 304K) *
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/protobuf-c.rb
==> Dependencies
Build: pkg-config ✔
Required: protobuf ✔
I am running OS X Yosemite (10.10)
The text was updated successfully, but these errors were encountered: