Hi. I am trying to build pgbench on CentOS 5.3 x86_64.
make complains that it cannot find -lpgport
# cd contrib
# make all
...
make[1]: Entering directory `/home/tsalolia/postgresql-8.3.7/contrib/pgbench'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv pgbench.o -L../../src/port -lpgport
-L../../src/interfaces/libpq -lpq -L../../src/port
-Wl,-rpath,'/usr/local/pgsql/lib' -lpgport -lz -lreadline -ltermcap
-lcrypt -ldl -lm -o pgbench
/usr/bin/ld: cannot find -lpgport
collect2: ld returned 1 exit status
make[1]: *** [pgbench] Error 1
make[1]: Leaving directory `/home/tsalolia/postgresql-8.3.7/contrib/pgbench'
make: *** [all] Error 2
[root@ddc-db-prod01 contrib]# ls $LD_LIBRARY_PATH
adminpack.so euc_tw_and_big5.so libecpg.so
libpq.a utf8_and_cyrillic.so
utf8_and_iso8859_1.so
ascii_and_mic.so latin2_and_win1250.so
libecpg.so.6 libpq.so utf8_and_euc_cn.so
utf8_and_iso8859.so
cyrillic_and_mic.so latin_and_mic.so
libecpg.so.6.0 libpq.so.5 utf8_and_euc_jis_2004.so
utf8_and_johab.so
dict_snowball.so libecpg.a libpgport.a
libpq.so.5.1 utf8_and_euc_jp.so
utf8_and_shift_jis_2004.so
euc_cn_and_mic.so libecpg_compat.a
libpgtypes.a pgxs utf8_and_euc_kr.so
utf8_and_sjis.so
euc_jis_2004_and_shift_jis_2004.so libecpg_compat.so
libpgtypes.so plpgsql.so utf8_and_euc_tw.so
utf8_and_uhc.so
euc_jp_and_sjis.so libecpg_compat.so.3
libpgtypes.so.3 utf8_and_ascii.so utf8_and_gb18030.so
utf8_and_win.so
euc_kr_and_mic.so libecpg_compat.so.3.0
libpgtypes.so.3.0 utf8_and_big5.so utf8_and_gbk.so
# ls $LD_LIBRARY_PATH/*.a
/usr/local/pgsql/lib/libecpg.a
/usr/local/pgsql/lib/libpgport.a /usr/local/pgsql/lib/libpq.a
/usr/local/pgsql/lib/libecpg_compat.a /usr/local/pgsql/lib/libpgtypes.a
]#
How can I get this compile to go through, please? I've set up my
LD_LIBRARY_PATH env var, and exported it, but still no luck...
I imagine this is something very basic...
Thanks,
Aleksey