Building from source for Trixie
- persei8
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 394
- Thank you received: 125
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
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21240
- Thank you received: 7251
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
Please Log in or Create an account to join the conversation.
- persei8
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 394
- Thank you received: 125
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: 21240
- Thank you received: 7251
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
-
- Away
- Platinum Member
-
Less
More
- Posts: 11686
- Thank you received: 3938
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
-
- Away
- Platinum Member
-
Less
More
- Posts: 11686
- Thank you received: 3938
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.
Time to create page: 0.065 seconds