Projekt

Allgemein

Profil

Aktionen

HowTo compile sources

Preliminary note

  • check if this is really necessary
  • check http://pkgs.org/ for packages already available
  • check the developer-site for ready made .rpm-packages
  • check for similar and available packages

compiling code should be the last resort. Always. Period.

Most of this is taken from http://www.tuxfiles.org/linuxhelp/softinstall.html

download

While you can put your source code everywhere it's common to place to: /usr/local/src

compile and install

the installation procedure for software that comes in tar.gz and tar.bz2 packages isn't always the same, but usually it's like this:

tar xvzf package.tar.gz (or tar xvjf package.tar.bz2)
cd package
./configure
make
make install

If you're lucky, by issuing these simple commands you unpack, configure, compile, and install the software package and you don't even have to know what you're doing. However, it's healthy to take a closer look at the installation procedure and see what these steps mean. http://www.tuxfiles.org/linuxhelp/softinstall.html

uninstall

So, you decided you didn't like the program after all? Uninstalling the programs you've compiled yourself isn't as easy as uninstalling programs you've installed with a package manager, like rpm.
If you want to uninstall the software you've compiled yourself, do the obvious: do some old-fashioned RTFM'ig. Read the documentation that came with your software package and see if it says anything about uninstalling. If it doesn't, you can start pulling your hair out.
If you didn't delete your Makefile, you may be able to remove the program by doing a make uninstall:

cd package
make uninstall

If you see weird text scrolling on your screen (but at this point you've probably got used to weird text filling the screen? :-) that's a good sign. If make starts complaining at you, that's a bad sign. Then you'll have to remove the program files manually.
If you know where the program was installed, you'll have to manually delete the installed files or the directory where your program is. If you have no idea where all the files are, you'll have to read the Makefile and see where all the files got installed, and then delete them.

Von Jeremias Keihsler vor etwa 7 Jahren aktualisiert · 1 Revisionen