LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 12-18-2004, 03:34 AM   #1
TheBlackMan
LQ Newbie
 
Registered: Nov 2004
Location: Romania
Posts: 16

Rep: Reputation: 0
How can I see the surce code in Linux?


In linux, can the source code be seen?
If so, then begin
-how?
-can I make programs in Linux?
-what program do I need?
end;
 
Old 12-18-2004, 03:39 AM   #2
Error1312
Member
 
Registered: Feb 2004
Location: Belgium
Distribution: Ubuntu 10.04 Lucid Lynx
Posts: 140

Rep: Reputation: 15
I don't have that much experience, but I believe you have to download the source files for the program. SRPM files are RPM's with the sources included. And tar.gz and the other formats you have to compile yourself also have the sources included. You just have to find them, open them in a text editor and than you can change whatever you want (on the condition you know what you're doing).

Yes, you can make programs in Linux. If you want C or C++ you can use KDevelop. If you want Java you can use NetBeans.
You might need to install the compilers and the right libraries first. They should be included on your linux cd's.
 
Old 12-18-2004, 04:58 AM   #3
TheBlackMan
LQ Newbie
 
Registered: Nov 2004
Location: Romania
Posts: 16

Original Poster
Rep: Reputation: 0
Oh, no I didn't mean the Linux program itself! I only ment programs in Linux. Sorry.

So, any commands that work in C also work in KDevelop? There is nothing else I should know about the program?
Does Mandrake 8.2 have the program?

What is the extension , ".gz", for ? Met it before and it kind of scares me.

Thanks!

Last edited by TheBlackMan; 12-18-2004 at 04:59 AM.
 
Old 12-18-2004, 05:57 AM   #4
Error1312
Member
 
Registered: Feb 2004
Location: Belgium
Distribution: Ubuntu 10.04 Lucid Lynx
Posts: 140

Rep: Reputation: 15
About the source explanation, I was talking about any program in linux or even linux itself. For example, if you want to see the source code of xine, I think you can download the SRPM's for it, or just the source files (which are the tar.gz files). If you extract them, you should get the source.

About KDevelop, I never had any problems with it for simple C programs, but then again, I never really used it that much. Simply try to write some simple programs like the hello world example. You won't be able to write programs with windows API's of course, but there are a lot of libraries for linux which you can do the same with as in Windows.

Mandrake 8.2 should have it. Simply enter 'kdevelop' in a konsole to check it out. If it is not installed, you can probably install it from your Mandrake 8.2 cd's. Otherwise, you can download it from www.kdevelop.org.

About the tar.gz format. I don't know exactly what it stands for (I think 'tar' means tarball and 'gz' means gzipped), but tar.gz is actually exactly the same as .zip in Windows. To extract it, you can open it with Ark (simply double click on it), or you can extract it in the konsole with the following command:

tar -xzvf filename.tar.gz

(if the extension is tar.bz2, use tar -xvjf filename.tar.bz2)
Usually it will create a new directory in the one you're working in. Simply cd to the new directory to see the files.

I hope I was a help to you.
Good luck with it.

Last edited by Error1312; 12-18-2004 at 05:59 AM.
 
Old 12-18-2004, 08:39 AM   #5
TheBlackMan
LQ Newbie
 
Registered: Nov 2004
Location: Romania
Posts: 16

Original Poster
Rep: Reputation: 0
I'm going to try what you said.

Thanks!
 
  


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
small syntax problem with C code (implemented in Code Composer Studio) illiniguy3043 Programming 6 01-07-2008 03:14 AM
Different source code (linux kernel) in Win & linux isilinux Linux - General 3 11-01-2007 06:15 PM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 02:37 AM
Open Firmware code for booting OS from SATA : sample code available somewhere ? drsparikh Linux - Hardware 0 03-12-2004 12:16 PM
Where to find the linux kernel source code in RH Linux 8? sceadu Linux - Newbie 17 03-20-2003 11:17 PM


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