wasmerio / wasmer-go

🐹🕸️ WebAssembly runtime for Go
https://pkg.go.dev/github.com/wasmerio/wasmer-go
MIT License
2.8k stars 161 forks source link

Error while loading shared libraries #378

Open LittleSheep2Code opened 1 year ago

LittleSheep2Code commented 1 year ago

Summary

Run wasmer-go on remote server. But it's work on my local machine. I also try to install wasmer CLI and failed too. Which libraries do I need to install?

./main: error while loading shared libraries: libwasmer.so: cannot open shared object file: No such file or directory
ptitSeb commented 1 year ago

You may need to add a LD_LIBRARY_PATH env. var. that point to the libwasmer.so library.

LittleSheep2Code commented 1 year ago

You may need to add a LD_LIBRARY_PATH env. var. that point to the libwasmer.so library.

But I cannot found libwasmer.so. Do I need to install other packages?

LittleSheep2Code commented 1 year ago

I rebuild my project on my remote server. Build is success, but it still cannot run.

boli2017 commented 1 year ago

LD_LIBRARY_PATH

How to compile libwasmer.so with my main.go?