C'est quoi DEPERECATION WARNING?

Bonjour à tous!

Je voudrais utiliser un certain openseradmin(qui ustilise ruby on

rails je suppose). Je ne comprends pas ruby et rails. Mais j’ai eu les
probléme quand je demarre le serveur de openseradmin. Je voudrais savoir
c’est quoi ce DEPERECATION WARNING? Et comment résoudre ce probléme?
Merci beaucoup!!!

Yin

root@opensersip openseradmin-0.3]# ./script/server
./script/…/config/boot.rb:38:Warning: require_gem is obsolete. Use gem
instead.
=> Booting WEBrick…
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2007-08-03 16:53:25] INFO WEBrick 1.3.1
[2007-08-03 16:53:25] INFO ruby 1.8.5 (2006-12-04) [i686-linux]
[2007-08-03 16:53:25] INFO WEBrick::HTTPServer#start: pid=5443
port=3000
DEPRECATION WARNING: model is deprecated and will be removed from Rails
2.0 See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details. (called
from ./script/…/config/…/app/controllers/application.rb:8)
DEPRECATION WARNING: depend_on is deprecated and will be removed from
Rails 2.0 See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details.
(called from model_without_deprecation at
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/deprecated_dependencies.rb:13)
DEPRECATION WARNING: model is deprecated and will be removed from Rails
2.0 See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details. (called
from ./script/…/config/…/app/controllers/login_controller.rb:3)
DEPRECATION WARNING: depend_on is deprecated and will be removed from
Rails 2.0 See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details.
(called from model_without_deprecation at
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/deprecated_dependencies.rb:13)
DEPRECATION WARNING: observer is deprecated and will be removed from
Rails 2.0 See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details.
(called from
./script/…/config/…/app/controllers/login_controller.rb:5)
DEPRECATION WARNING: depend_on is deprecated and will be removed from
Rails 2.0 See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details.
(called from observer_without_deprecation at
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/deprecated_dependencies.rb:29)
DEPRECATION WARNING: @request is deprecated! Call request.method instead
of @request.method. Args: [] See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.
for details. (called from login at
./script/…/config/…/app/controllers/login_controller.rb:9)
DEPRECATION WARNING: start_form_tag is deprecated and will be removed
from Rails 2.0 (use form_tag instead) See
Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details. (called from
_run_rhtml_47app47views47login47login46rhtml at
script/…/config/…/app/views/login/login.rhtml:1)
DEPRECATION WARNING: end_form_tag is deprecated and will be removed from
Rails 2.0 See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details.
(called from _run_rhtml_47app47views47login47login46rhtml at
script/…/config/…/app/views/login/login.rhtml:24)
127.0.0.1 - - [03/Aug/2007:16:53:57 CEST] “GET /login/login HTTP/1.1”
200 603

[2007-08-03 16:54:37] INFO going to shutdown …
[2007-08-03 16:54:37] INFO WEBrick::HTTPServer#start done.

2007/8/6, Yin S. [email protected]:

C’est pas vraiment une erreur. En gros on te préviens que
bientôtcette methode/cet objet/cet attribut sera supprimer. Il faut donc
regarder par quoi, ou comment le remplacer dès maintenant pour que
dans la version suivante, tu n’ai pas d’erreur.

Maintenant si tu es juste utilisateur de ce soft, pas la peine de te
prendre la tête (sauf si tu veux filer un coup de main au dev du
projet, si lui même est opensource bien sur… )


Yannick “Pouype” Francois
http://www.typouype.org
http://www.rubyfrance.org

On 8/6/07, Yin S. [email protected] wrote:

