LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 03-28-2004, 03: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, 03: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 03:16 PM.
 
Old 03-28-2004, 03:18 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,070

Rep: Reputation: 62
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, 03: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, 03: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, 03: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, 03: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, 03:40 PM   #8
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 658

Rep: Reputation: 30
It means: No Problem
 
Old 03-29-2004, 04: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, 07: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 01:15 AM
how to install tar.bz2? Fear58 Linux - Software 1 06-20-2004 08:20 PM
How to install .tar.bz2? daYz Slackware 10 11-14-2003 02:58 AM
cannot figure out how to exstract and compile a .tar.bz2 file. ccflashback Linux - Newbie 1 11-03-2003 02:52 PM
How to unpack a .tar.gz2 file? ReSync Linux - Newbie 1 06-18-2002 07:43 AM


All times are GMT -5. The time now is 07:16 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration