LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-01-2004, 12:41 PM   #1
bastupungen
Member
 
Registered: Nov 2003
Posts: 53

Rep: Reputation: 15
Can someone help me install CDemu? kernel question


Hello!

Im trying to install CDemu but I can't really get it to install. I think I have an Kernel problem. Im running Mandrake 9.2 and I have the kernel source version 2.4.22-28mdk but I don't really understand this part of the installation:

2. you need the source of your current running kernel.
/lib/modules/`uname -r`/build/include needs to point at it. if you're not sure if it points
to the righ kernel just type: ls -la /lib/modules/`uname -r`/build if its the correct kernel
source all is ok. ;-)

If i type: ls -la /lib/modules/`uname -r`/build it returns:
ls: /lib/modules/2.4.22-10mdk/build: No such file or directory

If i do make, then make install, as root. It returns that im not root. And that i can't install.

What can i do to fix this?
 
Old 03-01-2004, 02:41 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Download and install the kernel-source package.
 
Old 03-01-2004, 03:00 PM   #3
bastupungen
Member
 
Registered: Nov 2003
Posts: 53

Original Poster
Rep: Reputation: 15
I have...

I have installed it from RPMdrake in Mandrake 9.2.

If i start RPMdrake to remove programs i can see kernel-source-2.4.22-28mdk there.

Could it be possible that i have the wrong source installed?
 
Old 03-01-2004, 03:48 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Good point,

uname -r looks like it says 2.4.22-10

It's hard to find an earlier source package, so maybe better to install the 2.4.22-28 kernel rpm and boot into that first..
 
Old 03-01-2004, 04:24 PM   #5
bastupungen
Member
 
Registered: Nov 2003
Posts: 53

Original Poster
Rep: Reputation: 15
How do i install the 2.4.22-28 kernel RPM package?

Should I install that packade through RPM drake, with help from easy urpmi, and remove the current kernel and then reboot?

Or, do I have to do anything else?

Remember I am a if this question seems dumb.
 
Old 03-01-2004, 05:57 PM   #6
bastupungen
Member
 
Registered: Nov 2003
Posts: 53

Original Poster
Rep: Reputation: 15
One problem fixed. Now to the next one

I have now installed the 2.4.22-28 kernel and booted in too it. now when i type ls -la /lib/modules/`uname -r`/build i get:
lrwxrwxrwx 1 root root 27 mar 2 00:16 /lib/modules/2.4.22-28mdk/build -> /usr/src/linux-2.4.22-28mdk/

This looks alot better for my eyes then before.

I removed the old dir and packed it up again. Now when i type 'make' i can se that it returns usage of the new kernel-source. good! I can post what it says if anyone wants.

But when i try to 'make install' it claims im not root. Even though i am root(su)... It said this before when i didn't have the right kernel-source too.
'make install' returns:

[root@h118n2fls32o842 cdemu_0.5.3a]# make install
You must be root to make install!
make: *** [install] Fel 1

What am i doing wrong here? Anyone who has run into this before?

Thanks alot in advance /Bastupungen
 
Old 03-02-2004, 03:01 AM   #7
bastupungen
Member
 
Registered: Nov 2003
Posts: 53

Original Poster
Rep: Reputation: 15
bump
 
Old 08-02-2004, 11:34 AM   #8
khermans
Member
 
Registered: Sep 2001
Distribution: Ubuntu, Debian, Gentoo
Posts: 162

Rep: Reputation: 30
Re: One problem fixed. Now to the next one

Quote:
Originally posted by bastupungen
I have now installed the 2.4.22-28 kernel and booted in too it. now when i type ls -la /lib/modules/`uname -r`/build i get:
lrwxrwxrwx 1 root root 27 mar 2 00:16 /lib/modules/2.4.22-28mdk/build -> /usr/src/linux-2.4.22-28mdk/

This looks alot better for my eyes then before.

I removed the old dir and packed it up again. Now when i type 'make' i can se that it returns usage of the new kernel-source. good! I can post what it says if anyone wants.

But when i try to 'make install' it claims im not root. Even though i am root(su)... It said this before when i didn't have the right kernel-source too.
'make install' returns:

[root@h118n2fls32o842 cdemu_0.5.3a]# make install
You must be root to make install!
make: *** [install] Fel 1

What am i doing wrong here? Anyone who has run into this before?

Thanks alot in advance /Bastupungen
I found the solution myself on the Gentoo forums located here:

http://forums.gentoo.org/viewtopic....b958fe04c6459df

The trick is to use "su -" when you change to the root user and then do the emerge cdemu. The makefile has a check in there to see if you really are the root user and if will fail if you don't do "su -". Good luck to future thread readers :-P

Kristian Hermansen
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel woes...installing cdemu StrangeBiscuit Linux - Software 3 05-16-2005 10:05 PM
anyone help me install cdemu on debian? j.vilon Debian 18 02-28-2005 04:59 AM
virtual cdrom cdemu question atentaten Linux - Software 8 11-08-2004 08:00 PM
question about installing CDemu minm Linux - Software 5 10-21-2004 05:57 AM
Need help installing CDemu. The install claims im not root. bastupungen Linux - Software 4 08-02-2004 11:33 AM

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

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