Обсуждение: Problems at 'make' stage on Solaris 2.9

Поиск
Список
Период
Сортировка

Problems at 'make' stage on Solaris 2.9

От
Stephen Weigand
Дата:
Hi List,

I'm on Solaris 2.99 and gcc 3.2.3 and am not a
privileged user. I have downloaded postgresql-7.4.6
and use the configure options (based on limited
experience and knowledge):

./configure --without-readline
            --prefix= $HOME/local/pgsql
            --with-includes=/opt/gnu/include
            --with-libraries=/opt/gnu/lib

with my $PATH being set by

set path=(/opt/gnu/bin /usr/bin)

(which I do because there are a couple of versions
of gcc on my system.)

The last line of config.log is
"configure: exit 0" which I think is good news?

When I run make (using GNU make 3.80) I get:

make -C doc all
make[1]: Entering directory `$HOME/postgresql-7.4.6/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `$HOME/postgresql-7.4.6/doc'
make -C src all
make[1]: Entering directory `$HOME/postgresql-7.4.6/src'
make -C port all
make[2]: Entering directory `$HOME/postgresql-7.4.6/src/port'
ar crs libpgport.a isinf.o getopt_long.o qsort.o path.o sprompt.o
thread.o
make[2]: ar: Command not found
make[2]: *** [libpgport.a] Error 127
make[2]: Leaving directory `$HOME/postgresql-7.4.6/src/port'
make[1]: *** [all] Error 2
make[1]: Leaving directory `$HOME/postgresql-7.4.6/src'
make: *** [all] Error 2

My understanding is that our system has some files in
special places so I wonder if I need to specify the
location of additional libraries and includes? I can
try to find them if I know what to look for.

Any help would be appreciated.

Thank you,

Stephen

:::::::::::::::::::::::::::::::::
Stephen Weigand, M.S.
Division of Biostatistics
Mayo Clinic Rochester, Minn., USA
(507) 266-1650


Re: Problems at 'make' stage on Solaris 2.9

От
Michael Fuhr
Дата:
On Wed, Oct 27, 2004 at 01:11:22PM -0500, Stephen Weigand wrote:
>
> ar crs libpgport.a isinf.o getopt_long.o qsort.o path.o sprompt.o thread.o
> make[2]: ar: Command not found

Try adding /usr/ccs/bin to your PATH.  That's where ar lives on
Solaris.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

Re: Problems at 'make' stage on Solaris 2.9

От
Stephen Weigand
Дата:
This was exactly the solution. I'm up and running.
Thanks!!

> Date: Wed, 27 Oct 2004 12:45:13 -0600
> From: Michael Fuhr <mike@fuhr.org>
>
>
> On Wed, Oct 27, 2004 at 01:11:22PM -0500, Stephen Weigand wrote:
> >
> > ar crs libpgport.a isinf.o getopt_long.o qsort.o path.o sprompt.o thread.o
> > make[2]: ar: Command not found
>
> Try adding /usr/ccs/bin to your PATH.  That's where ar lives on
> Solaris.