LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-23-2005, 07:58 AM   #1
orisma
LQ Newbie
 
Registered: Oct 2004
Distribution: Suse 9.1
Posts: 15

Rep: Reputation: Disabled
Question Compiling Programs from Source-help


Hi, Im a linux suse 9.1 newbie (i feel im quite and advanced window used, if such a thing exists) and just don’t get anything about Linux, after stumbling through the instillation and making myself a duel boot I was then faced with installing my first program, I searched hi and low all over the web to find a tutorial that I could understand but there were always part that I would get lost at, can anyone help, by either giving me a small program and walk trough of how to install it. I have no linux compling programs or compilers.

Thanks….
 
Old 02-23-2005, 08:06 AM   #2
GlenX
Member
 
Registered: Feb 2005
Location: United Kingdom
Distribution: Fedora Core 3 -
Posts: 37

Rep: Reputation: 15
Hi orisma,

Okay, if your a newb, try to avoid compiling from source, look for a RPM package if possible. SuSE use's RPM, which is basicaly a binary form that suse can install itself (with out the need to compile).

If however you need to compile from source then:

- open the terminal
- type: su
- it will ask you for your root password, so enter that and press enter.
- use the cd command to go to the folder where the source is... for example if the source code came in a folder called myproject0.2 and the folder was in your home and you user name was orisma then you would use this command:


Code:
cd /home/urisma/myproject0.2/
- now you are in the folder you have to configure the source code... use this command:

Code:
./configure
- then if that goes okay you make the binary...

Code:
make
- then you install it

Code:
make install
Now, more than likely you will have a dependacy issue (you will be missing a file that the program needs to run) or some other type of error.

If you do run into errors just copy and paste it in a reply and I will help you out.

GlenX
 
Old 02-23-2005, 08:56 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
I don't know if you'll find it usefull, but here is my own article anyway:
http://yves.gablin.club.fr/pc/linux....ftware/install

Yves.
 
Old 02-23-2005, 09:05 AM   #4
Abnoba12
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 2, Fedora Core 6, UNBUNTU
Posts: 22

Rep: Reputation: 15
I have never compiled from source before either, but this really made it simple. Some of the stuff out there blows me away with terminology.

Thanks for the simple walktrough
 
Old 03-02-2005, 01:54 PM   #5
orisma
LQ Newbie
 
Registered: Oct 2004
Distribution: Suse 9.1
Posts: 15

Original Poster
Rep: Reputation: Disabled
i got an rmp package, what now?

i got an rmp package, what now? when i double click it, it asks me what i want to open it with. i tried using yast but that seems to be only for suse somponents and add ons.??
 
Old 03-02-2005, 05:10 PM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Open a terminal and try the command
rpm -i /path/to/package.rpm
You'll need to change "/path/to/package.rpm" for whatever the real value is on your system. I find the easy way to fill those details in is to drag and drop it into the terminal. Is it SuSE-9.1 personal you installed? The ./configure and make stuff described above probably won't work for you because SuSE-9.1 personal doesn't come with gcc so you can't compile anything from source
 
Old 03-03-2005, 07:57 AM   #7
orisma
LQ Newbie
 
Registered: Oct 2004
Distribution: Suse 9.1
Posts: 15

Original Poster
Rep: Reputation: Disabled
yeah its suse 9.1

yeah it is suse 9.1 persoanl..... shall i get that programm you were on about... but how would i install it? installing on linux seems such a mission to what im used to (windows).
 
  


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
DISCUSSION: Compiling Programs from Source jeremy LinuxAnswers Discussion 51 11-21-2005 04:35 AM
compiling programs from source Frank Leone Linux - Newbie 3 10-30-2005 01:47 AM
why is compiling source programs under linux such a headache? guy24x Linux - Software 21 07-28-2005 06:04 AM
Compiling programs from source rpms coolfrog Linux - General 1 09-10-2004 03:17 PM
Compiling programs from source in Mandrake 10 AMD64 RC1 hydroxy Linux - Software 7 05-12-2004 03:55 PM


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