LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-07-2007, 09:42 AM   #1
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Rep: Reputation: 30
Source Files


Hi

I am learning python and wanted to view the source files of a few programs to learn how they were getting the job done. I am on PCLOS 07 (Mandriva Base) and thought the files would be in the usr/src or usr/share directories however I cannot locate them.

Am I missing something ? Where Should I be looking.

Cheers
 
Old 04-07-2007, 03:08 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Um, if it's python programs whose source you want to see, they'd be in /usr/bin or wherever - or probably /usr/lib for most of the python distribution, itself. If you want to see C (or other source code for binaries), you'd download the source tarball from upstream or use the 'source rpm's of your distro, I believe. Use the package management tools to find where the latter end up. But /usr/src hardly ever holds anything but the kernel source on most Linux distros and sometimes not even that. /usr/share would be for machine-independent data files and documentation, for the most part.
 
Old 04-07-2007, 07:05 PM   #3
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
Thanks yes starting with Python first, C or C++ will be second. All the tutorials just say "Look at the Source" but with no explanation how.

In the /usr/lib I see a lot of files of the "file.so", in /usr/bin I have found most of it, thanks for the tip. Also have found that KDE apps source has a good online browsing facility http://techbase.kde.org/Getting_Started and also this site called Cross Referencing linux http://lxr.linux.no/blurb.html.
 
  


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
gnu make recompiles the source files fully even though the files are not modified yasothamani Linux - Software 4 02-07-2007 06:36 AM
Including header files and source files for classes Feenix Programming 8 09-28-2005 10:53 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 01:13 PM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 06:12 PM
How to use .spm files (Source Package Files) concoran Linux - General 1 06-10-2001 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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