Success: Install LinuxCNC-sim on debian butster?

More
05 Apr 2020 19:19 #162789 by mane
I installed a debian10.3 (buster) a few days ago. The installation is mainly for CAD purpose. It would be convenient to have also linuxcnc-sim installed. I don t need RT kernel and it would be sufficient to test and play a bit.
manfred@desktop-buero:~$ uname -a
Linux desktop-buero 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux
manfred@desktop-buero:~$ cat /etc/debian_version 
10.3
Is there a easy way to install it? Tried to find a linuxcnc-sim deb package, i was not successful.
Many thanks
Manfred

Please Log in or Create an account to join the conversation.

More
05 Apr 2020 22:54 #162815 by tommylight
Try linuxcnc-userspace, that should work, at least it did on Mint.

Please Log in or Create an account to join the conversation.

More
06 Apr 2020 11:49 #162889 by mane
Puh, i tried to install 2.7 stable for pecisce platform, same as on my rt linuxcnc installation.
Downloaded on LinuxCNC buildbot page as deb package.
But there are so many missing packages and some of these are no longer supported at debian. It seems there is no easy way for the moment to have linuxcnc-sim on my debian buster installation.
Would it be possible to compile it on my system? But this is something i did never before.

Please Log in or Create an account to join the conversation.

More
06 Apr 2020 12:00 #162892 by rodw
I would take the time to learn how to build from source. But I would use master branch (V 2.9)
Start here:
linuxcnc.org/docs/devel/html/code/building-linuxcnc.html

Please Log in or Create an account to join the conversation.

More
06 Apr 2020 12:29 #162896 by BeagleBrainz
forum.linuxcnc.org/gmoccapy/36942-debian-10-dependencies

May help in installing on Buster, I went through the process no issues

Please Log in or Create an account to join the conversation.

More
06 Apr 2020 12:32 #162897 by mane
Thanks for the link.
In want to have the same linuxcnc version as on my milling machine. This is the only reason to install 2.7.

Please Log in or Create an account to join the conversation.

More
06 Apr 2020 12:33 - 06 Apr 2020 12:35 #162899 by tommylight
Use the Stretch 2.8 version or 2.9, that works in almost any distro.
Be sure to enable partner and source repositories before trying to install.
Last edit: 06 Apr 2020 12:35 by tommylight. Reason: more info

Please Log in or Create an account to join the conversation.

More
06 Apr 2020 21:02 #162963 by rodw
One of the beauties of compiling from source is you can use whatever branch you want
git checkout 2.7
will select the branch you need

But you are probably still going to get caught resolving dependencies.

Please Log in or Create an account to join the conversation.

More
07 Apr 2020 01:13 #162992 by BeagleBrainz
Here's how I got around the deps, just an overview.
As a temp measure added on the stretch repos for the src repos.
used apt-get to update.
used apt get to get the source for python-gtksourvceview2 (do not do this as superuser as the build will fail)
used apt get again to get the build deps for the package.
used debuild to build the packages
installed said built packages.
Did the same for the other required packages. Now everything is built against the Buster libs.
Marked the manually installed packages as hold, ie not to be updated.
Then installed from buildbot.
I haven't tried a build from source but I'm sure that this method will work. When building the required debs as mentioned above the matching dev packages are built as well.
If anyone wants detailed instructions speak up and I can install on a clean VM and properly document it.
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

More
07 Apr 2020 18:48 #163085 by mane
Today i compiled some linuxcnc software deb packages. I followed the discription of this site which helped me a lot.

www.myheap.com/cnc-stuff/linuxcnc-emc2.html
Now i have these files created:
linuxcnc-doc-en_2.7.15_all.deb
linuxcnc-doc-es_2.7.15_all.deb
linuxcnc-doc-fr_2.7.15_all.deb
linuxcnc-uspace_2.7.15_amd64.deb
linuxcnc-uspace-dbgsym_2.7.15_amd64.deb
linuxcnc-uspace-dev_2.7.15_amd64.deb
There are also some *.build, *.buildinfo, *.changes files.

Then i tried to install with
sudo dpkg -i linuxcnc-uspace_2.7.15_amd64.deb

I have some linuxcnc starters in my menu structure, but linuxcnc does not start. By starting it in a shell i get
manfred@desktop-buero:~$ linuxcnc 
LINUXCNC - 2.7.15
Machine configuration directory is '/home/manfred/linuxcnc/configs/sim.axis'
Machine configuration file is 'axis.ini'
Starting LinuxCNC...
/usr/bin/linuxcnc: Zeile 711: /etc/init.d/realtime: Datei oder Verzeichnis nicht gefunden
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
/usr/bin/linuxcnc: Zeile 606: /etc/init.d/realtime: Datei oder Verzeichnis nicht gefunden
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/manfred/linuxcnc_debug.txt
and
    /home/manfred/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

linuxcnc wants a realtime system, but i don t have one installed ( i only want a linuxcnc-sim to install).

I left out the section "Compiling LinuxCNC for the RIP Environment" because i wanted to build a deb package.
Therefore i did not the ./configure part.
./configure --with-realtime=uspace --enable-build-documentation

Please Log in or Create an account to join the conversation.

Time to create page: 0.095 seconds
Powered by Kunena Forum