port=3000
DEPRECATION WARNING: depend_on is deprecated and will be removed from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/deprecated_dependencies.rb:29)
Rails 2.0 See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details.
from ./script/…/config/…/app/controllers/application.rb:8)
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/deprecated_dependencies.rb:13)
for details. (called from login at
Rails 2.0 (use find(:first, …)) See
Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details. (called from
authenticate at ./script/…/config/…/app/models/user.rb:7)
127.0.0.1 - - [03/Aug/2007:16:54:06 CEST] “POST /login/login HTTP/1.1”
500 18678
http://localhost:3000/login/login → /login/login

[2007-08-03 16:54:37] INFO going to shutdown …
[2007-08-03 16:54:37] INFO WEBrick::HTTPServer#start done.

Ce sont des renseignements pour indiqué au développeurs que
l’utilisation de certaine métode ou classes seront supprimées dans les
version futures. En conséquence, si tu freeze ton Rails tu n’auras
jamais de problème. Par contre si tu mets à jour rails sur les
prochaines version, rien ne t’assureras que ca marche.


Cyril M.

2007/8/6, Yin S. [email protected]:

getaddrinfo: Name or service not known

RAILS_ROOT: script/…/config/…
Application Trace | Framework Trace | Full Trace

Connexion à ta base de donnée.
Si je ne me trompe pas, rails utilise /tmp/mysql.socket par défaut.
Sur une installation sur un *n[iu]x le socket mysql est plutôt dans
/var/run/mysql/mysql.sock ou /var/log/mysql/mysql.sock a voir…
Jete un coup d’oeil de ce coté, et ajoute dans ton database.yml
l’attribute:
socket: /chemin/vers/le/socket/mysql.sock

ça devrais régler le problème.


Yannick “Pouype” Francois
http://www.typouype.org
http://www.rubyfrance.org

Yin

J’ajouterais que c’est écrit dessus, comme… enfin bref:

DEPRECATION WARNING: model is deprecated and will be removed from Rails
2.0 See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details. (called
from ./script/…/config/…/app/controllers/application.rb:8)

sera supprimer dans rails 2.0, voir
Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. pour les détails :-p


Yannick “Pouype” Francois
http://www.typouype.org
http://www.rubyfrance.org

Merci beaucoup pour votre aides; Mais quand je login dans le page web
http://localhost:3000 pour openseradmin, j’ai eu les errors suivantes.
Mais je ne comprends rien. Vous pouvez me donner un peu d’idées qu’est
ce que ça veut dire?

Yin

SocketError in LoginController#login

getaddrinfo: Name or service not known

RAILS_ROOT: script/…/config/…
Application Trace | Framework Trace | Full Trace

/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in
initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in new’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in
real_connect' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:389:in connect’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:152:in
initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in new’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in
mysql_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in send’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in
connection_without_query_cache=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in connection=’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:230:in
retrieve_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in connection’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1456:in
quote_bound_value' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in replace_bind_variables’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in
gsub' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in replace_bind_variables’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1416:in
sanitize_sql_array' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1387:in sanitize_sql’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1163:in
add_conditions!' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1096:in construct_finder_sql’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:997:in
find_every' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:991:in find_initial’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:417:in
find' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/deprecated_finders.rb:23:in find_first_without_deprecation’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/deprecation.rb:94:in
find_first' app/models/user.rb:7:in authenticate’
app/controllers/login_controller.rb:11:in `login’

/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in
initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in new’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in
real_connect' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:389:in connect’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:152:in
initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in new’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in
mysql_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in send’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in
connection_without_query_cache=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in connection=’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:230:in
retrieve_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in connection’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1456:in
quote_bound_value' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in replace_bind_variables’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in
gsub' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in replace_bind_variables’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1416:in
sanitize_sql_array' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1387:in sanitize_sql’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1163:in
add_conditions!' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1096:in construct_finder_sql’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:997:in
find_every' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:991:in find_initial’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:417:in
find' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/deprecated_finders.rb:23:in find_first_without_deprecation’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/deprecation.rb:94:in
find_first' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in send’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in
perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in call_filter’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:634:in
call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in perform_action_without_benchmark’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in measure’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in perform_action’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in
send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in process_without_filters’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in
process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in process’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in
process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in dispatch’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in
handle_dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:in service’
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in run’
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in start’
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in start’
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in start’
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in start’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in
dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in require’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in require’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in require’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in new_constants_in’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require’
script/server:3

/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in
initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in new’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in
real_connect' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:389:in connect’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:152:in
initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in new’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in
mysql_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in send’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in
connection_without_query_cache=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in connection=’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:230:in
retrieve_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in connection’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1456:in
quote_bound_value' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in replace_bind_variables’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in
gsub' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in replace_bind_variables’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1416:in
sanitize_sql_array' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1387:in sanitize_sql’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1163:in
add_conditions!' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1096:in construct_finder_sql’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:997:in
find_every' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:991:in find_initial’
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:417:in
find' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/deprecated_finders.rb:23:in find_first_without_deprecation’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/deprecation.rb:94:in
find_first' app/models/user.rb:7:in authenticate’
app/controllers/login_controller.rb:11:in login' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in send’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in
perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in call_filter’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:634:in
call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in perform_action_without_benchmark’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in measure’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in perform_action’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in
send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in process_without_filters’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in
process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in process’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in
process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in dispatch’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in
handle_dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:in service’
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in run’
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in start’
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in start’
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in start’
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in start’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in
dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in require’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in require’
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in require’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in new_constants_in’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require’
script/server:3

Request

Parameters: {“user_login”=>“openser”, “user_password”=>“openserrw”,
“login”=>“Login »”}

Show session dump


return-to: /
flash: !map:ActionController::Flash::FlashHash {}

Le 06/08/07, Yin S.[email protected] a écrit :

Successfully installed mysql-2.7.3-mswin32

Je ne sais pas la quelle je dois choisir pour mon platform et j’avais
choisi ‘1’. mon systeme est Fedora 6. Et Mysql et
Mysql-5.0.41-linux-i686. Je ne sais pas ce que j’ai choisi et correct et
la prase:

continuing with the rest of the installation

ça veut dire quoi?

C’est pas très compliqué. mswin32 c’est windows. Si ton système c’est
Fédora, je pense que déjà là tu t’es trompé :smiley: Tu aurais du prendre
l’option 3.

Pour ce qui est de la phrase en anglais, au pire un petit coup de
bablefish (http://fr.babelfish.yahoo.com/) et tu aurais une idée de ce
que cela signifie.

Mais en gros il te dis qu’il continue l’installation…


Yannick “Pouype” Francois
http://www.typouype.org
http://www.rubyfrance.org

Merci beaucoup!! Mais j’ai verifié que mysql.sock est bien
/tmp/mysql.sock et j’ai ajouté une ligne dans database.yml comme vous
dite:

socket: /tmp/mysql.sock

mais tjrs la même error

En effect, pour installer ce openseradmin il faut faire: gem install
mysql, du coup j’ai un doute sur cette commande.

[root@opensersip openseradmin-0.3]# gem install mysql
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (i686-linux)

  1. mysql 2.7.3 (mswin32)
  2. mysql 2.7.1 (mswin32)
  3. mysql 2.7 (ruby)
  4. mysql 2.6 (ruby)
  5. Skip this gem
  6. Cancel installation

1
Successfully installed mysql-2.7.3-mswin32
Installing ri documentation for mysql-2.7.3-mswin32…
Installing RDoc documentation for mysql-2.7.3-mswin32…
While generating documentation for mysql-2.7.3-mswin32
… MESSAGE: Unhandled special: Special: type=17, text=“”
… RDOC args: --op
/usr/local/lib/ruby/gems/1.8/doc/mysql-2.7.3-mswin32/rdoc --exclude ext
–main README --quiet ext README docs/README.html
(continuing with the rest of the installation)
[root@opensersip openseradmin-0.3]#

Je ne sais pas la quelle je dois choisir pour mon platform et j’avais
choisi ‘1’. mon systeme est Fedora 6. Et Mysql et
Mysql-5.0.41-linux-i686. Je ne sais pas ce que j’ai choisi et correct et
la prase:

continuing with the rest of the installation

ça veut dire quoi?

Si vous avez un peu idée? Merci!!!

Merci bcqs pour votre aide. Donc je reinstall tout. :frowning: Et quand je fais
ce
gem install mysql et j’ai choisi 3, j’ai obtenu: [

root@opensersip openseradmin-0.3]# gem install mysql
Select which gem to install for your platform (i686-linux)

  1. mysql 2.7.3 (mswin32)
  2. mysql 2.7.1 (mswin32)
  3. mysql 2.7 (ruby)
  4. mysql 2.6 (ruby)
  5. Skip this gem
  6. Cancel installation

3
Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lm… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lz… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lsocket… no
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lnsl… yes
checking for mysql_query() in -lmysqlclient… 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=/usr/local/bin/ruby
–with-mysql-config
–without-mysql-config
–with-mysql-dir
–without-mysql-dir
–with-mysql-include
–without-mysql-include=${mysql-dir}/include
–with-mysql-lib
–without-mysql-lib=${mysql-dir}/lib
–with-mysqlclientlib
–without-mysqlclientlib
–with-mlib
–without-mlib
–with-mysqlclientlib
–without-mysqlclientlib
–with-zlib
–without-zlib
–with-mysqlclientlib
–without-mysqlclientlib
–with-socketlib
–without-socketlib
–with-mysqlclientlib
–without-mysqlclientlib
–with-nsllib
–without-nsllib
–with-mysqlclientlib
–without-mysqlclientlib

Gem files will remain installed in
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

quel problem à votre avis?

2007/8/6, Yin S. [email protected]:

  1. mysql 2.6 (ruby)
  2. Skip this gem
  3. Cancel installation

3
Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

J’aurais du le préciser avant peut-être… Il faut les librairies de
développement de mysql ( libmysql-dev ou quelque chose comme ça) car
rubymysql contient quelque source a recompilé avec la lib mysql
installé (des .h il me semble).

Ca devrais aller après ça.


Yannick “Pouype” Francois
http://www.typouype.org
http://www.rubyfrance.org

Le 06/08/07, Yin S.[email protected] a écrit :

Merci!!! En effect je trouve que cette installation de mysql-2.7 est
bizzare, car je suis entrée dans le répertoire
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 pour installer cette
mysql-2.7 et j’ai suivi les instructions dans README:

As-tu installé les librairies de développement de mysql ? (libmysql-dev ? )


Yannick “Pouype” Francois
http://www.typouype.org
http://www.rubyfrance.org

Yannick F. wrote:

J’aurais du le pr飩ser avant peut-ê´²e… Il faut les librairies de
d鶥loppement de mysql ( libmysql-dev ou quelque chose comme 硩 car
rubymysql contient quelque source a recompilé ¡vec la lib mysql
installé ¨des .h il me semble).

Ca devrais aller aprè³ ç¡®


Yannick “Pouype” Francois
http://www.typouype.org
http://www.rubyfrance.org

Merci!!! En effect je trouve que cette installation de mysql-2.7 est
bizzare, car je suis entrée dans le répertoire
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 pour installer cette
mysql-2.7 et j’ai suivi les instructions dans README:

Ruby extconf.rb --with-mysql-dir=/usr/local/mysql
#make
Ruby ./test

et après j’ai eu plein d’errors :frowning:


93) Error:
test_fetch(TC_MysqlStmt2):
Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:
NO)
./test.rb:414:in new' ./test.rb:414:in setup’

  1. Error:
    test_fetch(TC_MysqlStmt2):
    NoMethodError: undefined method close' for nil:NilClass ./test.rb:418:in teardown’

  2. Error:
    test_fetch_bigint(TC_MysqlStmt2):
    Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:
    NO)
    ./test.rb:414:in new' ./test.rb:414:in setup’

  3. Error:
    test_fetch_bigint(TC_MysqlStmt2):
    NoMethodError: undefined method close' for nil:NilClass ./test.rb:418:in teardown’

  4. Error:
    test_fetch_bigint_unsigned(TC_MysqlStmt2):
    Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:
    NO)
    ./test.rb:414:in new' ./test.rb:414:in setup’

  5. Error:
    test_fetch_bigint_unsigned(TC_MysqlStmt2):
    NoMethodError: undefined method close' for nil:NilClass ./test.rb:418:in teardown’

  6. Error:
    test_fetch_binary(TC_MysqlStmt2):
    Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:
    NO)
    ./test.rb:414:in new' ./test.rb:414:in setup’

  7. Error:
    test_fetch_binary(TC_MysqlStmt2):
    NoMethodError: undefined method close' for nil:NilClass ./test.rb:418:in teardown’

  8. Error:
    test_fetch_blob(TC_MysqlStmt2):
    Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:
    NO)
    ./test.rb:414:in new' ./test.rb:414:in setup’

  9. Error:
    test_fetch_blob(TC_MysqlStmt2):
    NoMethodError: undefined method close' for nil:NilClass ./test.rb:418:in teardown’

  10. Error:
    test_fetch_char(TC_MysqlStmt2):
    Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:
    NO)
    ./test.rb:414:in new' ./test.rb:414:in setup’

  11. Error:
    test_fetch_char(TC_MysqlStmt2):
    NoMethodError: undefined method close' for nil:NilClass ./test.rb:418:in teardown’

  12. Error:
    test_fetch_date(TC_MysqlStmt2):
    Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:
    NO)
    ./test.rb:414:in new' ./test.rb:414:in setup’

  13. Error:
    test_fetch_date(TC_MysqlStmt2):
    NoMethodError: undefined method close' for nil:NilClass ./test.rb:418:in teardown’

  14. Error:
    test_fetch_datetime(TC_MysqlStmt2):
    Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:
    NO)
    ./test.rb:414:in new' ./test.rb:414:in setup’

Vous pensez c’est koi comme problem?

Le 06/08/07, Yannick F.[email protected] a écrit :


Yannick “Pouype” Francois
http://www.typouype.org
http://www.rubyfrance.org


Yannick F.
http://www.typouype.org
http://www.rubyfrance.org

Le 06/08/07, Yin S.[email protected] a écrit :


93) Error:
test_fetch(TC_MysqlStmt2):
Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:
NO)
./test.rb:414:in new' ./test.rb:414:in setup’

Avant de faire du rails/ruby avec accès a MySQL, tu devrais vérifié
que ton installation de mysql fonctionne, et quel sont les
utilisateurs qui y ont accès, comment, avec quel mot de passe, pour
quel accès…

Si tu mélange les problèmes ça sera plus dur…


Yannick “Pouype” Francois
http://www.typouype.org
http://www.rubyfrance.org