Re: Problemas compilando pgbench en Red Hat Enterprise Linux 5 para Pg 8.4.1

From: Marcos Luis Ortiz Valmaseda <mlortiz(at)uci(dot)cu>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: pgsql-es-ayuda(at)postgresql(dot)org, Emanuel Calvo Franco <postgres(dot)arg(at)gmail(dot)com>
Subject: Re: Problemas compilando pgbench en Red Hat Enterprise Linux 5 para Pg 8.4.1
Date: 2009-09-29 04:28:07
Message-ID: 1609173396.4677721254198487450.JavaMail.root@ucimail4.uci.cu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Ahora, luego de hacer un make dentro de src/port (el cual fue todo sin problemas) me da este error:
[root(at)clusterdb3 pgbench]# gmake
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv pgbench.o -L../../src/port -lpgport -L../../src/interfaces/libpq -lpq -L../../src/port -Wl,-rpath,'/usr/local/pgsql/lib' -lpgport -lz -lreadline -ltermcap -lcrypt -ldl -lm -o pgbench
/usr/bin/ld: cannot find -lpq
collect2: ld devolvió el estado de salida 1
gmake: *** [pgbench] Error 1

Saludos

"The hurry is enemy of the success: for that reason.......Be patient"

Ing. Marcos L. Ortiz Valmaseda
Línea Soporte y Despliegue
Centro de Tecnologías de Almacenamiento y Análisis de Datos (CENTALAD)

Linux User # 418229
PostgreSQL User
http://www.postgresql.org
http://www.planetpostgresql.org/
http://www.postgresql-es.org/

----- Mensaje original -----
De: "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org>
Para: "Emanuel Calvo Franco" <postgres(dot)arg(at)gmail(dot)com>
CC: "Ing. Marcos L. Ortí­z Valmaseda" <mlortiz(at)uci(dot)cu>, pgsql-es-ayuda(at)postgresql(dot)org
Enviados: Lunes, 28 de Septiembre 2009 14:40:37 GMT -10:00 Hawai
Asunto: Re: [pgsql-es-ayuda] Problemas compilando pgbench en Red Hat Enterprise Linux 5 para Pg 8.4.1

Emanuel Calvo Franco escribió:
> 2009/9/28 "Ing. Marcos L. Ortí­z Valmaseda" <mlortiz(at)uci(dot)cu>:

> > Cuando trato de compilar con gmake el módulo del contrib pgbench, me da el
> > siguiente error con el comando ld:
> > [root(at)clustern3 pgbench]# gmake
> > gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> > -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
> > -I../../src/interfaces/libpq -I. -I../../src/include -D_GNU_SOURCE -c -o
> > pgbench.o pgbench.c
> > gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> > -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
> > pgbench.o -L../../src/port -lpgport -L../../src/interfaces/libpq -lpq
> > -L../../src/port -Wl,-rpath,'/usr/local/pgsql/lib' -lpgport -lz -lreadline
> > -ltermcap -lcrypt -ldl -lm -o pgbench
> > /usr/bin/ld: cannot find -lpgport
> > collect2: ld devolvió el estado de salida 1
> > gmake: *** [pgbench] Error 1

Necesitas que libpgport.a este compilado. Entra en src/port y haz
"make", a ver si mejora.

--
Alvaro Herrera http://www.flickr.com/photos/alvherre/
"You're _really_ hosed if the person doing the hiring doesn't understand
relational systems: you end up with a whole raft of programmers, none of
whom has had a Date with the clue stick." (Andrew Sullivan)

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Sergio Gabriel Rodriguez 2009-09-29 11:10:41 fallo en el server "Out of Memory"
Previous Message Alvaro Herrera 2009-09-29 04:02:21 Re: ayuda urgente con postgres + php en Unit HP-UX