How to Compile from source?

How would I compile from source in, say, Fedora? Or just your standard Linux installation. Is it Git? How do into Git? I've read the man page.

Nothing Ever Happens Shirt $21.68

Yakub: World's Greatest Dad Shirt $21.68

Nothing Ever Happens Shirt $21.68

  1. 2 years ago
    Anonymous
  2. 2 years ago
    Anonymous

    well for example you have source code. So open terminal point to the directory of program and "sometimes" its as easy as doing the following:
    >./ configure.sh
    >make
    >make install
    But thats not always the case.

    • 2 years ago
      Anonymous

      Git is a version control system, anon. It can be used to get source code, but you need a compiler for the software, and it may depend, based on what you are trying to compile.
      Usually does it, but as stated; not always.

    • 2 years ago
      Anonymous

      sometimes it's:
      >mkdir build
      >cd build
      >cmake ../
      then
      >make
      >(root) make install

  3. 2 years ago
    Anonymous

    It deoends on what they used but usually the build instructions are on the git repo

  4. 2 years ago
    Anonymous

    install gentoo

  5. 2 years ago
    Anonymous

    Git gud

  6. 2 years ago
    Anonymous

    there are always fool proof instructions for linux compile if you can read. sometimes for distro, sometimes general.

  7. 2 years ago
    Anonymous

    nix build <package>

  8. 2 years ago
    Anonymous

    try something easy like dolphin-emu first to get a grip.

  9. 2 years ago
    Anonymous

    Thank you for the pointers, IQfyentoomen.

    • 2 years ago
      Anonymous

      >thanks for spoonfeeding me fellow fa/g/s

  10. 2 years ago
    Anonymous

    "Building from source" isn't a principle you apply while using a computer, it's compiling a package by yourself. You can download packages from Git, but Git doesn't "build things from source". You do that.

    For Linux installations there's usually a way to do it manually (i.e. debootstrap), but the easiest way to build a Linux installation from source is to use Gentoo Linux because it's part of their philosophy to compile (build from source) your whole system by yourself. There's always other distros or ways to compile things manually, but Gentoo streamlines the already barebones process. If you want to go really nuts try Linux From Scratch, it's what you'd expect.

    For software, just read the README file that comes with the source code. In the table of contents of the README or equivalent there will be a building instructions section, jump to that section and follow the instructions. Usually you tweak a makefile to how you want the software to work or compile, and then you compile the source code with 'make' or a make-like command.

    Have fun learning how all the tools work, but just as an early warning before you go head first into self compiling: there's no net gain from building from source over using an official prebuilt binary. It's the same software, just unpacked. Only now you get to have the joy of installing all the required dependencies and troubleshooting the errors make will throw at you, along with potentially having to manually set variables such as shortcuts, icons, etc.

    • 2 years ago
      Anonymous

      Oh, here's a live example!

      [...]

    • 2 years ago
      Anonymous

      Why do you talk like this? Do you have some sort of condition?
      You know that you can build from source for your existing binary distro right? You don't have to be using LFS.
      Also there's a lot of "net gain" from configuring software before compiling, that's the whole point.

  11. 2 years ago
    Anonymous

    >man giteveryday
    >git clone foo
    >cat README
    >follow instructions
    No, you did not read the man pages. RTFM.

    • 2 years ago
      Anonymous

      Just read the man page for make. Rome wasn't built in a day.

Your email address will not be published. Required fields are marked *