Coder Social home page Coder Social logo

GLIBCXX_3.4.20 not found about longformer HOT 2 CLOSED

allenai avatar allenai commented on August 15, 2024
GLIBCXX_3.4.20 not found

from longformer.

Comments (2)

leej35 avatar leej35 commented on August 15, 2024 2

I had the same issue and just resolved it. Please note that my solution could not be right answer for your situation.

TLDR: it seems the issue could be caused by incompatible compiler's version to the compiled library that Longformer uses. You could resolve it through (1) install new library (glibc) through condo and then (2) add conda's library path to your environment.

Part 1. Check your gcc version
In my case, I first checked my compiler (gcc) version:

gcc -v

With this, I got to know that my compiler's version is gcc version 4.8.5.

Through this table on the link, I found 4.8.5 uses/support GLIBCXX_3.4.19, not the one that Longformer needs. (Link: FoldingAtHome/fah-issues#1147 (comment))
The link also says GLIBCXX_3.4.20 is indeed on gcc version 4.9.0. So if your gcc version is below 4.9.0, it could be the same reason that I have.

Part 2. Install libgcc through conda
Based on my search on google, it seems basically you need to upgrade gcc but it requires sudo. For my case I don't have sudo. Another way to install the newer library is through conda's libgcc. Run following line:

conda install libgcc

Part 3. Add conda's library path to your LD_LIBRARY_PATH env variable.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/your/anaconda3/lib

Then, the Longformer works as charm!

from longformer.

ibeltagy avatar ibeltagy commented on August 15, 2024

Closing. Please feel free to reopen or create a new one if you have more questions.

from longformer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.