Comments (8)
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.
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.
@TJM do you know if previous versions ran ok?
from jwt-cli.
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.
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.
@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.
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.
Version 2.1.0 works, version 2.2.0 does not.
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)
- Feature Request: Read from file HOT 1
- Allow saving output to a file instead of stdout
- Provide a container image for jwt-cli HOT 1
- GoFish has been abandoned and documentation about it in the README should be removed HOT 2
- Feature Request: Support plaintext payload HOT 1
- Tests not in `main_test.rs' don't run HOT 1
- Unsecured JWT HOT 4
- `--secret` flag treats all values as file paths HOT 4
- Feature Request: encode allow none `typ` HOT 2
- Add support for TTL when generating JWTs HOT 3
- Improve documentation for using elliptic curve keys HOT 1
- Allow the `typ` header field to have values other than `JWT` HOT 1
- encode always errors with "Invalid JSON provided!" on 6.0.0 HOT 2
- Bug: Error running on Fedora Linux in Docker on Apple ARM silicon HOT 1
- missing ES512 HOT 1
- Bump jsonwebtoken to v8.3.0 to v9.x.x HOT 2
- bug: not able to use in macOS for Apple Silicon chip HOT 7
- Brew formula does not work with linuxbrew HOT 2
- Shell completion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwt-cli.