Skip to main content

Building from source

We had to build two packages from GNU list of Packages from source.
The difference between building from a source and straight up installing the program is that, we do not download a package when we are building from source, however, we download the actual code of the program and make our way from there. This is a typical procedure that we follow when we are building program from source

1) Issue command "./configre" or "sh ./configure" in the directory that we downloaded the source code. This script creates a "make" file according to the settings of our computer. If we are missing development tools, the configure script will give an error here.

2) If everything goes well then ./configure creates a make file which we would use to actually build the program on our computer in a script form.
      What do I mean by script form?
      "make" does not install the program on our computer, it just builds it on the
       the directory we want it to build on. Therefore we would have to give
       path to the executable file of the utility. For example
       If i used "make" on my current file and I want to run less, I would say
       ./less "filename"

"make install" would install the utility on your computer then you can just run the command from anywhere saying "less (filename)"

3) After the "make" command is executed without any errors, the program is build on the directory of you specified an option called "datadir". If not then they program/utility will be build on the current directory and can be run with this command "./utility options". If there are any libraries needed to build this specific program the error will show up here saying "so and so library missing the utility will installed without it" or sometimes, if the library is crucial then it would not install the utility without that library.


I chose to build "less" and "grep" since these are the packages I am familiar with and I thought it would be fairly easy to build.


Installing Less

I downloaded less from GNU project website and was redirected to download from a mirror in University of Waterloo.

I then unzipped the packed using "gunzip" utility and extracted it using "tar -xf" command.

After that I started to follow the steps that I outlined above.
I ran into an error called "Terminal Libraries broken". I realized that I did not install the development tools outlined by Chris in the lab instructions so I installed them using yum
yum groupinstall "development tools" "development libraries"

after that I just issued the "make" command and the utility was built without any issues.

Installing grep

I followed the same step what I did for less, except that this time I did not get the error that my Terminal library is broken. The ./configure command completed this time however it gave a warning.
"configure: WARNING: libpcre development library was not found or not usable."
"configure: WARNING: GNU grep will be built without pcre support."

I did not want to do an incomplete job, therefore, I just installed the prce-devel,i686 package using the yum utility
"yum install prce-devel.i686" and then executed the "make" command. Grep was installed.

Installing both utilities took me about 15 minutes.

Comments

Popular posts from this blog

ASUS RT N16 + OpenWRT + nodogsplash = WiFi Hotspot (For beginners)

1.Make sure you are directly connected to the router through a cable ·Take an ethernet cable from your ASUS modem and plug it into your pc/laptop
2.Now access your modem by going into the browser and typing: 192.168.1.1 ·Go to administration tab and click on Firmware upgrade/update NOTE: Please use internet explorer for all of these configurations. There are some issues reported in other browsers. 3.You will have to load a DD-WRT basic image first to load the openWRT image. You cannot directly load openWRT image for some reason I dont know of ·Download the image by clicking on the link: www.dd-wrt.com/routerdb/de/download/Asus/RT-N16/-/dd-wrt.v24-14896_NEWD-2_K2.6_mini_RT-N16.trx/3763
4.Once the image is downloaded just click on browse on the ASUS firmware upgrade page and browse to the DDWRT image and upload it
5.

How to Install GTK-RecordMyDesktop on RHEL 7 (best screen recording software imo)

If you want to record your screen to make tutorials or something else, GTK-recordmydesktop is capable of doing it. Most of the screen-recording programs that I have come across requires you to record your audio separately, however this software is also capable of recording audio without any extra step. It can also work with JACK audio server.

PART 1 - Install EPL repository for RHEL 7:
Open a terminalInstall epel using the following command: yum -y install epel-release.Refresh repo by typing the following commad: yum repolist.PART 2 - Install GTK-RecordMyDesktop: yum install gtk-recordmydesktop That's it, it should work right away. If it doesn't, it is possible that you might be missing some codecs as I installed them from nux and epel repos earlier.

Virtual Machine doesn't start, stuck at "PCI2.10 PnP PMM"

Another day another problem, I was setting up a lab environment, after creating a Virtual Machine using Virtual Machine Manager, My machine would get stuck here and never move:

SeaBIOSversion 1.9.1-5.el7_3.2) Machine UUID ... iPXE (http://ipxe.org) 00:03.0 C980 PCI2.10 PnP PMM

The error seemed to suggest there was something wrong with my NIC card as the Virtual Machine would boot if i disabled Network. I even tried it with a new NIC card but i kept getting stuck here.

Solution:
Turned out that I didn't enable Virtualization in BIOS. Please make sure Virtualization is enabled before creating a Virtual Machine.

I am still wondering how I was able to create a VM without a Network.