• Flipper@feddit.org
    link
    fedilink
    arrow-up
    49
    arrow-down
    2
    ·
    2 days ago

    Average C from source experience: (copied from Kicad)

    apt get long list of dependency 
    git clone
    cd
    cmake 
    make
    sudo make install
    rm -r .
    

    Average Rust from source experience:

    cargo install
    

    Most of the time you should probably not install from source of possible.

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      15 hours ago

      The C example is the wonderful happy path scenario that only manifests in dreams.

      Most projects don’t have a dependency list you can just install in a single apt command. Some of those dependencies might not be even available on your distro. Or there is only a non-compatible version available. Or you have to cast some incantation to make that dependency available.

      Then you have to set some random environment variables. And do a bunch of things that the maintainers see as obvious since they do it every day, so it’s barely documented.

      And once you have it installed, you go to run it but discover that the fantastic CLI arguments you found online that would do what you installed this program to do, are not available in your version since it’s too new and the entire CLI was reworked. And they removed the functionality you need since it was “bad practice and a messy way to do things”.

      All of this assuming the installation process is documented at all and it’s not a “just compile it, duh, you should know how to do it”.

      • CarrotsHaveEars@lemmy.ml
        link
        fedilink
        arrow-up
        4
        arrow-down
        2
        ·
        2 days ago

        Then why do you need cargo in the first place, sir? You install a program written i Rust just as if it isn’t. When you apt install xzy, you don’t even know what language is used to program it.

            • sem@piefed.blahaj.zone
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              2 days ago

              I don’t think it is the distro’s responsibility or the developer’s responsibility. I think it is up to a volunteer whether they package it for the distro, or up to you as the consumer to install it on your own, or find a distro with more packages.

              • CarrotsHaveEars@lemmy.ml
                link
                fedilink
                arrow-up
                3
                ·
                2 days ago

                OK, apologies, I’ll stop taking weird.

                The developer is only supposed to share his code. It’s the distro’s responsibility to provide binary build of famous programs so that most users don’t have to compile. When they don’t, it’s inevitable that individual users have to build it themselves. This has been the norm for decades.

                • sem@piefed.blahaj.zone
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  edit-2
                  2 days ago

                  The distro does provide it, but I wouldn’t say they are responsible for it, unless you are paying them. Otherwise that sounds like entitlement.

                  As a consumer sometimes you just have to install from source. Not everything is always in apt.