Précédent   Forum du club des développeurs et IT Pro > Autres langages > Autres langages > Ruby > Ruby on Rails
Ruby on Rails Le forum sur le framework Ruby on Rails. Voir aussi la FAQ RoR et les cours RoR.
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 02/06/2012, 14h29   #1
kolbek
Invité de passage
 
Inscription : novembre 2005
Messages : 85
Détails du profil
Informations forums :
Inscription : novembre 2005
Messages : 85
Points : 2
Points : 2
Par défaut Installation de Redmine.

Bonjour à tous,

Je suis actuellement sous Mac et j'essaye d'installer Redmine.

J'essaye de suivre le tuto suivant :
http://www.redmine.org/projects/redm...RedmineInstall

J'en suis au point 4 et lorsque je fais la commande :

sudo rake generate_session_store
Password:
Could not find gem 'pg (>= 0.11.0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.

Alors je ne comprend pas du tout pourquoi il veut un postgres car j'essaye de faire l'install de redmine sur mysql...

Auriez vous une idée ?

Merci d'avance et bon week end.
Nico.

EDIT : quand je fais un sudo gem install pg
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
--with-pg
--without-pg
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/pg-0.13.2 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/pg-0.13.2/ext/gem_make.out
kolbek est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 02/06/2012, 15h07   #2
kolbek
Invité de passage
 
Inscription : novembre 2005
Messages : 85
Détails du profil
Informations forums :
Inscription : novembre 2005
Messages : 85
Points : 2
Points : 2
Je me répond a moi même pour ceux qui auraient le même soucis :

sudo env ARCHFLAGS="-arch x86_64" gem install pg -- --with-pg-config=/opt/local/lib/postgresql83/bin/pg_config
kolbek est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 02/06/2012, 15h29   #3
kolbek
Invité de passage
 
Inscription : novembre 2005
Messages : 85
Détails du profil
Informations forums :
Inscription : novembre 2005
Messages : 85
Points : 2
Points : 2
Maintenant il me demande mysql :

sudo gem install mysql -- - with-mysql-config=/usr/bin/mysql_config Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb - with-mysql-config=/usr/bin/mysql_config
checking for mysql_ssl_set()... no
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
--with-mysql-config


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

Mias là pas moyen de trouver une solution...
kolbek est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/06/2012, 02h28   #4
Senaku-seishin
Membre Expert
 
Étudiant
Inscription : août 2004
Messages : 510
Détails du profil
Informations personnelles :
Âge : 23

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : août 2004
Messages : 510
Points : 1 078
Points : 1 078
Envoyer un message via MSN à Senaku-seishin
Installe les headers de mysql.
__________________
Avoir un regard neutre sur notre vie dénuée de sens, c'est la voir tel un ignorant
Senaku-seishin est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 18h43.


 
 
 
 
Partenaires

Hébergement Web