LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2005, 01:24 PM   #1
PenguinE
LQ Newbie
 
Registered: Dec 2004
Location: Suffolk, England
Distribution: SuSe 9.1
Posts: 2

Rep: Reputation: 0
Question pointers needed about installing/compiling from source


Hi y'all, i just recently installed suse 9.1 (dual booted with win xp pro on 2 HDs) and as a complete linux beginner, i want to learn about installing stuff from .gz or .bz2 files. I know how to install .rpm files.

I know how to unzip these files, and i know the usual './compile' and 'make' and 'make install' commands. However, i have read different things from various sources.

Should i run a 'make clean' after the install? I've heard this would clean out all the files used to install the software, and also that it would delete files that are actually installed! Some clarification would be useful.

Secondly, do i need to keep the directory that i compiled the stuff from? Can i change the folder name to something that i can navigate easier? Can i move this folder?

Any answers to these questions (and any that logically follow) would be appreciated,

Richard
 
Old 01-02-2005, 01:29 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi
this is from my help page that i wrote for m LUG

--------
Source packages generally come in 2 compressed formats

xmms-1.2.10.tar.bz2 --compressed with bunzip(bzip)
xmms-1.2.10.tar.gz --compressed with gunzip(gzip)

and others also

1.)first of all we need to extract these packages .
so copy the packages in your Linux partition. for example in /plugins directory.
go to that directory and extract them as follows

[root@gaurav root]# cd /plugins/
[root@gaurav plugins]# tar xjf xmms-1.2.10.tar.bz2
[root@gaurav plugins]#

OR

[root@gaurav root]# cd /plugins/
[root@gaurav plugins]# tar xvzf xmms-1.2.10.tar.gz
[root@gaurav plugins]#

here we pass the arguments
xjf --for uncompressing packages of the type (.tar.bz2)
xvzf --for uncompressing packages of the type (.tar.gz)

more on these attributes can be found by

[root@gaurav root]# man tar

if the packages are in some another format then u can extract them also by
a.)copy the package in your Linux partition
b.)Right click on the package
c.)choose extract here
this method surely takes some time more that the command line version but if you are having any problems in extracting with the command line then u may proceed in this manner

2.)after packages have been extracted then u need to compile them and then install these.
you can go through a file Readme or INSTALL
in all the install readme files you will find the procedure for installing source packages
I am briefing the procedure down here

a.) go to the directory containing the extracted packages

[root@gaurav root]# cd /plugins/xmms-1.2.10
[root@gaurav xmms-1.2.10]#

b.) './configure' will check if the files necessary for installation are available or not

[root@gaurav xmms-1.2.10]# ./configure

c.)' make' will compile the package

[root@gaurav xmms-1.2.10]# make

d.)'make install' will install the executable in '/usr/local/bin' (generally)

after these you can run your new packages by their name only or by giving the full path
[root@gaurav xmms-1.2.10]# xmms

OR

[root@gaurav xmms-1.2.10]# /usr/local/bin/xmms
-------
 
Old 01-02-2005, 01:35 PM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
When you do a make, the compiler creates the software ( and or libs ) in the folder with the sources.

When you do make install, it then copies these files from this folder, to your system.

If you do make clean, it removes the compiled software from the original source directory, it does not uninstall the software.

Moving or renaming the source directory should not be a problem you may have to redo the ./configure thats all. It should have absolutley no effect on the installed software.

The reason you do make, then make install, is because usually you need to be root to install the software, but not to compile it.
 
Old 01-02-2005, 01:38 PM   #4
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
Yes.
"Make clean" actually good command to repell allthe temps and all..
Also before installing the same package again, in case if smth went wrong, recommended to run
#make uninstall
from initial install directory

Happy compiling!
 
Old 01-02-2005, 01:39 PM   #5
PenguinE
LQ Newbie
 
Registered: Dec 2004
Location: Suffolk, England
Distribution: SuSe 9.1
Posts: 2

Original Poster
Rep: Reputation: 0
masand, i probably didnt make it clear enough, but i said i knew how to do that - i was asking about the 'make clean' command, and about changing the directory that i had compiled the app from. thanks anyway.

EDIT: Another thing, when i install the programs, do i have to update the libraries? I read somewhere that i night need to run 'libtool' or something, but i'm not entirely sure.

Richard

Last edited by PenguinE; 01-02-2005 at 01:42 PM.
 
Old 01-02-2005, 02:19 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

when u install a 3rd party tool then too make sure that the path of the libraries , etc is in ur path do this
add the path to ur

/etc/ld.so.conf
for example u have the lib in /usr/local/lib
then add the line
/usr/local/lib/
to the above file and run
ldconfig
this will put the /usr/local/lib in ur path

regards
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some GNOME 2.6 pointers needed Rajahuroman Linux - Software 2 05-23-2004 03:07 PM
Compiling and,installing from source: What next? arubin Linux - Newbie 4 05-22-2004 07:35 PM
Compiling/installing from Source: 2 minor ?'s tigerflag Slackware 4 10-13-2003 10:19 AM
Kernel Source Headers? (help needed installing modem drivers) Jakeyboy Linux - Hardware 8 10-07-2003 04:59 PM
installing, compiling from source illtbagu Linux - Newbie 10 01-04-2003 06:15 PM


All times are GMT -5. The time now is 06:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration