make headers_install deleted header files
Hi All,
I am working on a user-space application. The application build successfully before make headers_install INSTALL_HDR_PATH=/usr Now my application fails during build. The command installed the headers, but then automatically deleted /usr/include/*.h Now i am stuck in the middle of nowhere. Can anyone tell me how to fix this issue? Can i cleanup the mess created by make headers_install INSTALL_HDR_PATH=/usr |
That's very strange.
check /usr/include (ls /usr/include), and check for directories like asm-generic/ & linux/ in /usr. If /usr/include/*.h is gone, restore a backup or reinstall. You won't build much without header files, and I gather you are building stuff. |
Quote:
How can i restore a backup or reinstall |
Problem Solved.
The correct command to export kernel headers for user-space application is below make headers_install INSTALL_HDR_PATH=/usr/include I have given /usr instead of /usr/include I recovered the deleted files in /usr/include by reinstalling the libc-dev using the following command apt-get install lib6-dev --reinstall business_kid, Thanks for your time and help. |
All times are GMT -5. The time now is 02:40 PM. |