Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I've just started on my Linux adventure but I've a small question regarding software binaries. I've seen various downloads for Linux software...lets say an application Suse for example. Below ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2007
    Location
    N. Ireland
    Posts
    198

    Cool Compiling Source Code - Just a simple question

    Hi, I've just started on my Linux adventure but I've a small question regarding software binaries.

    I've seen various downloads for Linux software...lets say an application Suse for example. Below this there would be the binaries for the application. If I was to compile these binaries in say...Mandrivia - would the application still work?

    Thanks in advance,
    Finished building PC using PC Pro's A-List! Will add specs soon =)

  2. #2
    Linux Engineer d38dm8nw81k1ng's Avatar
    Join Date
    Mar 2005
    Location
    Newcastle
    Posts
    793
    hmm.. you seem to be getting your terminology mixed up. you don't compile binaries, you run them. do these "binaries" you refer to have the .rpm extension? if so then i think mandriva will be able to run them, however it is unknown whether they will work properly as it will list the install directories that SuSE uses, which may be different to the install directories that mandriva uses. also, it may throw up problems linking to libraries. if the suse9.2.rpm is compiled against say glibc-2.0 and mandriva uses glibc.-2.4 then there are going to be problems. if you get source code (usually in .tar.gz or .tar.bz2) then this will compile and install on any distro with no problems.
    hope that helps.
    Here's why Linux is easier than Windows:
    Package Managers! Apt-Get and Portage (among others) allow users to install programs MUCH easier than Windows can.
    Hardware Drivers. In SuSE, ALL the hardware is detected and installed automatically! How is this harder than Windows' constant disc changing and rebooting?

  3. #3
    Linux Newbie
    Join Date
    Feb 2007
    Location
    N. Ireland
    Posts
    198

    Wink

    Quote Originally Posted by d38dm8nw81k1ng
    hmm.. you seem to be getting your terminology mixed up. you don't compile binaries, you run them. do these "binaries" you refer to have the .rpm extension? if so then i think mandriva will be able to run them, however it is unknown whether they will work properly as it will list the install directories that SuSE uses, which may be different to the install directories that mandriva uses. also, it may throw up problems linking to libraries. if the suse9.2.rpm is compiled against say glibc-2.0 and mandriva uses glibc.-2.4 then there are going to be problems. if you get source code (usually in .tar.gz or .tar.bz2) then this will compile and install on any distro with no problems.
    hope that helps.
    d38dm8nw81k1ng, thank you for taking the time to reply. I wasn't referring to a specific program but rather it was just for future reference. So, let me just verify what you said:

    1. You can run the binaries for a different distro but it is likely it wont work
    2. If you compile the source code it will definitely work on your distribution of linux
    3. Source code is distributed as .tar.gz or .tar.bz2

    I have got a hardware question tho relating to my Wireless Adaptor (Belkin 802.11g Wireless G USB Network Adapter). It works fine under Windows *shudder* but every distro I've tried won't pick it up! How can I get a Linux driver for this? Any ideas?

    Thanks,
    Finished building PC using PC Pro's A-List! Will add specs soon =)

  4. #4
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    There is a 50/50 shot that the binary will work on a distro that it wasn't built for. Do your best to stay away from those not built for your distro.

    As for your wireless adapter, you would be better to start a thread in the wireless section. Hint, include a make and model number along with what you have tried so far.

    Hope that helps!
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  5. #5
    Linux Newbie
    Join Date
    Feb 2007
    Location
    N. Ireland
    Posts
    198
    I will indeed! Thanks for your advice.

    Much appreciated,
    Finished building PC using PC Pro's A-List! Will add specs soon =)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...