Solved

Binary to executable

Posted on 2004-10-28
180 Views
Last Modified: 2010-04-17
I've been looking to download a few network administration tools, but it seems that most are in open source binary form.   What do I need to do to convert or compile these into executable format?  Also several of these also have a signature file.  What do I need to do to incorporate the signature files into the porgram?
0
Question by:srejja
    2 Comments
     
    LVL 45

    Expert Comment

    by:sunnycoder
    >open source binary form.  
    What does that mean !!!! ... What was the extension of the file you downloaded? How did you go about installing it?

    >What do I need to do to convert or compile these into executable format?  
    I can tell that once I know what you downloaded what from where in what format and what have you done so far

    >Also several of these also have a signature file.  What do I need to do to incorporate the signature files into the porgram?
    Signatures are used for verifying that the downloaded file is indeed authentic and not a fake ... They are not used for incorporting into the installed programs :-)

    cheers
    0
     
    LVL 48

    Accepted Solution

    by:
    Most open source programs are provided as a gzipped tarball ... or a plain zip archive

    if the extension is .tgz then there are a couple of things you need to do to access the files inside the binary archive.

    1. first you need to unzip the archive. Most of these will have been zipped with gzip so you will need to get a copy of this (Winzip will open these files and gzip comes standard on linux boxes).

    So let us say you have the archive

    A_Really_cool_piece_of_Software_v1.03.tgz

    One way of doing this (on a linux box say) would be to do as follows

    first

    gunzip A_Really_cool_piece_of_Software_v1.03.tgz

    This should produce the file

    A_Really_cool_piece_of_Software_v1.03.tar

    A tar is just a single file containing one or many files one after the other.

    Next

    tar -xvf A_Really_cool_piece_of_Software_v1.03.tar

    Now you have your source that you must compile to get the executable.

    Winzip will also open TGZ files and the tar's contained therein.

    As sunnycoder says the signature is simply a hash the developers put on the download page so that when you download the file you can verify that it is exactly the same file that was put there. The hash is usually an MD5 signature - you would need some additional software to verify the authenticity of the archive - but it is not necessary to use the code.

    HTH



    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    A short article about a problem I had getting the GPS LocationListener working.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    934 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now