Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Install»How to Compile and Install .tar.gz or .tar.bz2 Source Package on Ubuntu

    How to Compile and Install .tar.gz or .tar.bz2 Source Package on Ubuntu

    RahulBy RahulDecember 1, 20142 Mins Read

    Generally Ubuntu users used Synaptic Package Manager for GUI and apt package manager for command line for installing packages. But not all latest application’s provides pre compiled packages for system, In that case you need to compile it using source code for installing application on your system.

    This article will help you for installing packages using source archive on Ubuntu systems.

    Prerequisites

    Before working with the compilation of source package, First we need to prepare our system with requirements for compilation.

    $ sudo apt-get install apt-file autoconf build-essential checkinstall
    

    Extract Source Package

    Firstly download the source archive on your system and extract it. Mostly users select home directory, /opt or Desktop for extracting package but we prefer to use /usr/local/src/ directory for extracting source of packages.

    $ cd /usr/local/src/
    
    $ tar -xzf myapp-1.5.tar.gz
    or
    $ tar -xjf myapp-1.5.tar.bz2
    

    Compile and Install from Source

    Now navigate to extracted directory and look for one of files INSTALL or INSTALL.txt or README.

    $ cd /usr/local/src/myapp-1.5
    

    These files contains the compilation steps for that source application. If you do not found them, Most of applications can be compiled using following commands.

    $ ./configure
    $ make
    $ sudo make install
    

    Install Missing Libraries

    During compilation of packages if you get any messages for missing library requirements. First use apt-file command to search respective package for that file.

    $ apt-file search <missing file name with extension>
    

    Install the package searched using above command.

    $ sudo apt-get install <package name>
    
    compile Install package source
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleWhy Do You Need Fastest SDDs?
    Next Article What is Google Apps MX Records for DNS ?

    Related Posts

    How To Install Older Version of a NPM Package

    Updated:July 4, 20212 Mins Read

    How to Use AppImage on Linux (Beginner Guide)

    Updated:October 22, 20203 Mins Read

    How to Install Apache/PHP 7 on CentOS/RHEL 7.6/6.9 and Fedora 31/30

    Updated:March 13, 20202 Mins Read

    How to Run SQL Text File on MySQL Command Prompt

    Updated:July 26, 20171 Min Read

    How To Exclude Packages from Apt-Get Upgrade

    Updated:September 29, 20202 Mins Read

    How to Install Oracle VirtualBox 6.0 on CentOS/RHEL 7/6

    Updated:February 4, 20192 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    • (Resolved) Please install all available updates for your release before upgrading
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.