LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   ./configure, make, make install is missing (http://www.linuxquestions.org/questions/suse-novell-60/configure-make-make-install-is-missing-654866/)

lhuser 07-10-2008 09:48 AM

./configure, make, make install is missing
 
I've installed a fresh installation of OpenSUSE 11.0 and when I have installed VirtualBox, it prompted me that it failed to start due to a driver model being missing. To fix it, I needed to compile it. No problems.

I go in Konsole, type /etc/init.d/vboxdrv setup

This is what I got:
Code:

Stopping VirtualBox kernel module                                done
Recompiling VirtualBox kernel module                              failed
  (Look at /var/log/vbox-install.log to find out what went wrong)

I went to the log and to my surprise, I saw:
make: No such file or directory.

Then, I knew that my C compiler wasn't installed. So, I pop a visit in YaST, install gcc, and still nothing. There's no C compiler, and I've installed gcc!

Is there anything that I've missed?

{BBI}Nexus{BBI} 07-10-2008 11:15 AM

The following are usually required to successfully compile:

gcc
glibc-devel
gcc-c++
libstdc++-devel
make
kernel-headers


There are also some popular libraries that are needed in some cases (though not necessarily in yours):

libgtk+-devel, libglib-devel (most common widget set)
libgr-devel, libungif-devel, libjpeg-devel, libpng-devel, libtiff-devel, libxpm-devel (image formats)
libtermcap-devel, libncurses-devel (for console applications)
XFree86-devel (for all graphical applications)
zlib-devel (compression library)

colucix 07-10-2008 11:47 AM

You can also install the required packages in one-shot, using Yast Software Managment: select the Pattern view and install the Base Development group.

lhuser 07-10-2008 12:06 PM

colucix, I'll do that right now, to be safe with other issues that might be a problem like this. Thanks for refreshing that this mode exists :p
Quote:

Originally Posted by {BBI}Nexus{BBI} (Post 3210179)
The following are usually required to successfully compile:

gcc
glibc-devel
gcc-c++
libstdc++-devel
make
kernel-headers


There are also some popular libraries that are needed in some cases (though not necessarily in yours):

libgtk+-devel, libglib-devel (most common widget set)
libgr-devel, libungif-devel, libjpeg-devel, libpng-devel, libtiff-devel, libxpm-devel (image formats)
libtermcap-devel, libncurses-devel (for console applications)
XFree86-devel (for all graphical applications)
zlib-devel (compression library)

Well, I don't know what to say other than...thanks! I never thought make would have been a seperate package. However, I have another problem. This one is a little more severe I guess:
Code:

Makefile:154: *** Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again.  Stop.

colucix 07-10-2008 12:46 PM

You probably miss the kernel headers. Check if the package kernel-source is installed. Beware, the version of the kernel-source package must match exactly the version of the kernel you're running. As you probably already know, you can check using
Code:

uname -r

lhuser 07-10-2008 01:00 PM

Alright, I have the kernel-source, and it's version is 2.6.25.9-0.2 and uname -r returned me:
Code:

linux-7s3y:/home/lhuser # uname -r
2.6.25.5-1.1-default

It could be a mismatch, but I have found the package kernel-pae, which is the kernel with the PAE extensions, that the version is 2.6.25.9-0.2, but I'm not too sure if I should touch it...

lhuser 07-10-2008 01:07 PM

Sorry, double post. Glitch in browser.

colucix 07-10-2008 01:38 PM

Quote:

Originally Posted by lhuser (Post 3210291)
It could be a mismatch, but I have found the package kernel-pae, which is the kernel with the PAE extensions, that the version is 2.6.25.9-0.2, but I'm not too sure if I should touch it...

It looks like the kernel-pae is not installed, or at least you're not running it. Anyway, the make step usually looks for the kernel sources using the uname -r command. It is actually looking for the 2.6.25.5-1.1 headers and evidently it cannot find them.

You can either install the newer kernel or install the older kernel sources. Also note that the kernel sources package is the same, despite you've installed the pae, debug, xen, or any other version. It is the version number that makes the difference.

lhuser 07-10-2008 03:06 PM

That fixed it. I used kernel-vanilla, and dang...it preety much took care of some glitches I had, like the 3D effects not starting automatically, and I am now able to use VirtualBox. Thanks a bunch!


All times are GMT -5. The time now is 09:28 PM.