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?

  • @Corbin@programming.dev
    link
    fedilink
    English
    36 days 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
      26 days ago

      Thanks, this is the explanation I was looking for.

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

  • @GissaMittJobb@lemmy.ml
    link
    fedilink
    277 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.

  • gid
    link
    fedilink
    English
    147 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
      7 days 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
        37 days ago

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

        • irelephant [he/him]OP
          link
          fedilink
          27 days 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.

    • irelephant [he/him]OP
      link
      fedilink
      38 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
          16 days 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.

          • So web scraping speed is at issue? I believe Python has beautifulsoup for web scrapping.

            Unless it’s for a learning experience, would recommend to not reinvent the wheel. Have been there done that too many times.

            I feel like the village idiot cuz not properly learning that lesson.

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

              No, speed isn’t the issue. Its installing packages/modules on windows with luarocks, the lua package manager. It doesn’t work half the time on windows.

          • nitrofurano
            link
            fedilink
            15 days ago

            @irelephant it reminds me what my mother used to say all the time: “its not because most people are jumping into a hole that you have to as well” xD

  • @Midnitte@beehaw.org
    link
    fedilink
    English
    27 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)