Hi all,

I'm trying to follow this:
http://www.fossology.org/projects/fossology/wiki/Ubuntu_install_guide
on my new 64-bit Ubuntu Oneiric laptop.

I did these steps:
 1050  svn co https://fossology.svn.sourceforge.net/svnroot/fossology/tags/1.4.1
 1051  sudo apt-get install subversion
 1054  svn co https://fossology.svn.sourceforge.net/svnroot/fossology/tags/1.4.1
 1055  cd 1.4.1; sudo utils/fo-installdeps
 1056  sudo apt-get install rpm
 1058  sudo apt-get install libpq-dev
 1063  sudo apt-get install libpq5
 1064  make;sudo make install
 1066  sudo apt-get install postgresql
 1067  make;sudo make install
At this step:
 1057  make;sudo make install
I get:
make -C devel
make[1]: Entering directory `/tmp/1.4.1/devel'
make -C libfossdb
make[2]: Entering directory `/tmp/1.4.1/devel/libfossdb'
gcc dbtest.c -lpq -I`pg_config --includedir` -I../../devel/libfossdb
-L../../devel/libfossdb -lfossdb -I`pg_config --includedir` -o dbtest
../../devel/libfossdb/libfossdb.a(libfossdb.o): In function `DBclose':
/tmp/1.4.1/devel/libfossdb/libfossdb.c:62: undefined reference to `PQclear'
/tmp/1.4.1/devel/libfossdb/libfossdb.c:63: undefined reference to `PQfinish'
<snip>

Reading this:
http://www.mkyong.com/database/how-to-building-postgresql-libpq-programs/
I see this (sic):
    It do need to specified exactly library with -lpq to include libpg
library, correct command is like following
    gcc -I/usr/include/postgresql/ -L/usr/lib/postgresql/8.3/lib/ -lpq
-o test.o test.c
but I didn't know what to do with that information, or even if it's relevant.

Any suggestions?

Thanks,
Pete
_______________________________________________
fossology mailing list
[email protected]
http://lists.fossology.org/mailman/listinfo/fossology

Reply via email to