Code Monkey home page Code Monkey logo

Comments (8)

mike-engel avatar mike-engel commented on August 22, 2024 1

This project has used serde since the beginning, so I'm pretty sure no previous version will work, but I'll be eager to hear if a particular version broke at some point.

from jwt-cli.

mike-engel avatar mike-engel commented on August 22, 2024 1

Hmm looking at the diff, it looks like maybe a transitive dependency update of ring via jsonwebtoken. It also looks like I had problems with CI and gcc. Either way, probably not something I can personally do, so I'm going to close this now with the workaround you provided, unless someone else can devote time to debugging this up the chain.

Thanks for reporting and finding the workaround @TJM!

from jwt-cli.

mike-engel avatar mike-engel commented on August 22, 2024

@TJM do you know if previous versions ran ok?

from jwt-cli.

TJM avatar TJM commented on August 22, 2024

I don't I was just helping someone do the jwt decode on their jump server, and it didn't run, do you have a suggestion for which version to try? It looks like we need 2.17?

$ rpm -qa | grep glibc
glibc-common-2.17-325.el7_9.x86_64
glibc-headers-2.17-325.el7_9.x86_64
glibc-devel-2.17-325.el7_9.x86_64
glibc-2.17-325.el7_9.x86_64
glibc-2.17-325.el7_9.i686

from jwt-cli.

TJM avatar TJM commented on August 22, 2024

FYI, we also tried to compile the source (definitely not a developer) :p

   Compiling anstyle-query v1.0.0
   Compiling serde_json v1.0.96
   Compiling anstream v0.3.0
error: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /home/tmcneely/Projects/jwt-cli/target/debug/deps/libserde_derive-db02c9296cd10d4e.so)
   --> /home/tmcneely/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:305:1
    |
305 | extern crate serde_derive;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^

   Compiling aho-corasick v0.7.19
error[E0432]: unresolved imports `self::__private`, `self::__private`
   --> /home/tmcneely/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.147/src/lib.rs:287:5
    |
287 | use self::__private as export;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
288 | #[allow(unused_imports)]
289 | use self::__private as private;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0432`.
error: could not compile `serde` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

Same sort of error, something is trying to require GLIBC 2.18

from jwt-cli.

mike-engel avatar mike-engel commented on August 22, 2024

@TJM It looks like it's from serde_derive. I'm actually not sure which version of glibc is needed, although from the error above, looks like maybe 2.18? I haven't tried creating a static binary yet, but if you're able to try installing glibc 2.18 and that works, then that's that 😛

from jwt-cli.

TJM avatar TJM commented on August 22, 2024

Hah, nice idea, but the whole point of Enterprise Linux is to have an ABI that doesn't change. So vendors can release a binary that should work without having to worry about a bunch of shared stuff ;). A static linked binary might work, but they could also upgrade to RHEL8. I will have them try some older versions too.

from jwt-cli.

TJM avatar TJM commented on August 22, 2024

Version 2.1.0 works, version 2.2.0 does not.

2.1.0...2.2.0

Strange! Anyhow, while I was experimenting, I found the "cargo" install method works. It must recompile something that is being included as a binary in the CI build. 🤷

SO, if anyone else needs jwt-cli for centos 7...

  • sudo yum install rust rust-toolset
  • cargo install jwt-cli

optionally

  • sudo cp ~/.cargo/bin/jwt /usr/local/bin/

from jwt-cli.

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.