wasmerio / wasmer-go

🐹🕸️ WebAssembly runtime for Go

Home Page:https://pkg.go.dev/github.com/wasmerio/wasmer-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while loading shared libraries

LittleSheep2Code opened this issue · comments

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

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

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?

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

LD_LIBRARY_PATH

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