Hello Pete,
It looks like fo-installdeps isn't set up for Oneiric yet so I'm glad you
figured out the dependencies. You didn't mention it but I assume you are
following the INSTALL file in the source root.
First make sure libpq is installed. You can use pg_config to do this. Here is
what my system says:
$ pg_config --libdir
/usr/lib
If check that location, you should see the library:
$ ls -l /usr/lib/libpq*
-rw-r--r-- 1 root root 270126 Oct 11 2010 /usr/lib/libpq.a
lrwxrwxrwx 1 root root 12 Nov 30 2010 /usr/lib/libpq.so -> libpq.so.5.2
lrwxrwxrwx 1 root root 12 Nov 30 2010 /usr/lib/libpq.so.5 -> libpq.so.5.2
-rw-r--r-- 1 root root 161848 Oct 11 2010 /usr/lib/libpq.so.5.2
If you don't, you are missing a dependency.
If you do have libpq installed, then you can either:
1) change all the Makefiles (tedious) to include -L {pq library directory}
or
2) change add it in your environment:
export LD_LIBRARY_PATH=$my/libpq/directory $LD_LIBRARY_PATH
You can verify that the linker is following the path with this command:
/sbin/ldconfig -p | grep libpq
Bob Gobeille
On Dec 17, 2011, at 6:40 AM, Peter Jalajas - Tebuco, Inc. wrote:
> 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.
_______________________________________________
fossology mailing list
[email protected]
http://lists.fossology.org/mailman/listinfo/fossology