Site icon Dipin Krishna

Installing a package from source

sudo apt-get install build-essential
sudo apt-get install linux-headers-`uname -r`
Note: “uname -r” lists the current kernel you are using
tar xvf sourcefilesarchive.tar.gz
cd /path/to/extracted/sourcefiles
./configure
sudo make
sudo make install
Note: typing ./ before a filename in the current folder allows the Linux shell to try and execute the file as an application even if it is not in the path (the set of folders which it searches when you type a command name). If you get a “permission denied” error, the file is not marked as being executable. To fix this:
sudo chmod +x filename
Example: In the above instructions, configure is the shell script to build the package from source. To be sure the configure script is executable:
sudo chmod +x configure
Exit mobile version