graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

CLI: error while loading shared libraries: libproc_macro: cannot open shared object file

Open Avi-D-coder opened this issue 7 years ago • 10 comments

rustc 1.32.0-nightly (9fefb6766 2018-11-13)

Steps to reproduce:

git clone --depth 1 https://github.com/graphql-rust/graphql-client.git
cargo build && cargo build --release # Just to cover the bases
cd graphql_client_cli
cargo install # --debug makes no difference
graphql-client --help

Output:

graphql-client: error while loading shared libraries: libproc_macro-6c2e946fbc2e5b5e.so: cannot open shared object file: No such file or directory

Avi-D-coder avatar Nov 14 '18 05:11 Avi-D-coder

Temporarily, you can run it with cargo run from the source directory, that works for me. I haven't used the CLI a lot so I don't have a cleaner solution. This will be permanently solved by this PR: https://github.com/rust-lang/rust/pull/49219#issuecomment-438379259

Maybe @h-michael has a better solution?

tomhoule avatar Nov 14 '18 08:11 tomhoule

This should occur only nightly build. So you should build cli with stable rust until that PR merged.

h-michael avatar Nov 14 '18 14:11 h-michael

merged: https://github.com/rust-lang/rust/pull/49219

h-michael avatar Nov 30 '18 09:11 h-michael

I build graphql-client-cli with nightly. This problem does not occur.

h-michael avatar Dec 02 '18 08:12 h-michael

Great news!

tomhoule avatar Dec 02 '18 09:12 tomhoule

I just ran into this.

Maybe the README should mention that the CLI only supports nightly right now.

theduke avatar Dec 19 '18 22:12 theduke

Oh, actually I just noticed: even on nightly the built binary does not work!

It only works with cargo run. Executing target/debug/graphql-client still gives the same error.

theduke avatar Dec 19 '18 22:12 theduke

@theduke Thank you for your report. I 'll try it later.

h-michael avatar Dec 20 '18 01:12 h-michael

Is this still an issue?

mathstuf avatar Nov 10 '19 19:11 mathstuf

I haven't tried in a very long time! It would be nice to clarify this.

tomhoule avatar Nov 10 '19 23:11 tomhoule