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

Build linuxcnc on fedora 37 #2543

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 and clone linuxcnc repo using git this link
  2. Install dependencies ie tcl-devel, libtirpc-devel, libusb1-devel, intltool, boost-devel ... full list
  3. autoreconf --install
  4. ./autogen.sh
  5. ./configure --with-realtime=uspace

This is what I expected to happen:

Successfully build linuxcnc for Fedora

This is what happened instead:

checking for readline in -lreadline... yes
Trying readline with -ltermcap
checking for readline in -lreadline... yes
Readline does not require -ltermcap
checking whether readline license is compatible with GPL-2... no
configure: WARNING: The LinuxCNC binary you are building may not be
distributable due to a license incompatibility with LinuxCNC (some portions
GPL-2 only) and Readline version 6 and greater (GPL-3 or later).
configure: error: To configure LinuxCNC in this way, you must
invoke configure with "--enable-non-distributable=yes".  Note that on
Debian-based systems, you may be able to use libreadline-gplv2-dev instead.

Information about my hardware and software:

rmu75 commented 1 year ago

Look at the last 2 lines, it tells the problem and what to do.

rene-dev commented 1 year ago

try ./configure --enable-non-distributable=yes

SebKuzminsky commented 1 year ago

Another option is to install libeditreadline-dev, which is redistributable under GPL-2. This is what we do on Debian.

nomi-ramzan commented 1 year ago

@rene-dev After --enable-non-distributable=yes I can not find linuxcnc build file.