digideskio / protobuf-c

Automatically exported from code.google.com/p/protobuf-c
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

compilation error #88

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. download latest protobuf-c package 
2. compile using ./configure --prefix=/usr/
3. throws error: protobuf headers required

What is the expected output? What do you see instead?
I'm unable to install protobuf-c package. Do I need to download any supporting 
packages? If yes, can you please provide them.

What version of the product are you using? On what operating system?
latest version 0.15 and I ran on 2.6.18-238.el5 redhat version.

Please provide any additional information below.
log below:

checking winsock.h usability... no checking winsock.h presence... no checking for winsock.h... no checking io.h usability... no checking io.h presence... no checking for io.h... no checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking for unistd.h... (cached) yes checking google/protobuf/stubs/common.h usability... no checking google/protobuf/stubs/common.h presence... no checking for google/protobuf/stubs/common.h... no configure: error: ERROR: protobuf headers are required.

You must either install protobuf from google, or if you have it installed in a custom location you must add '-Iincludedir' to CXXFLAGS and '-Llibdir' to LDFLAGS.

If you did not specify a prefix when installing protobuf, try './configure CXXFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib' In some 64-bit environments, try LDFLAGS=-L/usr/local/lib64.


Original issue reported on code.google.com by `raghujin...@gmail.com` on 8 Aug 2012 at 6:28
GoogleCodeExporter commented 8 years ago
You need to download and install the base protobuf package on your system. 
http://code.google.com/p/protobuf/

If you are installing protobuf in a non std location then use 

./configure CXXFLAGS=-I/path/to/include LDFLAGS=-L/path/to/lib

Original comment by dear.c...@gmail.com on 12 Oct 2012 at 4:11

GoogleCodeExporter commented 8 years ago
Let me prefix this with the standard "I'm a new Mac user" statement.  What 
would the standard location be?

Original comment by matt5025...@gmail.com on 6 Mar 2013 at 3:34

GoogleCodeExporter commented 8 years ago
./configure --prefix=$HOME/install

Original comment by sknuij...@gmail.com on 5 Nov 2013 at 7:15