LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-23-2018, 08:54 AM   #1
PeMaCN
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Rep: Reputation: Disabled
/lib/modules/4.15.0-29-generic/build: No such file or directory


I am trying to install DPDK on Alpine Linux in the Docker container.

During the installation, I am getting the following error:

Quote:
/lib/modules/4.15.0-29-generic/build: No such file or directory. Stop.
Is there equivalent directory in Alpine Linux to link it with this one?

How can I solve this problem? What is this directory used for?

Thanks in advance

Last edited by PeMaCN; 10-23-2018 at 09:01 AM.
 
Old 10-24-2018, 03:10 AM   #2
PeMaCN
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Anyone has an idea how to solve this?

Last edited by PeMaCN; 10-24-2018 at 03:13 AM.
 
Old 10-24-2018, 03:38 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033
Quote:
Originally Posted by PeMaCN View Post
I am trying to install DPDK on Alpine Linux in the Docker container.

During the installation, I am getting the following error:



Is there equivalent directory in Alpine Linux to link it with this one?

How can I solve this problem? What is this directory used for?

Thanks in advance
This directory is a symlink to the (running) kernel sources.
Dunno about Alpine, but in general it should be something like:
Code:
/lib/modules/4.15.0-29-generic/build  -> /usr/src/4.15.0-29-generic
Maybe you need to install some package containing the kernel sources, of your running kernel (like this
Note: it's for for kernel 4.14.78-r0)
 
Old 10-24-2018, 04:34 AM   #4
PeMaCN
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
I solved this by installing kernel modules from here and then link /lib/modules/4.15.0-29-generic/build to /srv/linux-4.9.4 directory
 
Old 10-24-2018, 05:30 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,940

Rep: Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324
If your problem is solved please mark the thread solved. Also please doon't forget to say thanks if someone helped....

I don't think linking 4.15.xx to 4.9 is a good idea. That may cause strange side effects later (for example an "unexpected" segmentation fault).
In the dockerfile (you linked) in line 26 you can specify the version of kernel. I would suggest you to modify it and start over again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] debian - where is the build directory in /lib/modules? eantoranz Programming 3 05-27-2014 12:40 AM
/lib/modules/2.6.38-8-generic/build: No such file or directory. saman_artorious Linux - Software 1 02-23-2013 09:32 AM
[SOLVED] make: *** /lib/modules//build: No such file or directory. Stop. boidi Linux - Newbie 15 06-30-2010 01:54 AM
Newest Ubuntu kernel yast install makes no /lib/modules/2.6.31-20-generic directory? brianpbarnes Linux - Software 2 02-11-2010 06:41 PM
No build file in lib/modules/* Mlehliw Linux - Newbie 1 08-06-2004 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration