Find the answer to your Linux question:
Results 1 to 4 of 4
My distribution of Damn Small Linux (Linux box 2.4.31 #6 SMP Fri Oct 21 15:15:54 EDT 2005 i686 unknown) didn't come with a C compiler. Where can I get a ...
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    8

    Installing C compiler

    My distribution of Damn Small Linux (Linux box 2.4.31 #6 SMP Fri Oct 21 15:15:54 EDT 2005 i686 unknown) didn't come with a C compiler. Where can I get a C compiler?

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Where can I get a C compiler?
    Evidently, from a later release of DSL. (Search that page for tcc)

    Hope this helps.
    --
    Bill

    Old age and treachery will overcome youth and skill.

  3. #3
    Just Joined!
    Join Date
    Aug 2008
    Posts
    8
    Thanks. I tried looking for every ?cc except tcc.

    Just in case it comes up: how would you put (bootstrap) a C compiler on a system that doesn't ship with one (assuming there's no access to precompiled binaries)?

  4. #4
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    how would you put (bootstrap) a C compiler on a system that doesn't ship with one (assuming there's no access to precompiled binaries)?
    I wouldn't. Typically, a C compiler (along with any associated assembler, etc.) would be complex enough that you'd want to get one that's made for your distro. This means going to the DSL site. I browsed around, and it seems that you can't get things that are part of the main distro without getting the whole distro. So you could download the latest distro, copy the files associated with tcc to your computer, and see what happens. But if tcc is anything like gcc, there are dozens of files you need if you want to get from C source to a runnable program. (The #include files come to mind.)

    It might be that you can use MyDSL to add tcc to your system. I just don't know enough about DSL to say; you'll have to be the pioneer. Otherwise, it could be that your only recourse is to upgrade to the latest DSL.
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

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