LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-31-2003, 06:07 AM   #1
zaman
Member
 
Registered: Jul 2003
Location: new delhi,india
Distribution: slackware 9.0
Posts: 54

Rep: Reputation: 15
kernel_compile_problem


while compilinh kernel 2.4.22 when di=oing mkinitrd i get following error...
cant create temp directory ...exiting
can any1 help....
 
Old 10-31-2003, 07:30 AM   #2
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
OK, this may sound stupid but whats mkinitrd? I have re-built my kernel countless times, but I've never done that. I would do the following:

make mrproper
make menuconfig
make dep
make bzImage
make modules
su
[Password]
make modules install
cp arch/i386/boot/bzImage /boot/kernelname
cp System.map /boot
lilo

If mkinitrd is a stage in one of these then forgive me.

Either way, it sounds like you can't create a temporary directory. Make sure you're compiling in a directory you have full permissions to (eq your home directory). If that fails, you could compile it as root. This is generally considered to be a bad idea, but having said that, I compile everything as root, because I use /usr/src and I don't want other users to have permissions to write there. Do as I say, not as I do.
Guy
 
Old 10-31-2003, 08:00 AM   #3
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Re: kernel_compile_problem

Quote:
Originally posted by zaman
while compilinh kernel 2.4.22 when di=oing mkinitrd i get following error...
cant create temp directory ...exiting
can any1 help....
That means the mktemp step in mkinitrd failed. Normally you should have some more output as to the exact cause. Try mkinitrd --verbose and report what it says here.
 
Old 10-31-2003, 09:37 AM   #4
zaman
Member
 
Registered: Jul 2003
Location: new delhi,india
Distribution: slackware 9.0
Posts: 54

Original Poster
Rep: Reputation: 15
it says unknown option :
Unknown option: --
Try mk_initrd -h
 
Old 10-31-2003, 10:28 AM   #5
zaman
Member
 
Registered: Jul 2003
Location: new delhi,india
Distribution: slackware 9.0
Posts: 54

Original Poster
Rep: Reputation: 15
this is the line in /sbin/mkinitrd
where problem occurs

tmp_dir=`mktemp -qd $root_dir/$tmp_dir/mkinitrd.XXXXXX`
if [ $? -ne 0 ]; then
echo "$0: Can't create temp dir, exiting..."
exit 1
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration