rubygems, rails, sqlite3ã¤ã³ã¹ãã¼ã«
ãããã¤ã³ã¿ã¼ãããã¬ã³ã¿ã«ãµã¼ãã¼ã¹ã¿ã³ãã¼ããã©ã³ã容é1GBâ3GBã«ãªã£ãã®ã§ãRailsã¨Fastladderãå ¥ãã¦ã¿ãã
- ãããã«æåããå ¥ã£ã¦ããrubyã使ã
- rubygemsã¯ã½ã¼ã¹ããã¤ã³ã¹ãã¼ã«ãã
- DBã¯SQLite3
- railsã¯mongrelã§èµ·åã§ããã®ããªï¼
åèï¼ããã¡ããã®ããã°: ãããã®ã¬ã³ã¿ã«ãµã¼ãã¼ã«Ruby on Rails 2.0.2ãã¤ã³ã¹ãã¼ã«ããæ¹æ³
http://rubyforge.org/frs/?group_id=126 ãã
wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz tar -zxvf rubygems-1.3.1.tgz cd rubygems-1.3.1/ ruby setup.rb --prefix=$HOME/local
If `gem` was installed by a previous RubyGems installation, you may need to remove it by hand.
~/bin/gem18ãå ¥ã£ã
~/.zshrc ã«è¿½è¨
export RUBYLIB=$HOME/local/lib export GEM_HOME=$HOME/local/lib/ruby/gem
cd ~/local/bin/ mv gem18 gem
railsãã¤ã³ã¹ãã¼ã«
gem install rails --include-dependencies
Successfully installed rake-0.8.3 Successfully installed activesupport-2.2.2 Successfully installed activerecord-2.2.2 Successfully installed actionpack-2.2.2 Successfully installed actionmailer-2.2.2 Successfully installed activeresource-2.2.2 Successfully installed rails-2.2.2 7 gems installed Installing ri documentation for rake-0.8.3... Installing ri documentation for activesupport-2.2.2... Installing ri documentation for activerecord-2.2.2... Installing ri documentation for actionpack-2.2.2... Installing ri documentation for actionmailer-2.2.2... Installing ri documentation for activeresource-2.2.2... Installing RDoc documentation for rake-0.8.3... Installing RDoc documentation for activesupport-2.2.2... Installing RDoc documentation for activerecord-2.2.2... Installing RDoc documentation for actionpack-2.2.2... Installing RDoc documentation for actionmailer-2.2.2... Installing RDoc documentation for activeresource-2.2.2...
ãã¹ã®éã£ã¦ãããã£ã¬ã¯ããªã«ã·ã³ããªãã¯ãªã³ã¯ã¯ã£ã¦ãã
ln -s ~/local/lib/ruby/gem/bin/rails ~/bin/rails ln -s ~/local/lib/ruby/gem/bin/rake ~/bin/rake
SQLite3é¢é£ãã¤ã³ã¹ãã¼ã«ããã
ã¾ãæ¬ä½
åèï¼Sakura ãµã¼ãã« Sqlite3 ãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã - Rubyã®éç¥ - ã¯ã¦ãªï¼Rubyã°ã«ã¼ã
wget http://sqlite.org/sqlite-3.6.6.2.tar.gz tar -zxvf sqlite-3.6.6.2.tar.gz cd sqlite-3.6.6.2/ ./configure --prefix=$HOME/local make make install
gemããã¯sqlite3-rubyãå
¥ããªãã®ã§ã½ã¼ã¹ãã
åèï¼ãããã« fastladder å
¥ãããã¨ãã - 御çæåã¹ãã¤ã©ã«
wget http://rubyforge.org/frs/download.php/42056/sqlite3-ruby-1.2.4.tar.gz tar -zxvf sqlite3-ruby-1.2.4.tar.gz cd sqlite3-ruby-1.2.4/ ruby setup.rb config --prefix=$HOME/local ruby setup.rb setup ruby setup.rb install
sqlite3-rubyããã¹ã®éã£ã¦ããæã«ã³ãã¼ãã
cp -R ~/local/lib/ruby/site_ruby/1.8/* ~/local/lib/
ãªããæ°æã¡æªããªã.zshrcã§export RUBYLIBãè¤æ°æå®ããæ¹æ³ããããã°ããã¯ãããªããã ãã©
Railsã§BBSãä½ã£ã¦ã¿ã - æ©æ¬è©³è§£ãåèã«ãrailsã¢ããªãä½ã£ã¦ã¿ãã
mkdir ~/rails cd ~/rails rails testbbs ruby script/generate scaffold message name:string body:text rake db:migrate ./script/server
ãã㧠http://hostname:3000/messages ã§webrickã§railsã¢ããªãèµ·åãã
ã§ããã°mongrelå
¥ãããã