Hello,
I’m trying to compile the peak-linux-driver on Kubuntu 25 with kernel 6.17.0-7-generic, and I get the following error when running `make`:
```
fatal error: src/pcan_common.h: No such file or directory
36 | #include "src/pcan_common.h"
compilation terminated.
```
However, the file does exist:
```
./driver/src/pcan_common.h
```
Kernel headers are installed:
```
linux-headers-6.17.0-7-generic
```
I am compiling from the project root directory, but the issue persists.
I’m wondering if driver version 8.20.0 is incompatible with newer kernels such as 6.17.
Could you confirm whether there is a driver version compatible with this kernel (8.20.1 or newer), or provide a patch to enable compilation?
For the moment I am using socket for testing but I am not sure if this could be valid for CAN FD?
Thank you in advance for your help.
Unable to compile PEAK driver on Kubuntu 25 (kernel 6.17) missing pcan_common.h
- S.Grosjean
- Software Development

- Posts: 362
- Joined: Wed 4. Jul 2012, 17:02
Re: Unable to compile PEAK driver on Kubuntu 25 (kernel 6.17) missing pcan_common.h
Hello,
Yes, you're right: in order to fix that issue, you should download the pre release of the next version of PCAN from: https://cavok.peak-system.com/X9EkN5L.
Best regards,
Yes, you're right: in order to fix that issue, you should download the pre release of the next version of PCAN from: https://cavok.peak-system.com/X9EkN5L.
Best regards,
— Stéphane
Re: Unable to compile PEAK driver on Kubuntu 25 (kernel 6.17) missing pcan_common.h
Hello,
I downloaded the package, compiled it, and installed it:
make clean
make
sudo make install
The driver is installed, and SavvyCAN can see usb0.
I tried to test that everything is okay, so I tried to use the test folder.
I didn't manage to run a test.
I tried to use can0 via socket like I have done before, but the script I use is not working either.
Did I miss something? Am I not doing it correctly?
this code returns:
[1] Vérification de l'existence de can0...
ERREUR : L'interface can0 n'existe pas.
→ Le driver peak_usb n'est peut-être pas chargé ?
here how i use the test exemple:
xxxxxx:~/Downloads/peak-linux-driver-8.21.2-beta/test$ sudo transmitest transmit.txt
[sudo: authenticate] Password:
transmitest Version "Release_20150610_n" (www.peak-system.com)
------- Copyright (C) 2004-2009 PEAK System-Technik GmbH ------
transmitest comes with ABSOLUTELY NO WARRANTY. This is free
software and you are welcome to redistribute it under certain
conditions. For details see attached COPYING file.
transmitest: device node="/dev/pcan0"
Only standard frames are sent, init with 500 kbit/sec.
Data will be read from "transmit.txt".
transmitest: can't open /dev/pcan0
transmitest: finished (2).
xxxxxx:~/Downloads/peak-linux-driver-8.21.2-beta/test$ cat /proc/pcan
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Beta____20251023_n (8.21.2) Dec 9 2025 10:33:50 --------------
*---------------------- [mod] [isa] [pci] [pec] [usb] -----------------------
*--------------------- 1 interfaces @ major 509 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
xxxxxxx:~/Downloads/peak-linux-driver-8.21.2-beta/test$
I downloaded the package, compiled it, and installed it:
make clean
make
sudo make install
The driver is installed, and SavvyCAN can see usb0.
I tried to test that everything is okay, so I tried to use the test folder.
I didn't manage to run a test.
I tried to use can0 via socket like I have done before, but the script I use is not working either.
Did I miss something? Am I not doing it correctly?
Code: Select all
case "$1" in
start)
echo "========================================"
echo " PCAN-USB / SocketCAN START "
echo "========================================"
echo ""
echo "[1] Vérification de l'existence de can0..."
if ! ip link show can0 &>/dev/null; then
echo "ERREUR : L'interface can0 n'existe pas."
echo "→ Le driver peak_usb n'est peut-être pas chargé ?"
exit 1
fi
echo "OK, can0 détecté."
echo ""
echo "[2] Mise en DOWN..."
sudo ip link set can0 down || { echo "ERREUR en mettant can0 down."; exit 1; }
echo "can0 est DOWN."
echo ""
echo "[3] Configuration du bitrate ($BITRATE)..."
sudo ip link set can0 type can bitrate $BITRATE || { echo "ERREUR : impossible de configurer le bitrate."; exit 1; }
echo "Bitrate OK."
echo ""
echo "[4] Mise en UP..."
sudo ip link set can0 up || { echo "ERREUR : impossible de passer can0 en UP."; exit 1; }
echo "can0 est UP."
echo ""
echo "[5] État complet :"
ip -details -statistics link show can0
echo ""
echo "========= PCAN-USB opérationnel ========="
;;
[1] Vérification de l'existence de can0...
ERREUR : L'interface can0 n'existe pas.
→ Le driver peak_usb n'est peut-être pas chargé ?
here how i use the test exemple:
xxxxxx:~/Downloads/peak-linux-driver-8.21.2-beta/test$ sudo transmitest transmit.txt
[sudo: authenticate] Password:
transmitest Version "Release_20150610_n" (www.peak-system.com)
------- Copyright (C) 2004-2009 PEAK System-Technik GmbH ------
transmitest comes with ABSOLUTELY NO WARRANTY. This is free
software and you are welcome to redistribute it under certain
conditions. For details see attached COPYING file.
transmitest: device node="/dev/pcan0"
Only standard frames are sent, init with 500 kbit/sec.
Data will be read from "transmit.txt".
transmitest: can't open /dev/pcan0
transmitest: finished (2).
xxxxxx:~/Downloads/peak-linux-driver-8.21.2-beta/test$ cat /proc/pcan
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Beta____20251023_n (8.21.2) Dec 9 2025 10:33:50 --------------
*---------------------- [mod] [isa] [pci] [pec] [usb] -----------------------
*--------------------- 1 interfaces @ major 509 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
xxxxxxx:~/Downloads/peak-linux-driver-8.21.2-beta/test$
Re: Unable to compile PEAK driver on Kubuntu 25 (kernel 6.17) missing pcan_common.h
ah yes i didn't install the 'make netdev', now its working. but i didn't run peak tests.
still could not run tests from the folder test.
still could not run tests from the folder test.
Re: Unable to compile PEAK driver on Kubuntu 25 (kernel 6.17) missing pcan_common.h
Hi,
if you run the driver in NetDev mode, you can't use the tools from the test directory. Those tools will only work with the chardev driver. Please install can-utils, to have the test tools for SocketCAN/NetDev available (candump, cansend, cansniffer ...)
regards
Michael
if you run the driver in NetDev mode, you can't use the tools from the test directory. Those tools will only work with the chardev driver. Please install can-utils, to have the test tools for SocketCAN/NetDev available (candump, cansend, cansniffer ...)
regards
Michael
Re: Unable to compile PEAK driver on Kubuntu 25 (kernel 6.17) missing pcan_common.h
Hello,S.Grosjean wrote: ↑Tue 9. Dec 2025, 10:29Hello,
Yes, you're right: in order to fix that issue, you should download the pre release of the next version of PCAN from: https://cavok.peak-system.com/X9EkN5L.
Best regards,
this solution should help in my case as well, however the download link you shared seems to have expired.
Could you please prepare the file again or provide a new link for download?
Thank you
- S.Grosjean
- Software Development

- Posts: 362
- Joined: Wed 4. Jul 2012, 17:02