LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-23-2007, 08:09 AM   #1
Adam555
Member
 
Registered: Nov 2003
Distribution: BackTrack2 (based on Slax)
Posts: 43

Rep: Reputation: 15
Basic overview on compling / installing


Can someone give me a basic overview on compling / installing apps? I hav tried unsuccessfuly to add a screensaver and openoffice

I get the idea (I think) - RPMs are for Redhat only?

Others use are complied using a script or the make command and then moved or copied to a location manually or using a script?

Thanks
 
Old 05-23-2007, 08:13 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
For OpenOffice, it would be better if you installed from the rpms instead of the .src.rpm's.

If you have a source rpm, after installing it and CD'ing to the SPECS directory, you can run "sudo rpmbuild -bi <name>.spec" to compile and install from a source rpm.
 
Old 05-23-2007, 08:41 AM   #3
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
Ideally, use your package manager.

If not, download the source tarball. Untar and unzip it (the man page will tell you how to do this - usually "tar -xvzf filename") and then see what it has in the way of "README" files.

Usually, it's as simple as (as your normal user):
./configure
make


And then (as root)
make install

If it's not that simple, there should be either a README or a guide online to tell you what to do.

The above does presuppose that you have GCC and the requisite libraries and so on installed, of course..
 
Old 05-23-2007, 11:32 AM   #4
Adam555
Member
 
Registered: Nov 2003
Distribution: BackTrack2 (based on Slax)
Posts: 43

Original Poster
Rep: Reputation: 15
I don't know what a package manager is? I thought only Redhat had that?

How can I tell?

So for sources (not packages) then untar it then
configure
make

and then

make install

will all be called install? I guess if not as you say check the docs

I might try a screensaver now!
 
Old 05-23-2007, 11:56 AM   #5
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
Virtually every distro has a package manager - even LFS can have one if you really want. They just don't all use RPMs.

If you'd filled in your profile with what distro you use (hint hint) we'd be able to tell you exactly what package manager you had available and how to use it to install things.

Don't forget the all-important "dot slash" in front of the "configure" step - if you don't put "./configure" it won't work.
 
Old 05-23-2007, 09:51 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
I had focused on the OP's mention of RPM and didn't check the disto in the profile.
If the distro uses source packages (.tgz) for installation, using your distro's package system and downloading the package meant for your distro will lead to the fewest problems. I'm sure the distro comes with documentation which includes instructions for installing software.
 
Old 05-24-2007, 07:42 AM   #7
Adam555
Member
 
Registered: Nov 2003
Distribution: BackTrack2 (based on Slax)
Posts: 43

Original Poster
Rep: Reputation: 15
ok thanks guys - have filled in my distro now..

But I thought I would be brave armed with my new found knowledge and try and compile from src..

So I choose a screensaver bundle called Really Slick Screensavers...

So I tried to untar but failed cos not in gzip format - Konqueror could open so I cut and paste out using that..

Then changed to the dir and did the ./configure command and that look like it did something - lots of ..yes but a final error

configure: error: cannot run /bin/sh ./config.sub

and then the make and the make install commands didn't work

Dam I'm George McThickie at the moment
 
Old 05-30-2007, 12:36 PM   #8
Adam555
Member
 
Registered: Nov 2003
Distribution: BackTrack2 (based on Slax)
Posts: 43

Original Poster
Rep: Reputation: 15
ok tired about 20 more diff and mange to get one to compile and make

great thanks

during my travels I encountered a Slax? cmd called pkginstall - can someone explain what this is used for?
 
Old 05-30-2007, 05:24 PM   #9
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
pkginstall installs packages in Slack's native format, which is .tgz
 
Old 05-31-2007, 02:11 AM   #10
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
The tool is installpkg [small but important correction]

Basicly if you want least of worries I would suggest going with Debian or Debian-like systems as they have the best package manager out there. Every user has their opinions but apt-get that Debian's use is one of the greatest package managers in Linux world. I personally don't like RPM-based distros.... and yet I write this on RHEL5
 
Old 05-31-2007, 11:44 AM   #11
Adam555
Member
 
Registered: Nov 2003
Distribution: BackTrack2 (based on Slax)
Posts: 43

Original Poster
Rep: Reputation: 15
So I guess it is just a script that unzips (sorry untars) then ./configure's and then make's and then make install's?

Can someone explain what ./configure does? I think make compiles and make install, compiles and executes the installer?

Thanks
 
Old 05-31-2007, 12:09 PM   #12
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
installpkg doesn't compile them - the packages are already compiled, it just puts the files in the right places.

./configure generally checks that you've got all the vital things, checks which of the optional things you've got, and generates the relevant "make" file

make generally does the all the compiling

make install generally just moves the compiled files to the right places - which is why you need to be root to use it most of the time, as it moves them to system folders
 
Old 06-01-2007, 12:33 PM   #13
Adam555
Member
 
Registered: Nov 2003
Distribution: BackTrack2 (based on Slax)
Posts: 43

Original Poster
Rep: Reputation: 15
perfect - I understand know - thanks for all your help - have cut and paste into a little text file
 
  


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
basic installing slimserver? pod777 Linux - Software 1 04-02-2006 12:07 PM
A basic idea about installing nirav1983 Linux - Newbie 4 12-22-2005 05:23 AM
basic installing probs :/ AgentDukey Linux - Software 3 10-10-2004 09:35 AM
Help installing basic programs SniperCharlie Linux - Software 4 08-08-2003 06:11 PM
installing biniaries .. very basic Papamo Linux - Newbie 9 12-11-2002 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:27 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