Just putting together a quick "cheatsheet" for compiling and installing a package from it's source code.
Start here: (it's all here and it's very simple...)
https://help.ubuntu.com/community/CompilingSoftware
https://help.ubuntu.com/community/CompilingEasyHowTo
Pre-requisites:
Optional - to assist in retrieving the source code:
By convention, put source code under here (extract the source if it's in a zip, tar.gz, etc):
From the root of the source code:
Resolve any missing dependencies:
Build the code:
Package the code into a *.deb:
Install the code directly:
Clean up:
Thats it, nothing ground breaking. Please let me know if there's anything else I've missed.
See also:
http://www.gnu.org/software/make/manual/make.html#Complex-Makefile
Start here: (it's all here and it's very simple...)
https://help.ubuntu.com/community/CompilingSoftware
https://help.ubuntu.com/community/CompilingEasyHowTo
Pre-requisites:
sudo apt-get install build-essential checkinstall
Optional - to assist in retrieving the source code:
sudo apt-get install cvs subversion git-core mercurial
By convention, put source code under here (extract the source if it's in a zip, tar.gz, etc):
/usr/local/src
From the root of the source code:
./configure
Resolve any missing dependencies:
sudo apt-get build-dep <package>
apt-file search <your-missing-file.h>
Build the code:
sudo make
Package the code into a *.deb:
sudo checkinstall
Install the code directly:
sudo make install
Clean up:
sudo make clean
sudo make distclean
Thats it, nothing ground breaking. Please let me know if there's anything else I've missed.
See also:
http://www.gnu.org/software/make/manual/make.html#Complex-Makefile
No comments:
Post a Comment