On Fri, Nov 15, 2002 at 08:53:38PM +1100, Trevor Rhodes wrote:
> Using compiler "/usr/bin/gcc". Use environment variable CC to override.
>
> Argument "gcc (GCC) 3" isn't numeric in numeric ge (>=) at ./vmware-config.pl
This is th relevant bit of vmware-config.pl:
$gcc_version = direct_command(shell_string($gHelper{'gcc'})
. ' --version');
chomp($gcc_version);
@gcc_version_num = split(/\./, $gcc_version);
if ($gcc_version_num[0] >= 3) {
It runs "gcc --version", strips the trailing "\n", and splits the
number into components using "." as a field separator. It expects
something like "2.96", i.e. a simple numeric version number. Your
compiler reported something different, the first part of which was "gcc
(GCC) 3".
Run /usr/bin/gcc --version and see what it tells you. If it is
reporting something like the string above, add this:
$gcc_version =~ s/gcc \(GCC\) //;
between the "chomp" and "split" commands. This will strip the first
part and leave the number and whatever follows. All the script is
trying to do is work out the gcc major version number, and if it's 3 or
higher warn you that it's unsupported. It'll probably work anyway, but
all they're saying is that it's not been fully tested.
Cheers,
John
--
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug