Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Ubuntu 12.04, and I compiled a package for object recognition(rein).I got an error indicating that I don't have soci.h:

Error: cannot find SOCI header file: soci.h

I tried to use this command to install libsoci

sudo apt-get install libsoci-core-gcc

But I get the message:

E: can't find package libsoci-core-gcc

Does anybody know how to install this library?Thanks!

P.S.For more detailed information, click here.

share|improve this question
up vote 3 down vote accepted

The latest ubuntu for which there is a libsoci-core-gcc packages seems to be natty (11.04). These old packages seem to install ok on 12.04, so this is a (very hacky) way of getting /usr/include/soci/soci.h:

curl -O
curl -O
sudo dpkg --install libsoci-core-gcc_3.0.0+cvs20081223-4build2_amd64.deb libsoci-core-gcc-dev_3.0.0+cvs20081223-4build2_amd64.deb

A perhaps cleaner way would be to build soci from sources: and install to your home directory or /usr/local, but that is also more work.

share|improve this answer
It works!Thanks! – Po-Jen Lai Aug 29 '12 at 15:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.