How to? compile and install from source? (tar.*/gz2/bz2)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to? compile and install from source? (tar.*/gz2/bz2)
I just switched to Slackware after using Gentoo for a while. (STILL NEWBIE!)
In Gentoo everything is compiled and installed from source, but this is done automatically by "Portage", so I don't really know how to do this manually?
As an example I wan't to install the latest version of Kopete, that can be downloaded as *.tar.bz2 and *.tar.gz2. In Gentoo I would type "emerge kopete", which would download the source, unpack, compile and install it. Done!
Well first unpack it. If you're using Gnome click the mouse at it and the file roller should come up. KDE has something similar. If you right click it should give you the option to extract it. If you want to use a command it would be
tar xjf /path/to/file.tar.bz2
or
tar xzf /path/to/file.tar.gz
then
cd /path/to/file
./configure --(options)
make
make install
type ./configure --help to find what options are available.
You should also check a program called "checkinstall" (well, I think it's "just" a script).
You can then replace "make install" with "checkinstall" and a slack package will be created for you. This way you can easly re-install the package (in case you need it) or remove very easily (you can use pkgtool that has a curses frontend).
Also note that sometimes you'll have to type "./configure --prefix=/usr" so that all the libs and stuff needed for compilation can be find. I don't know if there's a better way (and I don't care by now since I'm the only user on my machine).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.