I have three questions about compiling ruby (and other softwares) from source. Ruby is avaliable to install using apt-get, but I want to learn more about Linux and I want to compile from source.
I am using Ubuntu 14.04 LTS. I first downloaded ruby source from ruby site and extracted in my home:
/home/rgiaviti/ruby-2.1.2. Then, I opened terminal and typed:
rgiaviti@ubuntupc:~$ cd /home/ruby-2.1.2 rgiaviti@ubuntupc:~/ruby-2.1.2$ ./configure rgiaviti@ubuntupc:~/ruby-2.1.2$ make rgiaviti@ubuntupc:~/ruby-2.1.2$ sudo make install
After a lot of output, everything worked fine. Absolutely fine. I tested ruby interpreter this way:
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
Success, right? Now, my questions:
- When a new ruby interpreter is released, how do I upgrade my installed version? Just do the same thing I do when installing?
- Can I delete the folder that I extracted the source (
- Is there a way to uninstall the interpreter, like a
apt-get remove, but for compiling from source?
I think, that's all. Thanks.