[BUGS] BUG #1593: Problem with installation

7 visninger
Gå til det første ulæste indlæg

Taj Nezami

ulæst,
12. apr. 2005 14.35.4212.04.2005
til

The following bug has been logged online:

Bug reference: 1593
Logged by: Taj Nezami
Email address: tajoddi...@toshiba-trel.com
PostgreSQL version: 8.0.2
Operating system: ARM Embedded Linux
Description: Problem with installation
Details:

I have cross-compiled the PostgreSQL 8.0.2 on the Fedora Core-1 host for my
Intel-XScale based target running embedded Linux 2.4.26-vrs1, using the
following command sequences:
$ >./configure --prefix=/usr --host=arm-linux --build=i686-pc-linux-gnu
--without-docdir
$make

This completes successfully. But when I subsequently try to do:
$ >make install-strip DESTDIR=/tmp/pgsql

I get the following error messages:
.....................
mkdir -p --
/opt/arcom/arm-linux/src/postgresql-8.0.2/build/usr/share/postgresql./zic -d
/opt/arcom/arm-linux/src/postgresql-8.0.2/build/usr/share/postgresql/timezon
e ./data/africa ./data/antarctica ./data/asia ./data/australasia
./data/europe ./data/northamerica ./data/southamerica ./data/pacificnew
./data/etcetera ./data/factory ./data/backward ./data/systemv ./data/solar87
./data/solar88 ./data/solar89
./zic: ./zic: cannot execute binary file
make[3]: *** [install] Error 126
make[3]: Leaving directory
`/opt/arcom/arm-linux/src/postgresql-8.0.2/src/timezone'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/opt/arcom/arm-linux/src/postgresql-8.0.2/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/opt/arcom/arm-linux/src/postgresql-8.0.2'
make: *** [install-strip] Error 2


I am new to this and it is blocking me. Please help.

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

Tom Lane

ulæst,
12. apr. 2005 14.58.5612.04.2005
til
"Taj Nezami" <tajoddi...@toshiba-trel.com> writes:
> I have cross-compiled the PostgreSQL 8.0.2 on the Fedora Core-1 host for my
> Intel-XScale based target running embedded Linux 2.4.26-vrs1, using the
> following command sequences:

We don't really support cross-compilation at the moment. There are
several AC_TRY_RUN tests in the configure script that may or may not
make the right guesses when cross-compiling, plus as you found out
there's at least one program that needs to be run during the
installation phase.

It shouldn't be too hard to copy over the zic program and its input
data files and run it on the target machine, but the existing Makefiles
won't help you with that :-(

On the whole I'd advise building on the target. If it's got enough
oomph to run a database, it can surely run a compiler ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majo...@postgresql.org

Tajoddin Nezami

ulæst,
13. apr. 2005 11.18.1013.04.2005
til
Hi Tom,

Thanks for your prompt reply. Eventually, I did manage to get it
cross-compile and install on the target and my initial tests show no
problems so far. I had to modify the timezone Makefile by hand to force
the ZICOBJS to compile using the host's native compiler (as localtime.o
is used in OBJS list I made the output file for zic to be tlocaltime.o).

Regards

Taj Nezami

-----Original Message-----
From: Tom Lane [mailto:t...@sss.pgh.pa.us]=20
Sent: 12 April 2005 19:56
To: Tajoddin Nezami
Cc: pgsql...@postgresql.org
Subject: Re: [BUGS] BUG #1593: Problem with installation=20

"Taj Nezami" <tajoddi...@toshiba-trel.com> writes:
> I have cross-compiled the PostgreSQL 8.0.2 on the Fedora Core-1 host
for my
> Intel-XScale based target running embedded Linux 2.4.26-vrs1, using
the
> following command sequences:

We don't really support cross-compilation at the moment. There are
several AC_TRY_RUN tests in the configure script that may or may not
make the right guesses when cross-compiling, plus as you found out
there's at least one program that needs to be run during the
installation phase.

It shouldn't be too hard to copy over the zic program and its input
data files and run it on the target machine, but the existing Makefiles
won't help you with that :-(

On the whole I'd advise building on the target. If it's got enough
oomph to run a database, it can surely run a compiler ...

regards, tom lane


This message has been scanned for viruses by MailController -
www.MailController.altohiway.com

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

Svar alle
Svar forfatteren
Videresend
0 nye indlæg