LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-30-2008, 12:41 AM   #1
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Rep: Reputation: 15
Installing postgresql-8.3


Need a bit of help here i'am installing this based on some instructions(guide) for another program iam installing.So first i try this

linux:/root# tar -xzf postgresql-8.3.tar.gz
linux:/root# cd postgresql-8.3/
linux:/root/postgresql-8.3# ./configure --with-CXX \
--enable-multibyte \
--with-tcl --without-tk

when i do this at the end i get can not locate tclConfig.sh so next in the instructions says this.


If the configure complains about not finding tclConfig.sh, or if
you experience missing .h files when doing the next steps of compilation,
you may want to re-run the ./configure adding the following parameters :

--with-tclconfig=/path/to/tclConfig.sh_directory
--with-includes=/path/to/tcl/include
--with-libraries=/path/to/tcl/lib


So i looked for the tclConfig.sh found that in usr/local/lib/tcl
but i cannot find the next 2 i'am pretty new to linux.So if someone knows where i can find them that would be great.

Another question i have when i go to configure this do i still need to include ./configure --with-CXX \ --enable-mutibyte \ --without-tk \ --with-tclconfig=/path/to/tclConfig.sh_directory \ --with includes=/path/to/tcl/include \ --with-libraries=/path/to/tcl/lib

Any help would be apreciated thanks.Also iam on fedora 9

Last edited by ipfreely28; 07-30-2008 at 12:43 AM. Reason: added text
 
Old 07-30-2008, 04:36 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Right now, you only need to pass --with-tclconfig=/usr/local/lib/tcl. If the configure script complains about not finding some header file (a .h file), then you might need to tell it where to find the header with the --with-includes switch. Generally you won't need this unless you have the headers in a weird place like your home directory.

Yes, your configure would be
Code:
./configure --with-CXX --enable-mutibyte --without-tk --with-tclconfig=/usr/local/lib/tcl

Last edited by weibullguy; 07-30-2008 at 04:38 AM.
 
Old 07-30-2008, 09:37 AM   #3
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
ok i have done that now it give me
configure:WARNING: option ignored: --enable-mutibyte
configure:WARNING: option ignored: --with-CXX
configure:WARNING: option ignored: --without-tk

any ideas?
 
Old 07-30-2008, 03:07 PM   #4
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
Heres the list of some of the things i done i finished the install i asked about earlyer it worked with a older version.
Building PostgreSQL
Get the postgresql-8.1.7.tar.gz file you downloaded into step 1.
Unpack it :

linux:/root# tar -xzf postgresql-8.1.7.tar.gz
linux:/root# cd postgresql-8.1.7/
linux:/root/postgresql-8.1.7# ./configure --enable-multibyte \
--with-CXX --with-tcl --without-tk

If the configure complains about not finding tclConfig.sh, or if
you experience missing .h files when doing the next steps of compilation,
you may want to re-run the ./configure adding the following parameters :

--with-tclconfig=/path/to/tclConfig.sh_directory
--with-includes=/path/to/tcl/include
--with-libraries=/path/to/tcl/lib


You need gmake 3.79 or above to build PostgreSQL (and you will also need
it for GNUWorld later), check you have it by running gmake --version,
you should get something like this :
Note: You will also need automake 1.6 or above in order to build GNUWorld.

linux:/root/postgresql-8.1.7# gmake --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make@gnu.org>.

If you don't have gmake, you can get it here.
If you don't have automake 1.6, you can get it here.
If that's ok, you can go on and build PostgreSQL for real, then
install it...

linux:/root/postgresql-8.1.7# gmake
linux:/root/postgresql-8.1.7# gmake install

(I get to here i find a rpm of this and install it no problems)
Now we need to install LibPQ++

linux:/root# cd ..
linux:/root# tar -xzf libpq++-4.0.tar.gz
linux:/root# cd libpq++-4.0/

