Thursday, January 21, 2010

Compile software with make -j

In my previous blog post I explained how to install software on GNU/Linux using Fedora's yum installer and how to compile software.

My professor was telling us how when we compile software it will compile each line of the make file one at a time. This can be a bit of a hassle when installing software like Apache or other large applications. So I did a small benchmark testing to see how much of a difference it makes when you tell make that your cpu can handle more than one job at a time. This was tested on a Q6600 which means its a quad-core.

Compiling irssi-0.8.14

Make(without -j):

$ time make
$ real 0m11.364s
$ user 0m6.175s
$ sys 0m4.332s

Eleven seconds to compile the irc client. Not bad but let us see how it compares to make with the multi-job flag.

Make -j 5

$ time make -j5
$ real 0m3.819s
$ user 0m5.882s
$ sys 0m4.990s

Wow, took four seconds to compile. That makes a big difference.

When you have the horsepower, you may as well use it because it will save you time.

Sunday, January 17, 2010

Blogging is easy!

Hey everyone! My name is David Cabral, but feel free calling me Dave or on irc pokerface3.

http://zenit.senecac.on.ca/wiki/index.php/User:Dpcabra1

https://fedoraproject.org/wiki/User:Dpcabra1


IRC:

14:25 <> wow you finally came back
14:26 <> cloud misses you
14:43 <> Me?
14:44 <> aww that's sweet

Friday, January 15, 2010

Install from Source

Welcome! This is my first useful post of the year.

In most cases people who use Linux use some sort of application manager to install software, such as yum, yast, apt-get, etc... These application managers make installing software reduculously easily. The only issue is that you can only install the software version that is available in the repositories provided by the your Linux distro or by user-defined repositories which normally means that it isn't the latest stable version of that software. In this case we would either see if the software is packaged in some sort of binary package (rpm or deb in most cases). This just makes installing software and managing software a bit easier.

If your familiar with using Linux before these application managers came around you would remember that everything was manually compiled and installed which means that that software should work optimized for your computer. However, it also makes upgrading and managing software a bit more of a hassle.

Now let me show you how you would install software using yum on fedora 12 and how to install using source code.


Irssi - IRC CLI Client

Irssi is an irc client which has a very small memory footprint, allows users to create scripts to create additional features and functions.
This is how you would install it using yum:

yum install irssi

That is it! Now you can run the app by typing irssi in the terminal. howto use irssi

Now lets do it from source. irssi 0.8.14 is the latest version when I wrote this.

wget http://www.irssi.org/files/irssi-0.8.14.tar.gz
tar xzvf irssi-*.tar.gz
cd irssi-*
./configure
make
make install

*Make sure your root when you use make install.

You shouldn't run into any problems since the dependencies normally are pre-installed on most distros.

Wasn't hard to do either of the installs but with yum its a bit easier to remove or to upgrade irssi in the future.

Sometimes you get software that you can only install using the source since it isn't packaged or available in any of the public repositories. If that happens to be the case then you should follow the instructions that the application provides on how to install. An example would be NLED.
installing NLED is super easy and the website provides step by step instructions of the install procedure.

FIRST POST

Hello everybody!!

Hope you all have fun this semester.