½ñÌ죬ÏÂÔØÁËDebian 4.0£¬°²×°¡£
ÎÒµÄÍøËÙÆæÂý£¬»¹ºÃ£¬ÓÃÁË´ó¸Å5¸öСʱ£¬×ÀÃæ»·¾³°²×°Íê±Ï¡£
Debian 4.0ÎÒÒÔǰûÓÐÓùý£¬²»¹ýÎÒһֱʹÓÃUbuntu£¬½øµ½Debianºó£¬·¢ÏÖÄ£ÑùͬËûµÄ¶ù×Ӳ¶à£¬ËùÒÔ¾ÍÖ±½ÓÉÏÊÖÁË¡£
¿´µ½Rubyonrails.orgµÄһƪÎÄÕ£¬ÎÒ¾ÍÕÕºù«»Æ°¡£
aptitude update
˵ÎÒµÄȨÏÞ²»¹»¡£
°´ÕÕUbuntuÉϵÄsudo aptitude²»ÐС£
su root
ÊäÈëÃÜÂë
תÈërootÕÊ»§£¬Õâ»Ø»¹¸Ò˵ÎÒµÄȨÏÞ²»¹»£¿
aptitude update
aptitude upgrade
aptitude install rails
°²×°¿ªÊ¼£¬»¹ÓÐÏàÓ¦µÄһЩ×齨¡£°²×°³É¹¦ºó
ruby -v
ÏÔʾ°æ±¾ºÅ
rails -v
²»¸øÏÔʾ°æ±¾ºÅ£¬µ«ÊÇ¿´ÆðÀ´railsÒѾ°²×°³É¹¦ÁË¡£
gem -version
ûÓа²×°¡£
µ½http://rubyforge.org/frs/?group_id=126ÏÂÔØ£¬½âѹºó£¬ÔÚÎļþ¼ÒÄÚÖ´ÐÐ
ruby setup.rb
gem°²×°Íê±Ï¡£
gem -version
ÏÔʾ°æ±¾ºÅ¡£gem°²×°Íê±Ï¡£
ΪÁ˱£ÏÕ£¬
gem install rails -include-dependencies
´Óа²×°Ò»±é×îеÄrails
°²×°½áÊøºó
rails -v
ÏÔʾ°æ±¾ºÃΪ1.2.3£¬ÊÇ×îеġ£½¨Á¢Ò»¸ö×îеÄrailsÏîÄ¿²âÊÔһϡ£
rails testapp
¡¡
rails»·¾³´î½¨³É¹¦¡£
½ÓÏÂÀ´°²×°Êý¾Ý¿âϵͳMySQL¡£
apt-get install libmysql-ruby mysql-server
ϵͳҪDebian 4.0µÄ°²×°ÅÌ£¨µÚÒ»ÕÅÅÌ£©£¬²åÈë¹âÅÌ£¬°²×°¿ªÊ¼
¡¡