LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-15-2006, 12:54 AM   #1
pat_and_cami
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Rep: Reputation: 0
How can I install Linux Source and gcc with Suse Linux 9.3


I bought Suse Linux 9.3 from Fry's. I installed it using the install disk. I was hoping to use it to write programs for a Linux class I am taking. I am having major problems.

After install I go to kconsole (as myself root as well) and I don't have the *.c or *.h files anywhere (there are /usr/src/linux-2.6.11.4-20a-obj and /usr/x86_64-suse-linux subdirectories, but they are empty!).

I see that there is a 'sources' disk, but when I browse it, I only see some *.rpm files (are these what I use to get the source?!? there seems to be so many of them - and I would need instructions to find out how to get the source files extracted. I only got a User and Admin guide in my purchase (no Programmers Guide), so there are no instructions on how to get the source.

I ended up downloading linux-2.6.15.4 into my Suse system in /usr/src/linux-2.6.15.4 subdirectory that I created. Is this a good idea, or am I going to get some compatibility issues if I use this kernel (would probably be best if I could somehow get the Suse 9.3 source code somehow?!?). I also found out that this Suse Linux 9.3 install of mine does not have gcc or cc. I downloaded gcc, but it didn't configure (it is looking for 'cc' which I don't have either - and I am wondering if I need to download cc.exe from somewhere and how to do it?).

I saw some notes on KDevelop (but it is not anywhere that I can see on my desktop or Help), and it is not in any of the user or admin manuals that Suse came with (AAuuuugghhh Groannnnn!!!)... If this keeps up with Linux, I will gladly pay Mr Gates for the use of an easier operating system... though I hope to not have to load Linux on top of DOS/WIndows (Yuck!) so that I can my coursework done.

Any other tips (or pointers of where I can go) on how to develop using my Suse Linux 9.3? Any help would be greatly appreciated.


Pat//
 
Old 02-15-2006, 02:52 AM   #2
Zodar
LQ Newbie
 
Registered: Dec 2004
Location: Italy PO
Distribution: SuSe 10.0
Posts: 24

Rep: Reputation: 15
Open Yast (in the kde or gnome menù, under system utils), choose install/remove programs (or packets, I don't know exaclty the english word bacause of my localized version). Then write in the taext box, "gcc", "kernel" (for "kernel" you will mark the option with "source").
Then click on "Accept"... That's all.

Least but not last, in Yast opstion, remember to "add source installation path" (or similar...) and write the address of the most famous repository for suse

PACKMAN:
protocol - HTTP
server name - packman.iu-bremen.de
Directories - suse/9.3

GURU:
protocol - HTTP
- FTP
server name - ftp.gwdg.de
Directories - pub/linux/misc/suser-guru/rpm/9.3


More repository or info here:
http://en.opensuse.org/YaST_package_repository


Zodar
 
Old 02-15-2006, 04:16 AM   #3
onjoo
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Suse 10, Suse-factory , RHEL4, SLES9, SLED10
Posts: 380

Rep: Reputation: 30
I guess you didn't open the user guide.

Everything isn't installed by default in suse. Kernel-source, gcc, and ... are missing. But they are on the CD/DVD.

YOU DONT NEED TO COMPILE, because you have rpm packages available allready on the media.
Rpms are like .exe in windows. You install them with yast on straight from command line with rpm or yast(rpm -i gcc.rpm or yast -i gc.rpm)

You can use different kernel if you want, then you have update it manually everytime.

Open Yast -> software management -> search
type "kernel" and select the sources
type "Kdevelop" and select it and dependencies (gcc,make,...) will be installed automatically
 
Old 02-15-2006, 05:19 PM   #4
pat_and_cami
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Onjoo, I am taking a class, and one of the assignments is to download (source), compile and build the kernel. Also I need to add a module into the kernel in one of the later assignments after that.

I looked in the users and admin guide and didn't see anywhere on how to use RPM's. I guess if I run certain RPM's then they will download the source and other things such as gcc? I must confess I am a newbie that doesn't really know what an RPM is (since I have been an embedded RTOS C programmer for 20+ years, we didn't deal with such things). Thanks.
 
  


Reply



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
how do i install arm-linux-gcc swapnilborg Linux - Newbie 2 12-15-2005 11:16 PM
gcc, etc for 64 bit Suse 10.0 Linux Yast Conflicts munichtexan Linux - Software 15 11-19-2005 06:13 PM
GCC for Suse Linux V9 vkpvv Linux - Newbie 3 02-01-2005 05:48 AM
Install linux Kernal-Source in suse 9.0 TheLoneGoldFish Linux - Newbie 5 04-28-2004 12:30 PM
need to upgrade gcc to install kernel-source? downdb Linux - Newbie 2 10-10-2003 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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