÷ÓÅÍ ðÒÉ×ÅÔ.
ðÙÔÁÀÓØ ÐÏ ÒÕËÏ×ÏÄÓÔ×Õ ( http://www.html-blog.ru/2008/8/26/rails-on-agava-vps
), ÐÏÓÔÁ×ÉÔØ rails ÎÁ CentOS 5.2.
ëÏÇÄÁ ÐÙÔÁÀÓØ ÐÏÓÔÁ×ÉÔØ gem install mysql, ÐÏÌÕÞÁÀ:
Building native extensions. This could take a while…
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/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
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/
mysql-2.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
ðÏÉÓËÁÌ ÒÅÛÅÎÉÅ × ÉÎÔÅÒÎÅÔÅ, ÎÁÛÅÌ (http://www.icoretech.org/
2008/07/17/centos-5-gem-install-mysql-problems ), ÎÁÂÉÒÁÀ gem install
mysql – --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/
lib/mysql , ÐÏÌÕÞÁÀ:
Building native extensions. This could take a while…
Successfully installed mysql-2.7
1 gem installed
÷ÒÏÄÅ ×ÓÅ ÕÓÔÁÎÏ×ÉÌÏÓØ, ÎÏ ÐÒÉ ÏÂÒÁÝÅÎÉÉ Ë ËÏÎÔÒÏÌÌÅÒÕ ×ÙÐÁÄÁÅÔ 500
ÏÛÉÂËÁ. ÷ log/production.log ÓÏÄÅÒÖÁÔÓÑ ÔÁËÉÅ ÓÔÒÏËÉ:
Mysql::Error (Äðõæèò ÿâìôýæ äíó òðíûÿðþâæåíó ‘root’@‘localhost’ (÷ýí
êõòðíûÿðþâï òâôðíû: ÏÅÆ)):
/opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/
activerecord-2.0.2/lib/active_record/connection_adapters/
mysql_adapter.rb:471:in `real_connect’
… É ÅÝÅ ÍÎÏÇÏ-ÍÎÏÇÏ.
ë ÔÏÍÕ ÖÅ ÎÅ ÐÏÌÕÞÁÅÔÓÑ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ mysqladmin, ÐÉÛÅÔ:
mysqladmin: connect to server at ‘localhost’ failed
÷ÏÔ × ÏÂÝÅÍ É ×ÓÅ, Ñ ÐÏÎÉÍÁÀ ÞÔÏ ×ÏÐÒÏÓ ÂÏÌØÛÅ ÐÏ ÎÁÓÔÒÏÊËÅ ÓÅÒ×ÅÒÁ,
ÞÅÍ ÐÏ rails, ÎÏ ×ÓÅ ÖÅ ÐÒÏÛÕ ÐÏÍÏÞØ. úÁÒÁÎÅÅ ÂÌÁÇÏÄÁÒÀ.
–~–~---------~–~----~------------~-------~–~----~
You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~–~—