iceman bonsoir a tous, je me dirige a vous car j'ai essayé d'installer postgresql mais je n'y arrive pas. Alors j'ai bien décompressé l'archive en faisant tar -xzvf ... puis ./configure mais apres je ne sais pas quoi faire apres cette commande. Est-que quelqun aurait un bon tutoriel car même sur le site de postgresql je n'ai pas compris comment faire. merci d'avance bruno
eddy33 hum... C'est un grand classique de la compilation sous Linux. Pour de nombreux projets, compiler les sources revient a la suite d'actions ; $ ./configure $ make # make install ++
iceman j'ai fais la maniulation prescrite mais à la fin de ./configure il m'affiche une erreur et je ne peux éxécuter le make. Désolé mais je suis débutant sous linux. Voila le message d"erreur : [postgres@localhost postgresql-8.2.3]$ ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking which template to use... linux checking whether to build with 64-bit integer date/time support... no checking whether NLS is wanted... no checking for default port number... 5432 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking if gcc supports -Wdeclaration-after-statement... yes checking if gcc supports -Wendif-labels... yes checking if gcc supports -fno-strict-aliasing... yes configure: using CFLAGS=-O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing checking whether the C compiler still works... yes checking how to run the C preprocessor... gcc -E checking allow thread-safe client libraries... no checking whether to build with Tcl... no checking whether to build Perl modules... no checking whether to build Python modules... no checking whether to build with Kerberos 5 support... no checking whether to build with PAM support... no checking whether to build with LDAP support... no checking whether to build with Bonjour support... no checking whether to build with OpenSSL support... no checking for egrep... grep -E configure: using CPPFLAGS=-D_GNU_SOURCE configure: using LDFLAGS= checking for gawk... gawk checking for flex... no configure: WARNING: *** Without Flex you will not be able to build PostgreSQL from CVS or *** change any of the scanner definition files. You can obtain Flex from *** a GNU mirror site. (If you are using the official distribution of *** PostgreSQL then you do not need to worry about this because the Flex *** output is pre-generated.) checking whether ln -s works... yes checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for ranlib... ranlib checking for tar... /bin/tar checking for strip... strip checking whether it is possible to strip libraries... yes checking for bison... no configure: WARNING: *** Without Bison you will not be able to build PostgreSQL from CVS nor *** change any of the parser definition files. You can obtain Bison from *** a GNU mirror site. (If you are using the official distribution of *** PostgreSQL then you do not need to worry about this, because the Bison *** output is pre-generated.) To use a different yacc program (possible, *** but not recommended), set the environment variable YACC before running *** 'configure'. checking for perl... /usr/bin/perl checking for main in -lm... yes checking for library containing setproctitle... no checking for library containing dlopen... -ldl checking for library containing socket... none required checking for library containing shl_load... no checking for library containing getopt_long... none required checking for library containing crypt... -lcrypt checking for library containing fdatasync... none required checking for library containing shmget... none required checking for -lreadline... no checking for -ledit... no 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. [postgres@localhost postgresql-8.2.3]$ make You need to run the 'configure' program first. See the file 'INSTALL' for installation instructions. make: *** [all] Erreur 1 [postgres@localhost postgresql-8.2.3]$ yum install yumex Loading "installonlyn" plugin You need to be root to perform this command. [postgres@localhost postgresql-8.2.3]$ su -root su: option invalide -- r Pour en savoir davantage, faites: « su --help ». [postgres@localhost postgresql-8.2.3]$ su root Mot de passe : [root@localhost postgresql-8.2.3]# yum install yumex Loading "installonlyn" plugin Existing lock /var/run/yum.pid: another copy is running. Aborting. [root@localhost postgresql-8.2.3]# yum install gcc Loading "installonlyn" plugin Existing lock /var/run/yum.pid: another copy is running. Aborting. [root@localhost postgresql-8.2.3]# su -postgres su: option invalide -- o Pour en savoir davantage, faites: « su --help ». [root@localhost postgresql-8.2.3]# su postgres [postgres@localhost postgresql-8.2.3]$ make You need to run the 'configure' program first. See the file 'INSTALL' for installation instructions. make: *** [all] Erreur 1 [postgres@localhost postgresql-8.2.3]$ ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking which template to use... linux checking whether to build with 64-bit integer date/time support... no checking whether NLS is wanted... no checking for default port number... 5432 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking if gcc supports -Wdeclaration-after-statement... yes checking if gcc supports -Wendif-labels... yes checking if gcc supports -fno-strict-aliasing... yes configure: using CFLAGS=-O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing checking whether the C compiler still works... yes checking how to run the C preprocessor... gcc -E checking allow thread-safe client libraries... no checking whether to build with Tcl... no checking whether to build Perl modules... no checking whether to build Python modules... no checking whether to build with Kerberos 5 support... no checking whether to build with PAM support... no checking whether to build with LDAP support... no checking whether to build with Bonjour support... no checking whether to build with OpenSSL support... no checking for egrep... grep -E configure: using CPPFLAGS=-D_GNU_SOURCE configure: using LDFLAGS= checking for gawk... gawk checking for flex... no configure: WARNING: *** Without Flex you will not be able to build PostgreSQL from CVS or *** change any of the scanner definition files. You can obtain Flex from *** a GNU mirror site. (If you are using the official distribution of *** PostgreSQL then you do not need to worry about this because the Flex *** output is pre-generated.) checking whether ln -s works... yes checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for ranlib... ranlib checking for tar... /bin/tar checking for strip... strip checking whether it is possible to strip libraries... yes checking for bison... no configure: WARNING: *** Without Bison you will not be able to build PostgreSQL from CVS nor *** change any of the parser definition files. You can obtain Bison from *** a GNU mirror site. (If you are using the official distribution of *** PostgreSQL then you do not need to worry about this, because the Bison *** output is pre-generated.) To use a different yacc program (possible, *** but not recommended), set the environment variable YACC before running *** 'configure'. checking for perl... /usr/bin/perl checking for main in -lm... yes checking for library containing setproctitle... no checking for library containing dlopen... -ldl checking for library containing socket... none required checking for library containing shl_load... no checking for library containing getopt_long... none required checking for library containing crypt... -lcrypt checking for library containing fdatasync... none required checking for library containing shmget... none required checking for -lreadline... no checking for -ledit... no 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. [postgres@localhost postgresql-8.2.3]$ make You need to run the 'configure' program first. See the file 'INSTALL' for installation instructions. make: *** [all] Erreur 1
TuXpaD juste une question: pourquoi ne pas l'avoir installé via yum? j'ai eu àl'installer il y a peu, il est sur les dépôts courant. sinon bon courage pour la suite
eddy33 hum... Comme tu es debutant sous Linux, evite deja la compilation et fais une installation des paquetages via yum... ++