alexandrehtrb / Pororoca

An API testing tool with support for HTTP/2 and HTTP/3. Alternative to Postman.
https://pororoca.io
Other
500 stars 38 forks source link

System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' #73

Closed faveoled closed 9 months ago

faveoled commented 9 months ago

Latest deb, Ubuntu 22.04.3

$ pororoca 
Unhandled exception. System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
/usr/bin/libSkiaSharp.so: cannot open shared object file: No such file or directory
/usr/bin/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
/usr/bin/libSkiaSharp: cannot open shared object file: No such file or directory
/usr/bin/liblibSkiaSharp: cannot open shared object file: No such file or directory

   at SkiaSharp.SKImageInfo..cctor()
   --- End of inner exception stack trace ---
   at Avalonia.Skia.SkiaPlatform.Initialize(SkiaOptions options)
   at Avalonia.AppBuilder.SetupUnsafe()
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode)
   at Pororoca.Desktop.Program.Main(String[] args) in /home/runner/work/Pororoca/Pororoca/src/Pororoca.Desktop/Program.cs:line 17
Aborted (core dumped)
alexandrehtrb commented 9 months ago

I will take a look

If anyone also has this problem, please use the linux-x64 version for now

alexandrehtrb commented 9 months ago

@faveoled , to run Pororoca installed on Debian/Ubuntu, from the command-line, please try:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/pororoca pororoca
faveoled commented 9 months ago

Yes that works

alexandrehtrb commented 9 months ago

Solved, you can now launch Pororoca on Debian/Ubuntu via Terminal