Bonjour,
Je tiens d'abord à préciser que je ne suis pas sur du tout de poster dans la bonne section
Je met ça la parce que je sais pas trop ou autrement le mettre.
J'ai une question de noob.
J'ai besoin de compiler la librairie libpqxx sous windows. Pour cela, j'utilise MinGW et Msys.
Je suis le readme officiel (disponible ici) cependant j'ai cette erreur lorsque je fais le "./configure" :
Code :
- checking for pg_config... no
- configure: error:
- PostgreSQL configuration script pg_config not found. Make sure this is in your
- command path before configuring. Without it, the configure script has no way to
- find the right location for the libpq library and its headers.
|
Cette erreur est apparemment bien connue puisqu'elle est référencée dans le readme sus-cité.
Cependant, je ne comprend pas la méthode qui est décrite pour y remédier.
Le readme dit ceci :
Code :
- It's called pg_config, and it should be in the bin/
- 70 subdirectory of wherever Postgres is installed on your system. Make sure this
- 71 directory is represented in your executable path before you run the configure
- 72 script, or it will fail with a message like:
- 73
- 74 configure: error: PostgreSQL configuration script pg_config was not found.
- 75
- 76 Or if you don't want to have pg_config in your path for whatever reason, or you
- 77 have multiple PostgreSQL installations on your system (each with their own copy
- 78 of pg_config, naturally) and wish to override the default version, add an option
- 79 like
- 80
- 81 PG_CONFIG=/home/me/postgres/bin/pg_config
- 82
- 83 to your "configure" command line, where /home/me/postgres/bin/pg_config is an
- 84 example of where your preferred copy of pg_config might be. This would indicate
- 85 to the configure script that you wish to build a libpqxx based on the postgres
- 86 version found in /home/me/postgres.
|
Donc je comprends qu'il faut que j'ajoute une option à ma ligne "./configure" mais je ne sais pas du tout comment faire cela.
J'ai essayé en rajoutant "simplement le "PG_CONFIG=...." à la fin de la ligne ou encore "--PG_CONFIG=..." mais ça n'est pas reconnu.
Je ne suis même pas sur d'être sur la bonne voie en essayant de modifier la commande. Est-ce que quelqu'un pourrais m'indiquer un endroit ou je pourrais trouver des infos la-dessus (google n'a pas été mon ami sur ce coup) ou encore mieux une solution