LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /lib/modules/4.15.0-29-generic/build: No such file or directory (https://www.linuxquestions.org/questions/linux-newbie-8/lib-modules-4-15-0-29-generic-build-no-such-file-or-directory-4175640971/)

PeMaCN 10-23-2018 08:54 AM

/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

PeMaCN 10-24-2018 03:10 AM

Anyone has an idea how to solve this?

bathory 10-24-2018 03:38 AM

Quote:

Originally Posted by PeMaCN (Post 5918304)
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)

PeMaCN 10-24-2018 04:34 AM

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

pan64 10-24-2018 05:30 AM

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.


All times are GMT -5. The time now is 09:02 AM.