Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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 http://security.ubuntu.com/ubuntu/pool/universe/s/soci/libsoci-core-gcc_3.0.0+cvs20081223-4build2_amd64.deb
curl -O http://security.ubuntu.com/ubuntu/pool/universe/s/soci/libsoci-core-gcc-dev_3.0.0+cvs20081223-4build2_amd64.deb
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: soci.sourceforge.net 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

 
discard

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.