question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run on linux fails

See original GitHub issue

Bug Report

What’s the issue you encountered?

.Net do not find libx11 on linux

How can the issue be reproduced?

running ryujinx

Log file

     39478:	find library=libX11.so [0]; searching
     39478:	 search cache=/etc/ld.so.cache
     39478:	 search path=/lib64:/usr/lib64		(system search path)
     39478:	  trying file=/lib64/libX11.so
     39478:	  trying file=/usr/lib64/libX11.so
     39478:	
     39478:	find library=liblibX11.so [0]; searching
     39478:	 search cache=/etc/ld.so.cache
     39478:	 search path=/lib64:/usr/lib64		(system search path)
     39478:	  trying file=/lib64/liblibX11.so
     39478:	  trying file=/usr/lib64/liblibX11.so
     39478:	
     39478:	find library=libX11 [0]; searching
     39478:	 search cache=/etc/ld.so.cache
     39478:	 search path=/lib64:/usr/lib64		(system search path)
     39478:	  trying file=/lib64/libX11
     39478:	  trying file=/usr/lib64/libX11
     39478:	
     39478:	find library=liblibX11 [0]; searching
     39478:	 search cache=/etc/ld.so.cache
     39478:	 search path=/lib64:/usr/lib64		(system search path)
     39478:	  trying file=/lib64/liblibX11
     39478:	  trying file=/usr/lib64/liblibX11
     39478:	
Unhandled exception. 00:00:00.006 |W| Application GetWindowScaleFactor: Couldn't determine monitor DPI: Wayland not yet supported
System.DllNotFoundException: Unable to load shared library 'libX11' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibX11: cannot open shared object file: No such file or directory
   at Ryujinx.Program.XInitThreads()
   at Ryujinx.Program.Main(String[] args) in D:\a\Ryujinx\Ryujinx\Ryujinx\Program.cs:line 104
Abortado (`core' generado)

Environment?

  • Ryujinx version: master
  • System Specs:
    • OS: Fedora 36
    • CPU: i7
    • GPU: Nvidia
    • RAM: 32GB
  • Applied Mods : No

Additional context?

Can be fixed with:

sudo ln -s /usr/lib64/libX11.so.6 /usr/lib64/libX11.so

Additional info about your environment:

Probably related with linux installation, not sure if lib search can be modified from ryujinx

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
albfancommented, Aug 30, 2022

@cat-master21 fix the world is not a duty for ryujinx. If some distros only include a symbolic link in a devel package the sdl2 package should be aware of that and look for the right library name. this is a problem with sdl2 package for some linux distros

0reactions
cat-master21commented, Aug 30, 2022

Well my pr didn’t get merged and I think the ln solution should be in the website possibly in the faq page

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bash: run command2 if command1 fails
If anybody needs to actually know how to run command 2 if command 1 fails, this is a simple explanation: cmd1 || cmd2...
Read more >
How to fix a "Command not found" error in Linux
It's frequently used when running commands to find the command executable. In this tutorial, you learned five ways to fix a "Command not...
Read more >
linux - Command scheduled with `at` fails but gives no error
I recently learned about the at command in Unix system. Let's say I want a Python script (that might crash) to run 2...
Read more >
Linux make fails on first run, succeeds on second run
When I run make , the first run always fails with Error 1 , but the second run compiles as expected. The first...
Read more >
Game won't run on Linux/Steam, error message about ...
I've just installed Steam and tried this, and got as far as installing the STO launcher, but when the launcher starts I get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found