>From 5e664a9cd479df5b986d7b981ac09203b269965f Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" <g...@rellim.com> Date: Thu, 28 Dec 2023 17:30:01 -0800 Subject: [PATCH] building-linuxcnc.adoc: Add gentoo instructions.
It should make sense to any gentoo user. --- docs/src/code/building-linuxcnc.adoc | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/docs/src/code/building-linuxcnc.adoc b/docs/src/code/building-linuxcnc.adoc index fe9ae27c22..2196d2d2ba 100644 --- a/docs/src/code/building-linuxcnc.adoc +++ b/docs/src/code/building-linuxcnc.adoc @@ -372,6 +372,53 @@ the memory lock limit is raised using the following command: $ ulimit -l ----- +== Building on Gentoo + +Building on Gentoo is possible, but not supported. Be sure you are +running a disktop profile. This projet uses the Tk Widget Set, asciidoc, +and has some other dependencies. They should be installed as root: + +----- +~ # euse -E tk +~ # emerge -uDNa world +~ # emerge -a dev-libs/libmodbus dev-lang/tk dev-tcltk/bwidget dev-tcltk/tclx +~ # emerge -a dev-python/pygobject dev-python/pyopengl dev-python/numpy +~ # emerge -a app-text/asciidoc app-shells/bash-completion +----- + +You can switch back to being a normal user for most of the rest of the +install. As that user, create a virtual environment for pip, then install +the pip packages: + +----- +~/src $ python -m venv --system-site-packages ~/src/venv +~/src $ . ~/src/venv/bin/activate +(venv) ~/src $ pip install yapps2 +(venv) ~/src $ +----- + +Then you can contrinue as normally: + +----- +(venv) ~/src $ git clone https://github.com/LinuxCNC/linuxcnc.git +(venv) ~/src $ cd linuxcnc +(venv) ~/src $ cd src +(venv) ~/src $ ./autogen.sh +(venv) ~/src $ ./configure --enable-non-distributable=yes +(venv) ~/src $ make +----- + +There is no need to run "make suid", just make sure your user is in +the "dialout" group. To start linuxcnc, you must be in the Python +Virtual Environment, and set up the linuxcnc environment: + +----- +~ $ . ~/src/venv/bin/activate +(venv) ~ $ . ~/src/linuxcnc/scripts/rip-environment +(venv) ~ $ ~/src/linuxcnc $ scripts/linuxcnc +----- + + == Options for checking out the git repo The <<Quick-Start,Quick Start>> instructions at the top of this -- 2.41.0 _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers