note this is an old posting I’ve recreated for reference. The versions of files mentioned here will be out of date
I’m installing a dedicated rails server. This is the documentation on getting things working on Debian stable.
Firstly, I chose to install ruby and rubygems from source because the packages in Debian Stable are a little older than I would like.
First thing to do is get a development environment installed on Debian. The quickest/simplest way is to install the build-essential pseudo package.
aptitude install build-essential
Then we need zlib libraries for ruby
aptitude install zlib1g-dev
Download the ruby source code
and extract it
tar zxvf ruby-1.8.6-p111.tar.gz
cd ruby-1.8.6-p111
./configure
make
sudo make install
Download ruby gems and extract it
tar zxvf rubygems-1.0.1.tgz
cd rubygems-1.0.1
ruby ./setup.rb
Install rails
gem install rails
Install msyql
aptitude install mysql-server
and client libraries
aptitude install libmysqlclient15-dev
gem install mysql
and that’s it done. | |
I’m installing a dedicated rails server. This is the documentation on getting things working on Debian stable.
Firstly, I chose to install ruby and rubygems from source because the packages in Debian Stable are a little older than I would like.
First thing to do is get a development environment installed on Debian. The quickest/simplest way is to install the build-essential pseudo package.
aptitude install build-essential
Then we need zlib libraries for ruby
aptitude install zlib1g-dev
Download the ruby source code
and extract it
tar zxvf ruby-1.8.6-p111.tar.gz
cd ruby-1.8.6-p111
./configure
make
sudo make install
Download ruby gems and extract it
tar zxvf rubygems-1.0.1.tgz
cd rubygems-1.0.1
ruby ./setup.rb
Install rails
gem install rails
Install msyql
aptitude install mysql-server
and client libraries
aptitude install libmysqlclient15-dev
gem install mysql
and that’s it done.