Debianでいろいろと
どうも、カロスです。
とりあえず、Debianをインストールして、Ruby on Railsを試してみようと考えています。
まず、まず躓いた点
64bitをインストールしたら、できなかったため
32bitをダウンロードしてインストールしました。
ダウンロード参考
Debianを入手するには
インストールのセットアップは、デフォルトの状態で始めています。
環境構築は後でも、できると考えているので、その辺のチェックはとりあえず外しました。
終わったら、まずVMware Toolをインストールして
あれ、途中で、ループした。
The path "" is not valid path to the gcc binary.
Would you like to change it?[yes]
what is the location of the gcc program on your machine?
なんか、gccがないっぽいので、
rootで、
aptitude install gcc |
The path "" is not a valid path to the 2.6.32-5-686 kernel headers.
Would you like to chang it? [yes]
Enter the path to the kernel header files for the 2.6.32-5-686 kernel?
aptitude install linux-headers-2.6.32-5-686 |
Rails install 参考
Debianに最新のRuby on Railsを入れようとしたらえらく手間だった件について。
参考にしたコマンドを丸写しで実行する。
aptitude -y install g++ make zlib1g-dev libssl-dev libsqlite3-dev apache2-mpm-prefork apache2-prefork-dev libapr1-dev libaprutil1-dev libcurl4-openssl-dev wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz wget http://rubyforge.org/frs/download.php/75309/rubygems-1.8.10.tgz wget http://nodejs.org/dist/node-v0.4.11.tar.gz # Ruby tar zxf ruby-1.9.2-p290.tar.gz cd ruby-1.9.2-p290 ./configure --prefix=/usr/local/ruby make make install cd .. ln /usr/local/ruby/bin/ruby /usr/bin/ruby ruby -v # Ruby Gems tar zxf rubygems-1.8.10.tgz cd rubygems-1.8.10 ruby setup.rb cd .. ln /usr/local/ruby/bin/gem /usr/bin/gem gem -v # Rake gem install rake ln /usr/local/ruby/bin/rake /usr/bin/rake rake -V # Rails gem install rails --include-dependencies ln /usr/local/ruby/bin/rails /usr/bin/rails rails -v # node.js tar zxf node-v0.4.11.tar.gz cd node-v0.4.11 ./configure --prefix=/usr/local/nodejs make make install cd .. ln /usr/local/nodejs/bin/node /usr/bin/node node -v # Passenger gem install passenger --include-dependencies /usr/local/ruby/bin/passenger-install-apache2-module cd /etc/apache2/ echo LoadModule passenger_module /usr/local/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/ext/apache2/mod_passenger.so >> httpd.conf echo PassengerDefaultUser www-data >> httpd.conf echo PassengerRoot /usr/local/ruby/lib/ruby/gems/1.9.1/gems/passenger-3.0.9 >> httpd.conf echo PassengerRuby /usr/local/ruby/bin/ruby >> httpd.conf |