Now you can build LibPQ++, provided you have the correct version of gmake.
You shouldnt be at this step if you dont.

linux:/root/libpq++-4.0# gmake
linux:/root/libpq++-4.0# gmake install
linux:/root# cd ..

Now we can install PgTCL, provided you have the correct version of gmake.
You shouldnt be at this step if you dont.
(Here i could not find a directory for libpgtcl so i figured its just pgtcl 1.5 i not sure if iam right here but i continue through the next steps fine or seems that way lol)
linux:/root# cd libpgtcl/
linux:/root/libpgtcl# export \
PG_CONFIG=/usr/local/pgsql/bin/pg_config
linux:/root/libpgtcl# ./configure --with-tcl \
--prefix=/usr/local/pgsql \
--exec-prefix=/usr/local/pgsql \
--with-postgres-lib=/usr/local/pgsql/lib

If the configure complains about not finding tclConfig.sh, or if
you experience missing .h files when doing the next steps of compilation,
you may want to re-run the ./configure adding the following parameters :

--with-tcl=/path/to/tclConfig.sh_directory

linux:/root/libpgtcl# gmake

Open up generic/pgtclAppInit.c in an editor and change

#include <libpgtcl.h>

To

#include "libpgtcl.h"

linux:/root/libpgtcl# gmake pgtclsh
linux:/root/libpgtcl# gmake install

Ignore this error if you get it :

/usr/bin/install: cannot stat `./doc/*.n': No such file or directory

Because Pgtcl's Makefile is useless, we have to move a couple of
extra files over now :

linux:/root/libpgtcl# mv pgtclsh /usr/local/pgsql/bin
linux:/root/libpgtcl# mv libpgtcl1.6.so /usr/local/pgsql/lib
linux:/root# cd ..

Edit the file /etc/ld.so.conf and add the following line :

/usr/local/pgsql/lib


save the file, then run :

linux:/root# ldconfig


To check that your PostgreSQL installation includes TCL support,
check that the following file exists onto your system :
(I get far as here i ran pgtclsh and it says,./pgtclsh:error while loading shared libraries: libpgtcl1.5.so: cannot open shared object file : no such file or directory this is the part i need help with thanks)
/usr/local/pgsql/bin/pgtclsh

Last edited by ipfreely28; 07-30-2008 at 03:10 PM. Reason: added text
 
Old 07-30-2008, 08:29 PM   #5
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
finally after trying to figure it out i got it thanks for the help
 
Old 07-30-2008, 09:15 PM   #6
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
Quote:
Originally Posted by ipfreely28 View Post
ok i have done that now it give me
configure:WARNING: option ignored: --enable-mutibyte
configure:WARNING: option ignored: --with-CXX
configure:WARNING: option ignored: --without-tk

any ideas?
I'm curious ... out of which hat did you draw those options?
 
Old 07-31-2008, 04:22 PM   #7
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
Got it from a guide for a program called gnuworld,i like to mess around with ircds just something to do on my time off.
 
Old 07-31-2008, 06:05 PM   #8
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
Heh ... OK, for future reference: to see what options a particular
programs configure script will accept, please invoke it with
'./configure --help'
rather than blindly assuming that the options valid for one program
will work on others ;}



Cheers,
Tink
 
Old 07-31-2008, 10:15 PM   #9
ipfreely28
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
i just had to download a older version new versions dont support those go figure.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing PostgreSQL on RH9 Hawkin Linux - Software 7 07-30-2008 06:56 AM
installing rpm package of postgresql vijaysh Red Hat 2 04-29-2006 03:37 AM
Installing PostgreSQL DBMS Hady Linux - Software 1 04-28-2004 05:44 AM
installing and running postgresql or MySql Whatshisface Linux - Software 3 02-22-2004 11:29 PM
can't installing Postgresql importboy03 Linux - Software 6 02-13-2003 02:21 PM

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

All times are GMT -5. The time now is 01:09 PM.

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