LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-08-2007, 01:26 PM   #1
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Rep: Reputation: 15
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 .
 
Old 10-08-2007, 02:19 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi,

and welcome to LQ!


What are you trying to build here?



Cheers,
Tink
 
Old 10-08-2007, 02:51 PM   #3
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
libpgtcl thanks for the welcome
 
Old 10-08-2007, 02:57 PM   #4
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
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 .

Last edited by ipfreely28; 10-08-2007 at 02:59 PM.
 
Old 10-08-2007, 03:18 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 10-08-2007, 03:57 PM   #6
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
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.
 
Old 10-08-2007, 03:59 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Can you post the output of
Code:
find /usr/local/pgsql -type f -exec ls -ld {} \;
?



Cheers,
Tink
 
Old 10-08-2007, 04:05 PM   #8
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
i ran that command but theres a lot of output how would i go about pasting all that?
 
Old 10-08-2007, 04:07 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
[edit]
Just run it against bin and lib
[/edit]

Last edited by Tinkster; 10-08-2007 at 04:10 PM.
 
Old 10-08-2007, 04:10 PM   #10
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
dont know how i'am still pretty new with all this stuff
 
Old 10-08-2007, 04:15 PM   #11
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
-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
 
Old 10-08-2007, 04:19 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
all there ... as what user did you run ldconfig?
 
Old 10-08-2007, 04:20 PM   #13
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
ran it under root
 
Old 10-08-2007, 04:34 PM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Very odd ... what distro are you using?


Cheers,
Tink
 
Old 10-08-2007, 04:36 PM   #15
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
fedora core 7
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration