LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-28-2004, 02:03 PM   #1
entob
LQ Newbie
 
Registered: Mar 2004
Location: Norway
Distribution: Slackware 9.1
Posts: 17

Rep: Reputation: 0
Question 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!

So...

How should I do this in Slackware?
 
Old 03-28-2004, 02:15 PM   #2
wiBo
Member
 
Registered: Aug 2003
Location: Saint-Georges de Beauce
Distribution: Gentoo soon..
Posts: 193

Rep: Reputation: 30
1. Unpack the archive
2. ./configure
3. make
4. make install (as root)

Done.

Also, slackware.com team have a Packages Browser:

http://www.slackware.com/pb/


Last edited by wiBo; 03-28-2004 at 02:16 PM.
 
Old 03-28-2004, 02:18 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
Old 03-28-2004, 02:28 PM   #4
entob
LQ Newbie
 
Registered: Mar 2004
Location: Norway
Distribution: Slackware 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks!
 
Old 03-28-2004, 02:30 PM   #5
wiBo
Member
 
Registered: Aug 2003
Location: Saint-Georges de Beauce
Distribution: Gentoo soon..
Posts: 193

Rep: Reputation: 30
np
 
Old 03-28-2004, 02:35 PM   #6
entob
LQ Newbie
 
Registered: Mar 2004
Location: Norway
Distribution: Slackware 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by wiBo
np
People often reply np, what does it mean?
 
Old 03-28-2004, 02:38 PM   #7
wiBo
Member
 
Registered: Aug 2003
Location: Saint-Georges de Beauce
Distribution: Gentoo soon..
Posts: 193

Rep: Reputation: 30
Ohh :

No Problem
^^
 
Old 03-28-2004, 02:40 PM   #8
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 659

Rep: Reputation: 30
It means: No Problem
 
Old 03-29-2004, 03:32 AM   #9
snop
Member
 
Registered: Aug 2003
Location: Bcn
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
Don't forget checkinstall

Hi,

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).

I hope this helps you.

Bye

SnOp
 
Old 03-30-2004, 06:23 PM   #10
yisnixslow
Member
 
Registered: Feb 2004
Posts: 33

Rep: Reputation: 15
hi,
Do I use the same procedure for source and binary packages?
What's the difference between the two types ?

thanks !
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to compile a file of .tar.bz2 zameer_india Linux - Software 7 12-21-2004 12:15 AM
how to install tar.bz2? Fear58 Linux - Software 1 06-20-2004 07:20 PM
How to install .tar.bz2? daYz Slackware 10 11-14-2003 01:58 AM
cannot figure out how to exstract and compile a .tar.bz2 file. ccflashback Linux - Newbie 1 11-03-2003 01:52 PM
How to unpack a .tar.gz2 file? ReSync Linux - Newbie 1 06-18-2002 06:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration