Monday, May 6, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1749  / 2 Years ago, fri, may 13, 2022, 12:50:22

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.


More From » installation

 Answers
3

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.


[#35876] Saturday, May 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rryble

Total Points: 489
Total Questions: 121
Total Answers: 119

Location: Marshall Islands
Member since Mon, May 31, 2021
3 Years ago
rryble questions
Thu, Jan 5, 23, 18:10, 1 Year ago
Wed, Aug 11, 21, 07:19, 3 Years ago
Fri, Jul 23, 21, 00:13, 3 Years ago
;