I’ve been trying to get luarocks to work on windows, and all it gives is cryptic gcc errors.

How does pip manage to work on most platforms without issues?

  • @[email protected]
    link
    fedilink
    English
    39 hours ago

    Pick a language like Perl, where some packages are written in C and some are written in pure Perl, and you’ll get to experience the same cryptic GCC errors, sometimes. There’s no secret to pip; many Python developers upload wheels with pre-compiled binaries, including Windows-compatible binaries, and so you don’t have to run GCC because they already did it for you.

    • irelephant [he/him]OP
      link
      fedilink
      17 hours ago

      Thanks, this is the explanation I was looking for.

      Also, lua is the same, packages are either written in c or pure lua.

  • @[email protected]
    link
    fedilink
    81 day ago

    It’s a 17 year old tool in the world’s most popular scripting language. It’s effectively had billions of tests run against it.

  • @[email protected]
    link
    fedilink
    232 days ago

    I’m surprised to hear you say this because in all honesty, pip really sucks as far as package managers go. uv is a worthy replacement.

    • @[email protected]
      link
      fedilink
      3
      edit-2
      1 day ago

      I think this is talking about basic functionality, eg. can you do basic stuff with a clean install without everything immediately breaking

      There’s a lot of programming tools that are primarily developed for and on linux, and “windows support” is an afterthought which will result in linux being a very frictionless experience but windows being a minefield of problems and requiring careful manual setup

  • gid
    link
    fedilink
    English
    132 days ago

    If you’re getting gcc errors it sounds like the package you’re trying to install contains some c/c++ stuff that needs compiling.

    A lot of python packages that rely on things written in c/c++ ship those precompiled, which might account for why it feels easier for you.

    • irelephant [he/him]OP
      link
      fedilink
      1
      edit-2
      1 day ago

      Sorry if it was unclear, I constantly get cryptic gcc errors using luarocks a package manager for lua. Its years behind pip.

      • gid
        link
        fedilink
        English
        31 day ago

        No, you were clear. That’s what I understood you to mean.

        • irelephant [he/him]OP
          link
          fedilink
          21 day ago

          Ah, I’m the one who misread, sorry.

          Yeah, compiling things from scratch is the norm for lua packages, making them really only work on linux.

  • @[email protected]
    link
    fedilink
    English
    22 days ago

    I’d love to hear a technical answer, but one thing that’s probably part of it is the fact that pip is written in Python and Python runs everywhere without much problem (though uv also seems to work pretty flawlessly too lol)

    • irelephant [he/him]OP
      link
      fedilink
      22 days ago

      Lack of windows support for most luarocks modules has stopped me from writing a lot of stuff in lua.

        • irelephant [he/him]OP
          link
          fedilink
          19 hours ago

          I was thinking of making a simple SSG (Static Site Generator), and I wanted to make it in lua.
          some other cli tools, like scraping scripts as well.