I start to learn Ruby on Rails. As always when you learn new programming
language toolchain is required. In this tutorial I will try to go through
toolchain preparation for my Debian wheezy. Of course I based on Vim as my
editor of choice. Second requirement will be using some parts of toolchain in
latest greatest version.
As a beginner point for learning Ruby on Rails I choose
this tutorial. I
will try to use their methods of setting environment adding my comments where it
is needed. Also will resolve Debian and Vim specific issues. So let’s begin.
After quick look at RoR tutorial I have to switch to
this site
for installation for Ubuntu 12.04 LTS. But instructions don’t work as expected
for my Debian. So after quick:
1
sudo apt-get install git curl
I realized that I need proxy for curl and not only temporary but permanent. I
added below line to my $HOME/.curlrc:
1
proxy=proxy.server.com:8080
After that I was able to download and install stable version of rvm:
Next thing we need is Node.js because this code of JavaScript runtime is under
active development (latest version is 0.8.14 and Debian provided for sid 0.6.19)
we use its latest greatest version from git repository.
1
git clone https://github.com/joyent/node.git
Following by:
1
cd node;./configure;make;make test
In my configuration only one test failed test-tls-server-verify:
1
2
3
4
5
6
7
8
9
10
11
Running 'Allow both authed and unauthed connections with CA1'
throw new assert.AssertionError({
^
AssertionError: agent1 rejected, but should NOT have been
at ChildProcess.<anonymous>
(/home/pietrushnic/src/node/test/simple/test-tls-server-verify.js:217:14)
at ChildProcess.EventEmitter.emit (events.js:96:17)
at Process.ChildProcess._handle.onexit
(child_process.js:698:12)
at process._makeCallback (node.js:248:20)
</anonymous>
This is known issue probably we have to wait for update of OpenSSL library in
wheezy. Ignore this problem and install node.js:
1
sudo make install
Because of RoR tutorial requirements we install version 1.9.3:
1
rvm get head && rvm reload rvm install 1.9.3
Next thing will be adding vim-ruby for our favorite editor Vim. I organize my
dotfiles using git. I also use pathogen to control Vim plugins (as described
here),
so :
Finally we have ready to use Ruby on Rails development environment based on Vim.
I suggest to take a look at this
movie and after that dive into
tutorial.
Founder of 3mdeb, a passionate advocate for open-source firmware solutions, driven by a belief in transparency, innovation, and trustworthiness. Every day is a new opportunity to embody the company's vision, emphasizing user liberty, simplicity, and privacy. Beyond business, a casual chess and bridge player, finding peace in nature and nourishment in theology, philosophy, and psychology. A person striving to foster a healthy community, grounded in collaboration and shared growth, while nurturing a lifelong curiosity and a desire to deeply understand the world.