Libstdc++6 problem

How do i install libstdc++6 this error comes in lavalink repl when i apply any filter on the music bot

Hey, @liteshrikhand welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

2 Likes

Here’s the link (link removed) this a lavalink start it then connect with any discord music bot which has a music filters, then play a music and apply filter then you will the error on console

Hello, try this:
Click three dots, show hidden files, then open replit.nix file.
In it, you see a deps variable. You will add another variable next to it:

env = {
  LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
    pkgs.stdenv.cc.cc.lib
  ];
};

Then refresh and see if that solves the problem.

2 Likes

Can you show me full example

{ pkgs }: {
    deps = [
      pkgs.nodejs-16_x
      pkgs.wget
        pkgs.graalvm17-ce
        pkgs.maven
        pkgs.replitPackages.jdt-language-server
        pkgs.replitPackages.java-debug
      env = {
        LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
          pkgs.stdenv.cc.cc.lib
        ];
      };
    ];
}

Put it next to the deps variable, not inside it.

Try this:

{ pkgs }: {
  deps = [
    pkgs.nodejs-16_x
    pkgs.wget
    pkgs.graalvm17-ce
    pkgs.maven
    pkgs.replitPackages.jdt-language-server
    pkgs.replitPackages.java-debug
  ];
  env = {
    LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
      pkgs.stdenv.cc.cc.lib
    ];
  };
}
1 Like

Thank you so much, it worked

You’re welcome.
Please mark my first post as solution so that others can find it easily.

Ok done thanks once again

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.