LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-16-2003, 06:18 PM   #1
antjessopuk
LQ Newbie
 
Registered: Oct 2003
Location: Derbyshire, UK
Distribution: Mandrake 10.0 CE
Posts: 14

Rep: Reputation: 0
Angry How to compile software on Suse Personal 8.2


I have been using Windows since I was 11 and i'm now 22, 11 years of indoctrination! I have SuSE Personal 8.2 and i'm doing OK. One thing haunts me, HOW DO I INSTALL SOFTWARE!!! I'm lost in makes, configs and wotdoyacallits. Can anyone help me? I found a program on Tucows that helps you to do it, but guess what, you have to compile it yourself, great thinking guys!!! Please help a newbie trying to break free from the microsoft snare.

Thanks
Ant
 
Old 10-16-2003, 06:51 PM   #2
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
Welcome to LQ!

What type of file did you download? If you have to compile, it is most likely a *.tar.gz (otherwise known as a tarball). The first thing you need to do is uncompress it, extracting the files out of it (kinda like a *.zip file)

at a console:
tar -zxvf file.tar.gz
You'll then most likely have a new folder named for the file that contains all the other files that were in the tarball. cd to that folder.
Take a look at the contents. If there is a README or an INSTALL file, read those to see if you need to do anything special. A lot of the time you don't need to. If you see a file called configure, then that's what you run next.
at the console:
./configure
The ./ designates the current directory.
You'll see a bunch of information scroll by as it configures the binaries to your system. If there are any errors, it will tell you.
Next step:
make
This builds the program. You will see a lot more stuff scroll by, most of which you won't understand. This can take a while depending on the program and you system speed. Again, if there are any major errors, it will probably tell you.
After that is done, you'll want to run (as root)
make install
which will install the program to the proper path so that when you want to run it you just type in the name.

Keep in mind, this is not always the way these are installed. Some apps come pre-compiled so you just run them, others you don't need the "./configure" part. Always look for a README or other instructions, as they will tell you what you need to do.

Linux is very differnet from Windows, and I'll admit that this sort of thing does not make it easy to switch over, it just takes doing it a few times to get comfortable.
 
Old 10-16-2003, 07:32 PM   #3
wini_g
Member
 
Registered: Jun 2003
Distribution: SuSE 11.0
Posts: 171

Rep: Reputation: 30
.... I know tarballs & similiars are kinda not really pretty ,methinks certainly ....

Easier to get a program in ".rpm"īs so you can install them by just clicking "Install with Yast" when in Konqueror ... or using the program rpm on the console .... a lot easier .... try out rpmfind.net OR rpmseek.com OR freshmeat.net ...

You could of course try to convert the tarballs into rpmīs using the rpm program .... its an option as far as I remember ... but I havenīt tried yet ....

Just have to see what happens ....

Nother interesting thing would be to try to get APT-GET for SuSE running ( http://linux01.gwdg.de/apt4rpm/ ) .... simplyfies program & system updates & installations .... as far as I know ... havenīt tried either .

N-JOY .
 
Old 10-17-2003, 06:36 AM   #4
antjessopuk
LQ Newbie
 
Registered: Oct 2003
Location: Derbyshire, UK
Distribution: Mandrake 10.0 CE
Posts: 14

Original Poster
Rep: Reputation: 0
Cheers guys, i'll try your suggestions.
 
Old 10-17-2003, 08:03 AM   #5
k.van.hagen
Member
 
Registered: Aug 2003
Location: Castricum, The Netherlands
Distribution: Debian
Posts: 49

Rep: Reputation: 15
Here's a guide on installing software, including compile-from-source, and rpm's.

http://www.tldp.org/HOWTO/Software-Building-HOWTO.html
 
Old 10-17-2003, 09:40 AM   #6
antjessopuk
LQ Newbie
 
Registered: Oct 2003
Location: Derbyshire, UK
Distribution: Mandrake 10.0 CE
Posts: 14

Original Poster
Rep: Reputation: 0
OK, now i'm getting this message when I try to configure:

configure: error: no acceptable C compiler found in $PATH

Any ideas?
Ant
 
Old 10-17-2003, 11:11 AM   #7
k.van.hagen
Member
 
Registered: Aug 2003
Location: Castricum, The Netherlands
Distribution: Debian
Posts: 49

Rep: Reputation: 15
is gcc in you /sbin or /usr/sbin dir?
If you type

echo $PATH

are the two paths mentioned above in there?
 
Old 10-17-2003, 03:19 PM   #8
antjessopuk
LQ Newbie
 
Registered: Oct 2003
Location: Derbyshire, UK
Distribution: Mandrake 10.0 CE
Posts: 14

Original Poster
Rep: Reputation: 0
Yep, sorted that, now its telling me could not find pkg-config
 
Old 10-18-2003, 07:11 AM   #9
krussell
Member
 
Registered: Jul 2003
Location: dhaka
Distribution: Slackware 11 (fixed), MEPIS
Posts: 241

Rep: Reputation: 30
"OK, now i'm getting this message when I try to configure:
configure: error: no acceptable C compiler found in $PATH
Any ideas?"

you can install/configure anytime but you need some pre-defined packages, libraries, and header files first. install everything related to Software Development and Advance Software Development from your linux installation cd. whenevr you encounter an error in ./configure, you know that it is due to absenece of some files and these files are available in the cd's or in the internet.
 
  


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
Can't compile programs under SuSE 9.3 Personal manuelkuhs SUSE / openSUSE 2 09-29-2005 03:19 PM
Software error in SuSE 9.1 Personal Mr. Hill Linux - Newbie 4 02-13-2005 06:21 PM
Completely unable to compile anything from source, 9.1 Personal Baddox SUSE / openSUSE 3 12-03-2004 12:04 PM
personal diary software ninadb Programming 3 09-24-2004 10:41 PM
ftp upgrade from SuSE 7.1 personal to SuSE 7.2 SlCKB0Y Linux - General 5 11-04-2001 10:44 PM


All times are GMT -5. The time now is 01:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration