DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
then I installed the headers and kernel packages as root with dpkg. I went on to build VirtualBox from source. After some messing around I got the whole thing to compile the debian way with 'debian/rules'. Still the kernel module wouldn't compile. As per VirtualBox intructions I typed:
Code:
# /etc/init.d/vboxdrv setup
I got this error in the error log.
Quote:
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-rc8-d1'
/usr/src/linux-headers-2.6.27-rc8-d1/arch/x86/Makefile:41: /usr/src/linux-headers-2.6.27-rc8-d1/arch/x86/Makefile_32.cpu: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-headers-2.6.27-rc8-d1/arch/x86/Makefile_32.cpu'. Stop.
Did I make a mistake when I was compiling the kernel in the first place? I looked in the x86 folder. There is no Makefile_32 there. Thanks alot. Any help would be appreciated.
cd ..
dpkg -i linux-image-2.6.27-rc8-k7_0.1_i386.deb
The "k7_0.1" would be something else on your machine. In any case, did you get a successful install with the "dpkg -i"? If so, are you now booted from it? If not, go back to step one and keep trying till you can boot from the new kernel.
Once you're booted, I have to admit that I don't know about doing the "vboxdrv setup". I gave up in frustration about where you are and installed VirtualBox from source using the instructions spat out by configure. I suspect it's just that you're not booted from the new kernel. After playing with this a bit and understanding it some more, I'm tempted to do an uninstall and try the aptitude version, again.
After thinking about this some more, I have another question: where did you get this kernel source from? If it's from kernel.org, that's likely the root of your problem. Debian add their own stuff to kernels so that the installer will work with installable packages. When I was looking into using the Debian VirtualBox package, I got the feeling that I had to use a Debian kernel, not one I downloaded from kernel.org. That kinda stopped it for me, because I needed 2.6,27.
That's exactly the file I downloaded. Then I had to edit the debian/rules file so that the './configure' would happen properly, otherwise it wouldn't start compiling. Did you have that experience? I had to pass the flag '--with-gcc-compat=/usr/bin/gcc-4.3' for it to work.
That's exactly the file I downloaded. Then I had to edit the debian/rules file so that the './configure' would happen properly, otherwise it wouldn't start compiling. Did you have that experience? I had to pass the flag '--with-gcc-compat=/usr/bin/gcc-4.3' for it to work.
I had no problem with anything other than adding --with-gcc-compat=gcc-4.1. You must not use 4.3 here. Here is a copy of my configure script. (OK, so I'm script-happy)
Yeah, you're describing the kmk way, without the 'debian/rules' file. yep, I sourced 'env.sh'. I tried it both ways, both using 'debian/rules' and with kmk. I either get hung up on 'alloc.o' or on 'crc32.o'. Once I actually got the binaries in debian form, and those are the ones I tried to install. Can I use a version of virtualbox that I've compiled for a different kernel? I've got a couple of those.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.