Results 1 to 10 of 10

Thread: Need help for compiling programs from source

  1. #1
    Join Date
    Apr 2010
    Posts
    51
    Why do most of them compile programs commencing source code. What is the purpose of this write up. More rapidly or later when utilizing Linux you determine to hear the term "compile commencing source". This be able to be intimidating the primary time you hear it, additional than on one occasion you understand what it is and how it runs you determine to locate it is essentially quite simple. You might ask yourself why you would desire to utilize source when there are package management systems similar to rpm and apt. At the same time as these tools do create things simple, there are a small number of drawbacks to utilizing them. First I have comprised to depend on somebody to essentially do the packaging. This means when an innovative version or description comes out I might not be capable to install it until the package is modernized. I be able to forever go grab the source. Packages are in addition compiled to the lowest frequent denominator. Options with the intention of numerous people might necessitate are facilitated and the entire additional are put out of action. This means by means of the intention of if the characteristic I desire is not compiled into the package or I desire things installed to fit my system exactly source is the merely alternative. Or is there any other option.

    Is there anyone here who knows or who have some idea about this topic? Why do we need to compile programs from source code? Or what is the intention of this write-up? Or many more questions are there. So please someone provide some detail about How to compile programs from source or every or any detail about this topic.

  2. #2
    Join Date
    Apr 2009
    Posts
    569

    Re: Need help for compiling programs from source

    There be able to be numerous motivations to compile software commencing source code, capability to customize, personalize and increased presentation are the majority frequently seen reasons. In my case it is the entire regarding performance. You might not gain much by means of a modern system, additional than if you have encompassed a slow sluggish system, you determine to definitely observe a disparity. The objective of this write-up is two-fold, get superior presentation and learn something regarding how Linux runs (a intimidating prospect!) I mean yes this is a superior learning experience additional than Ubuntu is not premeditated for compiling stuff yourself, on one occasion you install it you would not have an simple method to uninstall it (besides create uninstall). On the other hand I be able to observe how gentoo does sort of hold your hand a diminutive bit compared to compiling 100% of source yourself, if by means of the intention of is what you are endeavoring to demonstrate.

  3. #3
    Join Date
    May 2009
    Posts
    529

    Re: Need help for compiling programs from source

    Become aware of the instructions regarding kpkg. On one occasion a source is configured and accumulated, it be able to be packaged into a deb or rpm, and then you inaugurate by means of the intention of so the package manager deals by means of what files go where. How do you imagine pre-compiled (I have encompassed an aversion to the term "binary"; the whole thing in a system is binary) packages and distro are completed to start by means of it. I agree by means of the intention of Ubuntu seems to be a less-than-optimal selection if you do not desire to utilize pre-compiled packages, although. Getting a desktop inaugurate in Gentoo is an ordeal I immediately do not desire to go from side to side the entire in excess of again. Spent regarding a week endeavoring to setup a functional rig. No go. The Ubuntu is the majority accepted distro, it presently runs out of the box and is built for noobs. I presently desire to demonstrate by means of the intention of there is a bit in it for those who desire to optimize further. You be able to always create a .deb and utilize software manager to install/uninstall your packages.

  4. #4
    Join Date
    May 2009
    Posts
    637

    Re: Need help for compiling programs from source

    The binary would not run to any further extent unless rebuilt, additional than the causes of this are unexplained without tools to track it down. The similar method additional packages be familiar by means of it. The RPM or DEB contains addiction information in sequence, and that information contains version information on the dependency. If package B-1.0 depends on A-1.0, and you desire to bring up to date to A-1.1, additional than the ABI does not revolutionize, the package manager be familiar with it be able to install A-1.1 without necessitate to update B. If the ABI revolutionize in 1.2, then the package manager determine to say "B-1.0 is obstructing install of A-1.2", and it would not bring up to date it. I imagine pre-compiled distros approximating Ubuntu utilize static libraries as an alternative of dynamic (though I have not utilized anything additional than Gentoo in years so I am not certain), so that when you install an to bring up to date, it does not eliminate the old libraries, it immediately adds innovative ones alongside, and applications depending on the previous versions tranquil have them.

  5. #5
    Join Date
    May 2009
    Posts
    543

    Re: Need help for compiling programs from source

    The Static libraries are not break up binaries at the entire; they are built into the executable (i.e. linked in at accumulate time) as contrasting to communal libraries by means of the intention of are linked in at run time. I be familiar by means of Gentoo sometimes slots the libraries so with the intention of multiple versions or descriptions of shared libraries are concurrently obtainable. The Gentoo is running on how to grip shared library versioning right at present (which determine to be much superior managed from side to side portage 2.2). Presently stuff is able to break a assortment and you have comprised to fix it by means of revdep-rebuild. The entire modern linux distros utilize shared libraries. The amount of memory with the intention of would be wasted by utilizing static linking would be enormous every working with executable, no matter how diminutive, might have glibc built into it.

  6. #6
    Join Date
    Mar 2010
    Posts
    1,003

    Re: Need help for compiling programs from source

    The merely things I be able to imagine of with the intention of might be affected by with the intention of are file system drivers (FUSE/CUSE, CIFS, NFS), video drivers if you twist KMS on or off, and perhaps no matter which by means of the intention of depends on kernel crypto routines. The majority the whole thing else is user space, and not reliant on diminutive kernel variations. You nailed it for me too. I have comprised ran into a number of tribulations I had to run out by means of kernel crypto routines when compiling truecrypt and not having a number of alternative obtainable I was giving the impression of being for. So that’s sort of what I have comprised in the back of my mind by means of the most recent position, in addition to not be familiar by means of what else might be similar in by means of the intention of method. Binary distros often not be able to bring up to date packages for the reason with the intention of the innovative version or description of program A requires a innovative version of program B, additional than the ABI is incompatible by means of programs C-Z, so you would necessitate to bring up to date the whole thing. One motivation I hate binary distros. Adding plenty of kernels has no effect on speed. The initial is by means of the intention of several program requires a minimum kernel version or description by means of certain characteristic built in. Additional than those characteristic and the minimum description, you are ok.

  7. #7
    Join Date
    May 2009
    Posts
    637

    Re: How to compile programs from source

    I have some solution for you just check this out:

    Why do we need to compile programs from source code?
    There can be a lot of motivations to compile software from source code, ability to modify, personalize and improved performance are the nearly all normally seen causes. In my case it is all about performance. You may not increase a lot with a modern system, but if you contain a slow lethargic system, you will unquestionably observe a disparity.

    What is the intention of this write-up?
    The idea of this write-up is double, get better performance and be trained something about how Linux works.

    Strength of the document:
    I am not a Linux specialist. The whole thing which I mention over here has been dragged from another sources and modified to my system.

  8. #8
    Join Date
    May 2009
    Posts
    511

    Re: How to compile programs from source

    I contain some information about Compilation of the Linux Kernel:

    Testbed:
    1. Dell Inspiron 600m slows laptop
    2. Ubuntu 10.10

    Pre-requisites:
    1. Get well-known with the command line.
    2. Unzipping archives via GUI is simple.
    3. Find the way to folders and viewing files.


    Process:

    Lately I have been experimenting in Linux, extra purposely Ubuntu. I have setup Ubuntu 10.10 on my Dell Inspiron 600m laptop. This very old clunker had troubles in abundance with XP on it. I required observing how NIX would execute.

    The first thing I did later than setup Ubuntu was to compile the kernel from source. There are a few steps followed:
    1. Download the newest source from kernel.org.
    2. Extract the archive to a suitable location.
    3. All the essential tools should be setup by default
    4. Earlier than compiling the kernel, you have to select what alternatives to enable or disable. In another words I have to arrange the kernel. The stock configure comes with the whole thing. A safe stake would be to duplicate the existing stock configuration file earlier than trimming the fat.
    5. The subsequently step would be to edit the Makefile. This file having a lot of alternatives that are utilized to construct the kernel, but I am interested just in convinced hardware optimization alternatives that will be utilized by the C Compiler. Find the way into the folder which you presently unzipped and release the file named Makefile in regedit or any additional editor.
    6. Press Ctrl + F and type in cflags. Modify as you satisfy.

  9. #9
    Join Date
    May 2009
    Posts
    543

    Re: How to compile programs from source

    Here I just want to ask you something. Just tell me why not utilize Gentoo for this? I mean this is a superior knowledge experience but Ubuntu is not intended for compiling matter manually, one time you setup it you won't have an simple technique to uninstall it. On the other hand I can observe how Gentoo does reasonably hold your hand a little bit evaluated to compiling 100 percent of source manually, if that is what you are annoying to explain.

  10. #10
    Join Date
    May 2009
    Posts
    529

    Re: How to compile programs from source

    One time a source is configured and compiled, it can be wrapped up into a DEB or RPM, and after that you setup that so the package manager deals with which files goes where. How do you consider pre-compiled, I have an aversion to the term "binary"; the whole thing in a computer is binary packages and distro are made to begin with? I have the same opinion that Ubuntu appears to be a less-than-optimal option if you don't wish to make use of pre-compiled packages, though.

Similar Threads

  1. Automatic compiling from source tool
    By duckyma in forum Software Development
    Replies: 4
    Last Post: 09-01-2011, 10:09 PM
  2. Close source and Open source
    By Dolsy_bendal in forum Operating Systems
    Replies: 3
    Last Post: 24-11-2009, 04:10 PM
  3. Replies: 7
    Last Post: 14-08-2009, 09:03 PM
  4. Replies: 0
    Last Post: 10-01-2009, 08:37 PM
  5. Replies: 3
    Last Post: 05-09-2006, 05:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,570,752.31374 seconds with 17 queries