Обсуждение: Problem to compiling with SunStudio

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

Problem to compiling with SunStudio

От
Дата:
Hey,
 
I've got a problem on my new Sun server. I want to you compile postgresql8.4.0 with sunstudio. I try it by
 
./configure CC='/opt/SUNWspro/bin/cc -xtarget=native64' --enable-dtrace DTRACEFLAGS='-64'--with-includes=/opt/sfw/include/ --with-libs=/opt/sfw/lib/ --prefix=/opt/postgresql/8.4.0 --with-libxml
 
The configure returns an error:
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure.  It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
 
when I compile without Sunstudio, everythings goes well:
./configure --with-includes=/opt/sfw/include/ --with-libs=/opt/sfw/lib/ --prefix=/opt/postgresql/8.4.0 --with-libxml
 
How can I compile with SunStudio using readline???
 
 
Thanks
 
Monika König
Bundesstadt Bonn
Amt für Umwelt, Verbraucherschutz und lokale Agenda
Stadthaus, Berliner Platz 2, 53111 Bonn
Telefon +49(0)2 28.77 38 81
Telefax +49(0)2 28.77 26 18
E-Mail monika.koenig@bonn.de
Internet www.bonn.de
 

_____________________________________

Bleiben Sie mit dem 'Bericht aus Bonn' auf dem Laufenden. Informationen aus dem Rathaus, Veranstaltungstipps und aktuelle Nachrichten jetzt im Abo, kostenlos!

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss.

Вложения

Re: Problem to compiling with SunStudio

От
Tom Lane
Дата:
<monika.koenig@bonn.de> writes:
> when I compile without Sunstudio, everythings goes well:
> ...
> How can I compile with SunStudio using readline???

IOW, readline is there and gcc finds it, but SunStudio doesn't.
I'd bet a nickel it's in /usr/local/.  gcc is customarily configured
to search /usr/local/include and /usr/local/lib automatically, but
vendor cc's usually are not.

            regards, tom lane