LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.78k stars 1.14k forks source link

Run linuxcnc on fedora #2604

Closed nomi-ramzan closed 1 year ago

nomi-ramzan commented 1 year ago

Here are the steps I follow to reproduce the issue:

  1. Install Fedora IOT 37 and following this link

This is what I expected to happen:

Successfully run linuxcnc on Fedora

This is what happened instead:

Getting this error

[user1@fedora ~]$ linuxcnc -l
LINUXCNC - 2.10.0-0.95.20230511git27c5a90.fc37
Machine configuration directory is '/home/user1/linuxcnc/configs/XYZ-Metric-user1'
Machine configuration file is 'XYZ-Metric-Sample.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./XYZ-Metric-Sample.hal
Unexpected realtime delay on task 0 with period 100000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Found file(REL): ./custom.hal
Unexpected realtime delay on task 0 with period 100000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.

[Gmoccapy][ERROR]  Found an error!
The following information may be useful in troubleshooting:

Traceback (most recent call last):
  File "/usr/bin/gmoccapy", line 5750, in <module>
    import gladevcp.makepins
  File "/usr/lib/python3.11/site-packages/gladevcp/__init__.py", line 1, in <module>
    from .hal_pythonplugin import *
  File "/usr/lib/python3.11/site-packages/gladevcp/hal_pythonplugin.py", line 30, in <module>
    from .hal_gremlin import HAL_Gremlin
  File "/usr/lib/python3.11/site-packages/gladevcp/hal_gremlin.py", line 36, in <module>
    import gremlin
  File "/usr/lib/python3.11/site-packages/gremlin.py", line 100, in <module>
    class Gremlin(Gtk.DrawingArea,rs274.glcanon.GlCanonDraw,glnav.GlNavBase):
  File "/usr/lib/python3.11/site-packages/gremlin.py", line 101, in Gremlin
    xlib = cdll.LoadLibrary('libX11.so')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ctypes/__init__.py", line 454, in LoadLibrary
    return self._dlltype(name)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ctypes/__init__.py", line 376, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: libX11.so: cannot open shared object file: No such file or directory
 (gmoccapy:62)
Shutting down and cleaning up LinuxCNC...
task: 1304 cycles, min=0.000032, max=0.011451, avg=0.009991, 0 latency excursions (> 10x expected cycle time of 0.010000s)
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/user1/linuxcnc_debug.txt
and
    /home/user1/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

Information about my hardware and software:

nomi-ramzan commented 1 year ago

Installed libX11-devel and problem solved.