Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-30-2008, 12:41 AM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 23
Rep:
|
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
|
|
|
07-30-2008, 04:36 AM
|
#2
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
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.
|
|
|
07-30-2008, 09:37 AM
|
#3
|
LQ Newbie
Registered: Oct 2007
Posts: 23
Original Poster
Rep:
|
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?
|
|
|
07-30-2008, 03:07 PM
|
#4
|
LQ Newbie
Registered: Oct 2007
Posts: 23
Original Poster
Rep:
|
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
|
|
|
07-30-2008, 08:29 PM
|
#5
|
LQ Newbie
Registered: Oct 2007
Posts: 23
Original Poster
Rep:
|
finally after trying to figure it out i got it thanks for the help
|
|
|
07-30-2008, 09:15 PM
|
#6
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Originally Posted by ipfreely28
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?
|
|
|
07-31-2008, 04:22 PM
|
#7
|
LQ Newbie
Registered: Oct 2007
Posts: 23
Original Poster
Rep:
|
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.
|
|
|
07-31-2008, 06:05 PM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
07-31-2008, 10:15 PM
|
#9
|
LQ Newbie
Registered: Oct 2007
Posts: 23
Original Poster
Rep:
|
i just had to download a older version new versions dont support those go figure.
|
|
|
All times are GMT -5. The time now is 11:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|