libpgtcl
Ok i have does this so far,
./configure --with-tcl --prefix=/usr/local/pgsql --exec-prefix=/usr/local/pgsql --exec-prefix=/usr/local/pgsql --with-postgres-lib=/usr/local/lib --with-tcl=/usr/local/lib/tclConfig.sh got passed that then i have to run gmake but i get this error. root@localhost libpgtcl]# gmake rm -f libpgtcl1.6.so gcc -pipe -shared -o libpgtcl1.6.so pgtcl.o pgtclCmds.o pgtclId.o -L/usr/local/lib -lpq -L/usr/local/lib -lpq -L/usr/local/lib -ltclstub8.4 /usr/bin/ld: cannot find -lpq collect2: ld returned 1 exit status gmake: *** [libpgtcl1.6.so] Error 1 Would appreciate any help thanks . |
Hi,
and welcome to LQ! What are you trying to build here? Cheers, Tink |
libpgtcl thanks for the welcome
|
Well i been trying to follow a guide to install gnuservices for my ircd
http://evilnet.sourceforge.net/index...e=0&subset=A-3 I get as far as libpgtcl i ./configure it then run gmake and i get the error as shown in my orginal post i tryied google with the error message cant seem to figure out what i'am doing wrong here . |
I didn't read that write-up in its entirety, but did you verify
that a) postgres' libaries indeed ARE where it's looking for them and b) that you ran ldconfig after adding /usr/local/pgsql/lib to /etc/ld.so.conf ? Cheers, Tink |
A)Ok i checked over my ./configure i had something wrong in there but now i get this configure: error: Cannot locate program pg_config to determine PostgreSQL paths. Make sure pg_config is in PATH or set PG_CONFIG env var to path to pg_config.
How do i make it locate the file my guess was --with-postgres-bin=/usr/local/pgsql/bin/pg_config but doesnt seem to work. B)Ok i edited the file and ran ldconfig i get this. ldconfig: Input file /usr/local/pgsql/lib/libecpg.so.5.2 not found. ldconfig: Input file /usr/local/pgsql/lib/libpgtypes.so.2.1 not found. ldconfig: Input file /usr/local/pgsql/lib/libpq.so.5.0 not found. ldconfig: Input file /usr/local/pgsql/lib/libecpg_compat.so.2.2 not found. ldconfig: Input file /usr/local/pgsql/lib/libpq++.so.4.0 not found. ldconfig: Input file /usr/local/pgsql/lib/libecpg.so.5.1 not found. ldconfig: Input file /usr/local/pgsql/lib/libecpg_compat.so.2.1 not found. ldconfig: Input file /usr/local/pgsql/lib/libpgtypes.so.2.2 not found. ldconfig: Input file /usr/local/pgsql/lib/libpq.so.4.1 not found. |
Can you post the output of
Code:
find /usr/local/pgsql -type f -exec ls -ld {} \; Cheers, Tink |
i ran that command but theres a lot of output how would i go about pasting all that?
|
[edit]
Just run it against bin and lib [/edit] |
dont know how i'am still pretty new with all this stuff
|
-rwxr-xr-x 1 root root 34170 2007-10-01 16:19 /usr/local/pgsql/bin/clusterdb
-rwxr-xr-x 1 root root 42518 2007-10-01 16:19 /usr/local/pgsql/bin/createlang -rwxr-xr-x 1 root root 221742 2007-10-01 16:19 /usr/local/pgsql/bin/psql -rwxr-xr-x 1 root root 32989 2007-10-01 16:19 /usr/local/pgsql/bin/dropdb -rwxr-xr-x 1 root root 23237 2007-10-01 16:19 /usr/local/pgsql/bin/vacuumdb -rwxr-xr-x 1 root root 92181 2007-10-01 16:19 /usr/local/pgsql/bin/pg_restore -rwxr-xr-x 1 root root 50521 2007-10-01 16:19 /usr/local/pgsql/bin/pg_dumpall -rwxr-xr-x 1 root root 44484 2007-10-01 16:19 /usr/local/pgsql/bin/droplang -rwxr-xr-x 1 root root 2996771 2007-10-01 16:19 /usr/local/pgsql/bin/postgres -rwxr-xr-x 1 root root 52487 2007-10-01 16:19 /usr/local/pgsql/bin/initdb -rwxr-xr-x 1 root root 433396 2007-10-01 16:19 /usr/local/pgsql/bin/ecpg -rwxr-xr-x 1 root root 20488 2007-10-01 16:19 /usr/local/pgsql/bin/pg_config -rwxr-xr-x 1 root root 35770 2007-10-01 16:19 /usr/local/pgsql/bin/reindexdb -rwxr-xr-x 1 root root 31281 2007-10-01 16:19 /usr/local/pgsql/bin/pg_ctl -rwxr-xr-x 1 root root 197373 2007-10-01 16:19 /usr/local/pgsql/bin/pg_dump -rwxr-xr-x 1 root root 2331 2007-10-01 16:19 /usr/local/pgsql/bin/pltcl_listmod -rwxr-xr-x 1 root root 19782 2007-10-01 16:19 /usr/local/pgsql/bin/pg_controldata -rwxr-xr-x 1 root root 34291 2007-10-01 16:19 /usr/local/pgsql/bin/createdb -rwxr-xr-x 1 root root 35891 2007-10-01 16:19 /usr/local/pgsql/bin/createuser -rwxr-xr-x 1 root root 32991 2007-10-01 16:19 /usr/local/pgsql/bin/dropuser -rwxr-xr-x 1 root root 2174 2007-10-01 16:19 /usr/local/pgsql/bin/pltcl_delmod -rwxr-xr-x 1 root root 11449 2007-10-01 16:19 /usr/local/pgsql/bin/pltcl_loadmod -rwxr-xr-x 1 root root 26525 2007-10-01 16:19 /usr/local/pgsql/bin/pg_resetxlog -rwxr-xr-x 1 root root 3231 2007-10-01 16:19 /usr/local/pgsql/bin/ipcclean rwxr-xr-x 1 root root 62453 2007-10-01 15:35 /usr/local/pgsql/lib/libecpg.so.5.2 -rwxr-xr-x 1 root root 6605 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_win874.so -rwxr-xr-x 1 root root 5129 2007-10-01 16:19 /usr/local/pgsql/lib/euc_cn_and_mic.so -rwxr-xr-x 1 root root 123941 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_euc_cn.so -rwxr-xr-x 1 root root 280166 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_johab.so -rw-r--r-- 1 root root 80168 2007-10-01 16:19 /usr/local/pgsql/lib/libpgtypes.a -rwxr-xr-x 1 root root 280168 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_uhc.so -rwxr-xr-x 1 root root 5909 2007-10-01 16:19 /usr/local/pgsql/lib/latin_and_mic.so -rw-r--r-- 1 root root 25608 2007-10-01 16:19 /usr/local/pgsql/lib/libpgport.a -rwxr-xr-x 1 root root 10242 2007-10-01 16:19 /usr/local/pgsql/lib/euc_tw_and_big5.so -rwxr-xr-x 1 root root 4688 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_ascii.so -rw-r--r-- 1 root root 84234 2007-10-01 16:19 /usr/local/pgsql/lib/libecpg.a -rwxr-xr-x 1 root root 224095 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_big5.so -rwxr-xr-x 1 root root 65004 2007-10-01 16:19 /usr/local/pgsql/lib/libpgtypes.so.2.1 -rwxr-xr-x 1 root root 14102 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_cyrillic.so -rwxr-xr-x 1 root root 12172 2007-10-01 16:19 /usr/local/pgsql/lib/euc_jp_and_sjis.so -rw-r--r-- 1 root root 13104 2007-10-01 16:19 /usr/local/pgsql/lib/libecpg_compat.a -rwxr-xr-x 1 root root 5362 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_iso8859_1.so -rwxr-xr-x 1 root root 33636 2007-10-01 16:19 /usr/local/pgsql/lib/pltcl.so -rwxr-xr-x 1 root root 337717 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_euc_tw.so -rwxr-xr-x 1 root root 136381 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_euc_kr.so -rwxr-xr-x 1 root root 9233 2007-10-01 16:19 /usr/local/pgsql/lib/pgxs/config/install-sh -rwxr-xr-x 1 root root 3423 2007-10-01 16:19 /usr/local/pgsql/lib/pgxs/config/mkinstalldirs -rw-r--r-- 1 root root 3535 2007-10-01 16:19 /usr/local/pgsql/lib/pgxs/src/nls-global.mk -rw-r--r-- 1 root root 16192 2007-10-01 16:19 /usr/local/pgsql/lib/pgxs/src/Makefile.global -rwxr-xr-x 1 root root 38759 2007-10-01 15:35 /usr/local/pgsql/lib/pgxs/src/test/regress/pg_regress -rw-r--r-- 1 root root 12140 2007-10-01 16:19 /usr/local/pgsql/lib/pgxs/src/Makefile.shlib -rw-r--r-- 1 root root 256 2007-10-01 16:19 /usr/local/pgsql/lib/pgxs/src/Makefile.port -rw-r--r-- 1 root root 6968 2007-10-01 16:19 /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk -rw-r--r-- 1 root root 148286 2007-10-01 16:19 /usr/local/pgsql/lib/libpq.a -rwxr-xr-x 1 root root 20488 2007-10-01 16:19 /usr/local/pgsql/lib/pg_config -rwxr-xr-x 1 root root 6820 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_win1252.so -rwxr-xr-x 1 root root 115196 2007-10-01 15:35 /usr/local/pgsql/lib/libpq.so.5.0 -rwxr-xr-x 1 root root 4683 2007-10-01 16:19 /usr/local/pgsql/lib/ascii_and_mic.so -rwxr-xr-x 1 root root 6820 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_win1250.so -rwxr-xr-x 1 root root 27796 2007-10-01 15:35 /usr/local/pgsql/lib/utf8_and_win.so -rwxr-xr-x 1 root root 1018564 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_gb18030.so -rwxr-xr-x 1 root root 353448 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_gbk.so -rwxr-xr-x 1 root root 17665 2007-10-01 15:35 /usr/local/pgsql/lib/libecpg_compat.so.2.2 -rwxr-xr-x 1 root root 128903 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_sjis.so -rwxr-xr-x 1 root root 32863 2007-10-01 16:21 /usr/local/pgsql/lib/libpq++.so.4.0 -rwxr-xr-x 1 root root 7230 2007-10-01 16:19 /usr/local/pgsql/lib/latin2_and_win1250.so -rwxr-xr-x 1 root root 5234 2007-10-01 16:19 /usr/local/pgsql/lib/euc_kr_and_mic.so -rwxr-xr-x 1 root root 63432 2007-10-01 16:19 /usr/local/pgsql/lib/libecpg.so.5.1 -rwxr-xr-x 1 root root 17685 2007-10-01 16:19 /usr/local/pgsql/lib/libecpg_compat.so.2.1 -rwxr-xr-x 1 root root 215781 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_euc_jp.so -rwxr-xr-x 1 root root 6788 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_win1258.so -rwxr-xr-x 1 root root 144489 2007-10-01 16:19 /usr/local/pgsql/lib/plpgsql.so -rwxr-xr-x 1 root root 65459 2007-10-01 15:35 /usr/local/pgsql/lib/libpgtypes.so.2.2 -rwxr-xr-x 1 root root 32197 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_iso8859.so -rwxr-xr-x 1 root root 12618 2007-10-01 16:19 /usr/local/pgsql/lib/cyrillic_and_mic.so -rwxr-xr-x 1 root root 114937 2007-10-01 16:19 /usr/local/pgsql/lib/libpq.so.4.1 -rwxr-xr-x 1 root root 6852 2007-10-01 16:19 /usr/local/pgsql/lib/utf8_and_win1256.so |
all there ... as what user did you run ldconfig?
|
ran it under root
|
Very odd ... what distro are you using?
Cheers, Tink |
fedora core 7
|
And at this stage in the game I'd like to move your post
to the Fedora forum because I have no explanation for this behaviour ... would you mind? Sorry that I can't be of further assistance. Cheers, Tink |
Its ok thanks for your help anyways also i would like to point out that
while using [root@localhost libpgtcl]# ./configure --with-tcl --prefix=/usr/local/pgsql --exec-prefix=/usr/local/pgsql --with-postgres-lib=/usr/local/pgsql/lib --with-tcl=/usr/local/lib/tclConfig.sh I'am still getting this error. configure: error: Cannot locate program pg_config to determine PostgreSQL paths. Make sure pg_config is in PATH or set PG_CONFIG env var to path to pg_config. |
Moved: This thread is more suitable in <Fedora> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
Quote:
setting PG_CONFIG? Cheers, Tink |
I had tried using --with-postgres-bin=/usr/local/pgsql/bin/pg_config
that didnt work prolly do that wrong,and as setting PG_CONFIG i dont know how i went into the directory executed ./pg_config but it just give me stats. [root@localhost bin]# ./pg_config BINDIR = /usr/local/pgsql/bin DOCDIR = /usr/local/pgsql/doc INCLUDEDIR = /usr/local/pgsql/include PKGINCLUDEDIR = /usr/local/pgsql/include INCLUDEDIR-SERVER = /usr/local/pgsql/include/server LIBDIR = /usr/local/pgsql/lib PKGLIBDIR = /usr/local/pgsql/lib LOCALEDIR = MANDIR = /usr/local/pgsql/man SHAREDIR = /usr/local/pgsql/share SYSCONFDIR = /usr/local/pgsql/etc PGXS = /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk CONFIGURE = '--enable-multibyte' '--with-CXX' '--with-tcl' '--without-tk' CC = gcc CPPFLAGS = -D_GNU_SOURCE CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing CFLAGS_SL = -fpic LDFLAGS = -Wl,-rpath,/usr/local/pgsql/lib LDFLAGS_SL = LIBS = -lpgport -lz -lreadline -lcrypt -lresolv -lnsl -ldl -lm -lbsd VERSION = PostgreSQL 8.1.8 |
Try
Code:
export PG_CONFIG=/usr/local/pgsql/bin/pg_config |
there that fixed everything thank you very much for your help
|
Not quite "fixed everything" ... you SHOULD be able to use
the postgres libraries with ldconfig. There's definitely something seriously weird there. |
yea your right its still doing that
|
I just came across this thread while trying to figure out how to get the native library part of JOGL (Java OpenGL) recognized by ldconfig. Using Fedora 7 here as well. The problem is with SELinux blocking ldconfig from accessing your .so files because they don't have the proper SELinux context type. Simply run the following command in the directory containing your .so files:
chcon -t lib_t *.so Don't do this in a directory such as /usr/lib because some of the libraries in there have special context types, this could probably break those. Specify the full filename(s) of the libraries you need to change in that case. |
thanks i will try this later on today see if it solves this
|
i just tried it i ran it under /usr/prostgres/lib it didnt seem to work maybe iam doing something wrong iam a bit of a noob when it comes to linux.
|
There may be further SELinux contexts to set on the files and directories you are using. You should be getting a little star notification icon for the SELinux Troubleshooter. You can click on it to get a listing of what SELinux has blocked and why. Thats how I discovered what was wrong in my situation. You can also start the SELinux Troubleshooter from the menu at System->Administration->SELinux Troubleshooter. Look through there for any security alerts relating to /sbin/ldconfig and/or the files and directories you are working with.
Also this command will show you the SELinux context info for a directory listing: ls -Z |
All times are GMT -5. The time now is 06:43 PM. |