LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-11-2012, 02:58 AM   #1
ma1
LQ Newbie
 
Registered: May 2012
Posts: 12

Rep: Reputation: Disabled
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
 
Old 05-11-2012, 04:00 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 15,104

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
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.
 
Old 05-11-2012, 04:57 AM   #3
ma1
LQ Newbie
 
Registered: May 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
# ls /usr/include/
arm-linux-gnueabi asm-generic drm mtd netash neteconet netiucv netrose python2.6 rpc sound xen
arpa c++ linux nautilus-sendto netatalk netinet netpacket nfs python2.7 rpcsvc video xfce4
asm dbus-1.0 mm net netax25 netipx netrom protocols rdma scsi X11 xorg
This is all i have in /usr/include/

How can i restore a backup or reinstall
 
Old 05-11-2012, 01:39 PM   #4
ma1
LQ Newbie
 
Registered: May 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Make Headers_Install error Slackware64 linus72 Slackware 7 12-14-2010 01:41 AM
make rsync output deleted files? hawarden Linux - Software 8 03-18-2005 12:24 PM
How to make deleted files auto go to trash bin? subaruwrx Slackware 1 07-24-2004 10:10 AM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 02:24 AM
How to make sure deleted files are put into trash can so that I can undelete them. futurist Linux - General 4 03-20-2003 02:30 AM

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

All times are GMT -5. The time now is 06:59 PM.

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