Ubuntu Geek

Ubuntu Linux Tutorials,Howtos,Tips & News | Gutsy,Hardy,Intrepid

  • RSS Feed

    subscribe to the ubuntu Geek RSS feed

  • Follow Us on Twitter

  • Sponsor


  • Categories

  • Meta

  • Sponsor

  • Archives

  • Support Ubuntugeek

    Amount $:
    Website(Optional):


  • Favourite Sites

How to Install Source Files in Ubuntu

Posted by mike-d on November 9th, 2007 Email This Post Email This Post

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

For all those who are beginners in any linux(ubuntu) find hard to find the package files of their distro and end up in finding an source package(which is either in tar.gz or .gz).. so now people think how to install these source files…..

lets now see how would you be installing source files in ubuntu…..

source files contain the programs and hence before the installation you need to compile them… so you need to install the build-essentials from the synaptic package manager…. else this build-essentials is already present in the cd.. and so you can install it…..else you can install it typing it in the terminal by

sudo aptitude install build-essential

suppose you have a source file name src.tar.gz, what you do initially is that you need to extract the source files and then in the terminal….

navigate to the folder where the source file is extracted using the cd commands….. and then

type the following…
./configure

make

sudo make install

clean install

lets see what each one of them does…

./configure….. checks whether the required dependencies are available on your system or not….. if not an error is reported….

make compiles the source code and make install is used to install the program in to the location

if it asks for an installation location it is recommended to install all the source to /usr/src

clean install removes any temporary files created in the installation process of the source

and thats it your source file in installed in your system.

Share/Save/Bookmark

Related Articles

6 Responses to “How to Install Source Files in Ubuntu”

  1. Jeremy A. White-Zeager Says:

    I’m trying to install OpenYahtzee from the source code and I can’t get this to work. The first thing I ran into is that the “build-essentials” package seems to be called “build-essential” instead.

    Once I had that installed, ./configure completed just fine but I get a number of errors when I run the make command. I’d be happy to share this info if I can contact you directly - I think it’s a bit much to paste into this comment.

  2. ShakaZ Says:

    This article is useless… there are a lot of apps that don’t install that way, yet you make it sound like this method will work in all cases.

    The best thing to do is to read the install instructions which can usually be found in an INSTALL text file or on the project’s website.

  3. Ustun Says:

    1. Enable the source repository in sources.list by commenting out the lines starting with deb-src.

    2. Issue “apt-get build-dep app_name” to get the required packages for building.

  4. assasin Says:

    I am trying to install the clit .lit converter .I have downloaded the source code in a zip archive. It contains two folders…. “clit15″ and “lib”
    What ahould i do????

  5. anonymous Says:

    its not build-essentials, its build-essential

  6. admin Says:

    I have updated the article Thanks for your comment

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>