LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-12-2006, 10:01 AM   #1
dauphinfay
Member
 
Registered: Jan 2004
Location: Earth
Distribution: Ubuntu
Posts: 301

Rep: Reputation: 30
make: *** No rule to make target `mrproper'. Stop.


I have tried to run mrproper from /usr/src/ as well as /usr/src/linux and even /usr/src/linux-headers-XXXX-386. nothing works. how in the world do i get this working? here is the result:

/usr/src/linux-headers-2.6.12-10$ sudo make mrproper
/bin/sh: /usr/src/linux-headers-2.6.12-10/scripts/gcc-version.sh: No such file or directorymake[1]: scripts/Makefile.clean: No such file or directory
make[1]: *** No rule to make target `scripts/Makefile.clean'. Stop.
make: *** [archclean] Error 2
 
Old 03-13-2006, 06:59 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It sounds like you have the headers package installed but not the sources package. Once that's installed the make mrproper target should work (I'm assuming that the Ubuntu kernel package doesn't do anything unusual to the source tree).
 
Old 03-13-2006, 07:08 PM   #3
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
mrproper is used to "clean" the kernel-source tree from previously compiled files, so you can start fresh - even without a old .config.
However - you need the kernel-source installed for this and run this command from /usr/src/linux (or /usr/src/linux_version_)
Is there anything inside /usr/src/linux ?
 
Old 12-28-2008, 09:26 AM   #4
greywolf31
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Rep: Reputation: 0
similar issue with gentoo install

I am having a similar issue... but with gentoo

Quote:
Originally Posted by jomen View Post
Is there anything inside /usr/src/linux ?
when I cd to /usr/src/linux the only thing there is linux-2.6.27-gentoo-r7
using ls -p /usr/src/linux

http://www.linuxquestions.org/questi...gentoo-693431/

Last edited by greywolf31; 12-28-2008 at 09:27 AM.
 
Old 10-15-2009, 08:04 AM   #5
dragonfever
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Rep: Reputation: 0
Question

Quote:
Originally Posted by jomen View Post
mrproper is used to "clean" the kernel-source tree from previously compiled files, so you can start fresh - even without a old .config.
However - you need the kernel-source installed for this and run this command from /usr/src/linux (or /usr/src/linux_version_)
Is there anything inside /usr/src/linux ?
hello!
I am following the lfs-book-6.4,when i entered the "make rmproper" as the Chaper6.7.1 required, error exists as:

make: *** No rule to make target `mrproper'. Stop.

I check the file,but there is nothing inside /usr/src/linux.
I just following the guidance,everything goes well in the past chapers,what's the matter?
what should i do?
thanks!
 
Old 10-15-2009, 12:19 PM   #6
Deviathan
Member
 
Registered: Dec 2005
Posts: 52

Rep: Reputation: 18
Quote:
Originally Posted by dragonfever View Post
hello!
I am following the lfs-book-6.4,when i entered the "make rmproper" as the Chaper6.7.1 required, error exists as:

make: *** No rule to make target `mrproper'. Stop.

I check the file,but there is nothing inside /usr/src/linux.
I just following the guidance,everything goes well in the past chapers,what's the matter?
what should i do?
thanks!
Sounds like you need to install the kernel source for your distribution. As one member above said, that command was typically run in /usr/src/linux where linux is a symbolic link to the actual directory containing the kernel source code. This may differ from distro to distro but usually within /usr/src.

This is something you'll have to figure out specifically for your version.
 
Old 10-16-2009, 12:29 AM   #7
dragonfever
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by Deviathan View Post
Sounds like you need to install the kernel source for your distribution. As one member above said, that command was typically run in /usr/src/linux where linux is a symbolic link to the actual directory containing the kernel source code. This may differ from distro to distro but usually within /usr/src.

This is something you'll have to figure out specifically for your version.
Thank you!
I have passed this time.The reason that made the error last time was that i didn't tar the kernel source file.I entered the following commands and passed successfully:

tar -xjf linux-2.6.27.4.tar.bz2
cd linux2.6.27.4
make mrproper
 
Old 11-24-2014, 07:35 AM   #8
sholizar
LQ Newbie
 
Registered: Sep 2014
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by dragonfever View Post
Thank you!
I have passed this time.The reason that made the error last time was that i didn't tar the kernel source file.I entered the following commands and passed successfully:

tar -xjf linux-2.6.27.4.tar.bz2
cd linux2.6.27.4
make mrproper
i'm on LFS 7.5 now, in chapter: 6.7. Linux-3.13.3 API Headers (different kernel (3.13.3) from yours of course), and i approve your message. sorry, success :-)

i think the LFS team need to make a note in this chapter(6.7), to chapter: 5.3. General Compilation Instructions, and the second important message there(paragraph 3), that people will know that they need to continue to work as described there.

good luck!

Last edited by sholizar; 11-24-2014 at 08:50 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
get this error when runnign make ***** "no rule to make target 'config'. stop" procfs Linux - General 4 05-12-2013 10:25 AM
make: *** No rule to make target 'gconfig'. Stop. cswake Slackware 4 10-10-2004 12:13 PM
Error "make: *** No rule to make target `install'. Stop." help Ohmn Mandriva 8 07-02-2004 07:02 PM
Error: *** No rule to make target 'all'. Stop aa2bi Linux - Newbie 6 06-08-2004 12:55 PM
*** No rule to make target `modules'. Stop. kmack2001 Linux - Newbie 9 02-16-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:18 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