Xairro.com

Login
Schliessen

Willkommen im Xairroversum! Ein kostenloser Account bei uns bietet dir mehrere Vorteile. Welche das genau sind, kannst du in der Tour erfahren. Viel Spaß!

Login

Register

Compiling programs by yourself

If for a program doesn't exist any precompiled package but the source code is available, you seemly have to compile the source by yourself. It's a bit more complex but therefor the compiled program is well adapted for your system.
For compiling some source code you have to install some tools. Essential tools are 'gcc' and 'make' which you can easily install by using apt.
Source codes mostly are available as a .tar.gz package. You can extract it by typing tar xvfz filename.tar.gz into your bash.
For compiling a program you need to customize the configuration files of the program. You can do this by typing ./configure into the console. After doing this you can start the compiling with the command make. If that finished, too, you execute sudo make install for installing the compiled program.

Additional information: After a note by Julian i've got some information related to checkinstall: instead of typing in the last step 'make install' it's better to type on Debian-based systems (like Ubuntu) checkinstall. This will create a .deb or .rpm file which you can install by typing dpkg -i packagename.deb respectively rpm -i packagename.rpm and uninstall with dpkg -r packagename.deb respectively rpm -e packagename.rp,.

0 comments

Sorry but there are no comments for this entry. What about writing the first one?

Post comment

Zum Kommentieren musst du angemeldet sein.

About the author

Lukas

Lukas aka BlitzChecker programmiert seit 2003 in diversen Programmiersprachen. Spezialisiert hat er sich auf die Webprogrammierung und Linux Administration. Sein Fachwissen gibt er gerne in Artikeln auf Xairro weiter.

Weitere Informationen gibt es in seinem Userprofil auf Xairro und auf seiner privaten Homepage.

Tags

'gcc' adapted after and any are better but can code compiling deb dpkg execute filename finished for have information install it's like make more mostly program respectively rpm some source sudo systems tar this tools ubuntu which with you your