LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-12-2003, 10:27 AM   #1
log
Member
 
Registered: Dec 2002
Location: South Australia
Distribution: Gentoo
Posts: 113

Rep: Reputation: 15
Question Distribution of software


Im a newbie, so I could be totally wrong.

Say if I compile a program with the latest kernel, does that mean that I can just give that executable file to anone with linux, and as long as they have the latest kernel, it will work regardless of distribution?

If that is the case, then why isnt distribution of software easier? download a compressed file, extract it where you want and run it. Rather than compiling (and often not having everything you need to compile) and going through all the hassle? Sure, RPMs are a lot easier (Yes, i use red hat) but not everyone provides them and if any library is required, you HAVE to install the RPM for that library, and not compile from source.

For example, take suns java, no compiling is required and it just works. BTW, yes, I am a java developer hehe
 
Old 05-12-2003, 10:35 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
nope, a bit wrong i'm afraid. when you compile software it will be expecting certain versions of libraries (not the kernel) to be in certain places. often it will work but you could eaily get unresolved symbol errors or other nasy things. for example...
Code:
trevor chris # ldd /bin/ls
        librt.so.1 => /lib/librt.so.1 (0x40020000)
        libc.so.6 => /lib/libc.so.6 (0x40033000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40161000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
this shows what libraries the ls program will be expecting, and it'll fail if those aren't met.
 
Old 05-12-2003, 10:53 AM   #3
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Most programs require external libraries to compile correctly. You can compile the program "statically", which means you compile the required library routines into the program instead of having it pick up those routines at runtime. However, this makes the compiled binary larger, and since many programs require the same libraries, you would end up duplicating the same routines many many times, which means you would waste an inordinate amount of space.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Software Distribution on Win32? carl.waldbieser Programming 2 12-01-2005 12:56 PM
Software Distribution pomalley Linux - Software 2 10-07-2004 04:11 PM
Network Inventory and Software Distribution Software? tonyfreeman General 1 09-25-2004 05:29 AM
How to submit new software to distribution scottpioso Red Hat 2 12-04-2003 09:19 PM
linux email distribution software anorman Linux - Software 0 10-06-2003 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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