Building from source for Trixie
- persei8
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 395
- Thank you received: 126
04 Feb 2026 15:55 #342397
by persei8
Building from source for Trixie was created by persei8
I've built linuxcnc from source many times, but since upgrading to trixie, it no longer works. I'm following the instructions at
Building LinuxCNC
. I don't think they are entirely correct. In section 4.2 (Building Debian Packages) it says the following:The result of ./debian/configure is bash: ./debian/configure: No such file or directory
If I don't cd into src, like it says in the previous step, then configure works.
The result of sudo apt-get build-dep . is Error: Unsupported file . given on commandline
The result without the . is Error: Unable to locate package build-dep
If I just go ahead anyway and run the last line, it seems to compile but ends with:
Since it appears buildbot is not building debs for trixie, my only option is to build from source. What is the correct procedure for building deb files for trixie? Thanks,
Jim
$ sudo apt-get install build-essential
$ git clone https://github.com/LinuxCNC/linuxcnc.git linuxcnc-source-dir
$ cd linuxcnc-source-dir/src
$ ./debian/configure
$ sudo apt-get build-dep .
$ DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -BIf I don't cd into src, like it says in the previous step, then configure works.
The result of sudo apt-get build-dep . is Error: Unsupported file . given on commandline
The result without the . is Error: Unable to locate package build-dep
If I just go ahead anyway and run the last line, it seems to compile but ends with:
dh_auto_build: error: cd src && make -j4 build-software returned exit code 2
make[1]: *** [debian/rules:57: override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/home/jim/linuxcnc-dev'
make: *** [debian/rules:45: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2Since it appears buildbot is not building debs for trixie, my only option is to build from source. What is the correct procedure for building deb files for trixie? Thanks,
Jim
The following user(s) said Thank You: summat
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21316
- Thank you received: 7279
04 Feb 2026 17:58 #342410
by tommylight
Replied by tommylight on topic Building from source for Trixie
linuxcnc.org/dists/trixie/2.9-uspace/bin...pace_2.9.8_amd64.deb
Download and double click to install with gdebi, and in case gdebi is missing:
sudo apt update
sudo apt install gdebi
Download and double click to install with gdebi, and in case gdebi is missing:
sudo apt update
sudo apt install gdebi
The following user(s) said Thank You: summat
Please Log in or Create an account to join the conversation.
- persei8
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 395
- Thank you received: 126
04 Feb 2026 21:59 #342415
by persei8
Replied by persei8 on topic Building from source for Trixie
Thanks tommylight but I'm trying to build from master branch. Probably should have mentioned that.
Jim
Jim
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21316
- Thank you received: 7279
04 Feb 2026 22:25 #342418
by tommylight
Replied by tommylight on topic Building from source for Trixie
The only 2.10 deb i can find is from buster, so quite old, here
buildbot.linuxcnc.org/dists/buster/maste...reempt/binary-amd64/
buildbot.linuxcnc.org/dists/buster/maste...reempt/binary-amd64/
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11722
- Thank you received: 3968
04 Feb 2026 23:06 #342423
by rodw
Replied by rodw on topic Building from source for Trixie
I have done a video on this. There is a bookmark for cloning and compiling.
Master branch build process has been updated but I think there is a typo in the docs. Now getting dependencies is done the debian way with a single command line. This is an amazing improvement
Master branch build process has been updated but I think there is a typo in the docs. Now getting dependencies is done the debian way with a single command line. This is an amazing improvement
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11722
- Thank you received: 3968
04 Feb 2026 23:09 #342424
by rodw
Replied by rodw on topic Building from source for Trixie
I should mention I show how to build for RIP but you can keep with the Debian way and build the debs and install with sudo dpkg -i on the folder above where you are.
Please Log in or Create an account to join the conversation.
- persei8
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 395
- Thank you received: 126
05 Feb 2026 15:47 #342476
by persei8
Replied by persei8 on topic Building from source for Trixie
Thanks Rod, I managed to build a deb in a bookworm chroot but it won't install on trixie because linuxcnc requires python3.11 and trixie uses python3.13. I also tried installing the deb from buildbot2 but same result. Looks like I have no option but to reinstall bookworm. Major PITA.
On that note, I recall you posted the 6.3.0-rt11-linuxcnc kernel somewhere, but I can no longer find it. Could you tell me where that is? Thanks again.
Jim
On that note, I recall you posted the 6.3.0-rt11-linuxcnc kernel somewhere, but I can no longer find it. Could you tell me where that is? Thanks again.
Jim
Please Log in or Create an account to join the conversation.
- summat
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 1
11 Feb 2026 09:10 #342798
by summat
Replied by summat on topic Building from source for Trixie
Following this with interest (I had the exact same problem) - my goal was rebuilding the mot2-eth driver. Will review all the advice here when I've had more coffee but PITA if we can't build from a Trixie installation.
Please Log in or Create an account to join the conversation.
Time to create page: 0.097 seconds