LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can someone help me install CDemu? kernel question (https://www.linuxquestions.org/questions/linux-software-2/can-someone-help-me-install-cdemu-kernel-question-152255/)

bastupungen 03-01-2004 12:41 PM

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?

peter_robb 03-01-2004 02:41 PM

Download and install the kernel-source package.

bastupungen 03-01-2004 03:00 PM

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?

peter_robb 03-01-2004 03:48 PM

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..

bastupungen 03-01-2004 04:24 PM

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 :newbie: if this question seems dumb. :)

bastupungen 03-01-2004 05:57 PM

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

bastupungen 03-02-2004 03:01 AM

bump

khermans 08-02-2004 11:34 AM

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


All times are GMT -5. The time now is 11:56 AM.