linux poison RSS
linux poison Email

How to install a Ubuntu package from source code

Make sure you have all the necessary development tools (i.e. libraries, compilers, headers):

sudo apt-get install build-essential
sudo apt-get install linux-headers-`uname -r`

Note: "uname -r" lists the current kernel you are using

Extract the archive that contains the source files: tar xvf sourcefilesarchive.tar.gz

Build the package using the package's script (in this case the configure script), compile the package (make), and install the compiled package into your system (make install):

cd /path/to/extracted/sourcefiles
./configure
sudo make
sudo make install

If you get a "permission denied" error when trying to execute the binary, this means that the file is not marked as being executable. To fix this: sudo chmod +x filename


0 comments:

Post a Comment

Related Posts with Thumbnails