LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-08-2004, 12:59 PM   #1
Razza2004
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Slackware 10
Posts: 32

Rep: Reputation: 15
Will a program compiled on one distro work on another?


Hey all, this is a pretty basic question:
If I compile a small program on say, Debian, will it work on slackware and fedora, and if I compile it on slackware, will it work on others?

Thanks for any help.
 
Old 05-08-2004, 01:56 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
It should work if you compile the libraries as static instead of shared. Also sometimes programs depends on the kernel version. If you compile it with kernel version 2.4.x, then the system you are trying to run on have to use 2.4.x. Make sure you compile the program for the correct architecture. Go to sandpile.org to find out the processor architecture.
 
  


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
program compiled under kernel <=2.4 don't work under kernel 2.6 mihaimdl Linux - Software 3 11-08-2005 06:09 PM
Does a prog *have* to be compiled for my distro? rpd Linux - Newbie 8 01-25-2005 06:17 PM
what is a.out means...when we compiled C program indian Programming 8 09-17-2004 01:32 AM
how to run C++ compiled program legend1079 Linux - Newbie 2 03-20-2004 06:40 AM
executing program compiled gcc purusingh Programming 1 08-25-2003 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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