Unix Technical Forum

pgsql-novice-request@postgresql.org

This is a discussion on pgsql-novice-request@postgresql.org within the pgsql Novice forums, part of the PostgreSQL category; --> hi all, I downloaded postgresql-base-8.1.3 and tried to compile that on Ubuntu 5.10. When I run "./configure" I get ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 09:35 PM
Nils Zierath
 
Posts: n/a
Default pgsql-novice-request@postgresql.org

hi all,
I downloaded postgresql-base-8.1.3 and tried to compile that on Ubuntu 5.10. When I run "./configure" I get the following error:

configure:2081: $? = 0
configure:2083: /usr/bin/g++ -v &5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
configure:2086: $? = 0
configure:2088: /usr/bin/g++ -V &5
g++: '-V' option must have argument
configure:2091: $? = 1
configure:2114: checking for C compiler default output file name
configure:2117: /usr/bin/g++ conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2120: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "8.1.3"
| #define PACKAGE_STRING "PostgreSQL 8.1.3"
| #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
| #define PG_VERSION "8.1.3"
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2159: error: C compiler cannot create executables

I tried that with ./configure CC=/usr/bin/gcc (v4.0.2) as shown above and ./configure CC=/usr/bin/gpp (v2.24). glibc is v2.3.5 for Ubuntu ("/lib/libc-2.3.5.so").

the file "crt1.o" doesn't exist anywhere else on my machine either. Any guesses?

thanx, Nils
__________________________________________________ ____________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 09:35 PM
Seneca Cunningham
 
Posts: n/a
Default Re: pgsql-novice-request@postgresql.org

Nils Zierath wrote:
> hi all,
> I downloaded postgresql-base-8.1.3 and tried to compile that on
> Ubuntu 5.10. When I run "./configure" I get the following error:

[... /usr/bin/ld: crt1.o: No such file: No such file or directory ...]
> I tried that with ./configure CC=/usr/bin/gcc (v4.0.2) as shown
> above and ./configure CC=/usr/bin/gpp (v2.24). glibc is v2.3.5
> for Ubuntu ("/lib/libc-2.3.5.so").
>
> the file "crt1.o" doesn't exist anywhere else on my machine
> either. Any guesses?


You need to install libc6-dev and the development packages of the other
libraries in use (zlib1g-dev, libreadline5-dev, libncurses5-dev).

--
Seneca Cunningham
scunning@ca.afilias.info

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 09:35 PM
Nils Zierath
 
Posts: n/a
Default Re: pgsql-novice-request@postgresql.org

Hi Seneca, that helped, thanx.

I got another question:
is there a way that I can enter commands (i.e. psql) directly from my
user´s home directory or do I always have to go into ".../pgsql/bin"?
The PostgreSQL users guide I am using tells me that I have to change the
search path in "/etc/profile" - but I've got no idea what add into the
script.

Nils


Am Donnerstag, den 16.02.2006, 10:10 -0500 schrieb Seneca Cunningham:
> Nils Zierath wrote:
> > hi all,
> > I downloaded postgresql-base-8.1.3 and tried to compile that on
> > Ubuntu 5.10. When I run "./configure" I get the following error:

> [... /usr/bin/ld: crt1.o: No such file: No such file or directory ...]
> > I tried that with ./configure CC=/usr/bin/gcc (v4.0.2) as shown
> > above and ./configure CC=/usr/bin/gpp (v2.24). glibc is v2.3.5
> > for Ubuntu ("/lib/libc-2.3.5.so").
> >
> > the file "crt1.o" doesn't exist anywhere else on my machine
> > either. Any guesses?

>
> You need to install libc6-dev and the development packages of the other
> libraries in use (zlib1g-dev, libreadline5-dev, libncurses5-dev).
>



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-17-2008, 09:35 PM
Seneca Cunningham
 
Posts: n/a
Default Re: pgsql-novice-request@postgresql.org

Nils Zierath wrote:
> is there a way that I can enter commands (i.e. psql) directly from my
> user´s home directory or do I always have to go into ".../pgsql/bin"?


You can change your $PATH.

> The PostgreSQL users guide I am using tells me that I have to change the
> search path in "/etc/profile" - but I've got no idea what add into the
> script.


The lines suggested by the documentation would work as they appear, if
you installed into the default location.

PATH=/usr/local/pgsql/bin:$PATH
export PATH

--
Seneca Cunningham
scunning@ca.afilias.info

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-17-2008, 09:35 PM
A. Kretschmer
 
Posts: n/a
Default Re: pgsql-novice-request@postgresql.org

am 16.02.2006, um 20:16:19 +0100 mailte Nils Zierath folgendes:
> Hi Seneca, that helped, thanx.
>
> I got another question:
> is there a way that I can enter commands (i.e. psql) directly from my
> user??s home directory or do I always have to go into ".../pgsql/bin"?
> The PostgreSQL users guide I am using tells me that I have to change the
> search path in "/etc/profile" - but I've got no idea what add into the
> script.


Now:
PATH="/foo:/foo/bar", change this to:
PATH="/foo:/foo/bar:/usr/bin/"

Guess, psql located there. Check this with 'which psql'.

Btw.: which distribution?


>
> Nils
>
>
> Am Donnerstag, den 16.02.2006, 10:10 -0500 schrieb Seneca Cunningham:
> > Nils Zierath wrote:


please no silly TOFU, thanks.


Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47215, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com