Mailing List Archive



Back to the month index Back to the list index

Marc Thomas (marc@firefly.demon.co.uk)
Sun, 16 Nov 1997 13:58:35 +0000 (GMT)


Date: Sun, 16 Nov 1997 13:58:35 +0000 (GMT)
From: Marc Thomas <marc@firefly.demon.co.uk>
Subject: Re: install problem
Message-ID: <Pine.LNX.3.91.971116132855.308B-100000@firefly.demon.co.uk>

On Fri, 14 Nov Sol Katz wrote:

> i saw the message in the msql manual (page 8) that some versions of linux
> don't automatically install all required header files. is this what is
> causing my problems? if not, what is?

This sounds quite likely. Over the weekend I managed to install mSQL on my
Linux system (2.0.31, and mSQL 2.0.3) for evaluation, without too many
problems.

First thing you should check is whether or not you do have the kernel
source. Take a look in '/usr/src'

You should have a directory named something like 'linux-2.0.xx' (although
the name doesn't really matter). What does matter is that you have a
directory called 'linux' (or better still, a symlink which points to the
linux-2.0.xx directory.)

I recommend the symlink option, so on my system:
lrwxrwxrwx 1 root root 12 Oct 28 22:30 linux -> linux-2.0.31

If you don't have the linux kernel source, then you'll need to ftp a copy
from your local mirror site (or get it from your distribution CD-ROM). You
should get the 2.0.28 version (unless you fancy upgrading your kernel as
well). You won't need to actually compile the kernel.

You also need to check a few other symlinks. The following is an extract
from the README file supplied with the kernel source.

-----------

 - make sure your /usr/include/asm, /usr/include/linux, and /usr/include/scsi
   directories are just symlinks to the kernel sources:

                cd /usr/include
                rm -rf asm linux scsi
                ln -s /usr/src/linux/include/asm-i386 asm
                ln -s /usr/src/linux/include/linux linux
                ln -s /usr/src/linux/include/scsi scsi

-----------

Another problem you seem to be having is that mSQL can't find yacc. This
is usually a shell script in /usr/bin, and looks like:

#/bin/sh
# emulate yacc
bison -y $*

However, on my system mSQL figured out that it needed to use bison
anyway, so I suspect that you don't have bison. (Look for it in /usr/bin)

If you don't have bison and you got Linux on a CD-Rom, its likely that all
the bits you need are on that CD. Tell it to install the kernel source,
all the C development tools, and all the libraries. Your first problem
could be due to some missing libraries, not missing header files.

Hope that's of some use. Feel free to mail me directly if you have any
more problems.

Marc Thomas