Thread: pgsql-novice-request@postgresql.org

pgsql-novice-request@postgresql.org

From
Nils Zierath
Date:
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
followingerror: 

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.5for 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


Re: pgsql-novice-request@postgresql.org

From
Seneca Cunningham
Date:
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

Re: pgsql-novice-request@postgresql.org

From
Nils Zierath
Date:
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).
>


Re: pgsql-novice-request@postgresql.org

From
Seneca Cunningham
Date:
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

Re: pgsql-novice-request@postgresql.org

From
"A. Kretschmer"
Date:
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    ===