USB Device Driver makefile erorr

nandni22jain

New Member
Joined
Jan 8, 2022
Messages
2
Reaction score
1
Credits
17
1641653970383.png

I am new to Linux and learning USB device driver code. I followed a YT video for it and getting this make error. Please help me with it. Here is the link of video I followed :
 


JasKinasis

Well-Known Member
Joined
Apr 25, 2017
Messages
1,489
Reaction score
2,114
Credits
10,609
The error message is pretty clear. You're missing flex. It's a pretty common tool and should be available in the repositories of ALL distros. You didn't tell us what distro you're running, so the exact instructions to install will depend on which distro you're running.
For example, on a Debian based distro, you'd install flex by running the following:
Bash:
sudo apt  install flex

Or on a Red hat based distro:
Bash:
sudo dnf install flex

Install flex with whatever package manager your distro uses and then try running the build again.
 
OP
N

nandni22jain

New Member
Joined
Jan 8, 2022
Messages
2
Reaction score
1
Credits
17
The error message is pretty clear. You're missing flex. It's a pretty common tool and should be available in the repositories of ALL distros. You didn't tell us what distro you're running, so the exact instructions to install will depend on which distro you're running.
For example, on a Debian based distro, you'd install flex by running the following:
Bash:
sudo apt  install flex

Or on a Red hat based distro:
Bash:
sudo dnf install flex

Install flex with whatever package manager your distro uses and then try running the build again.
Thank you very much! It solved the problem. My apologies for not mentioning the doubt clearly, I am very new to Linux. Thanks again.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top