| Autor | 
    Nachricht | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: Reconfiguring vmplayer after upgrading kernel 
             Verfasst am: 14.04.2006, 17:50 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
             
  
            Anmeldung: 14. Jan 2006 
            Beiträge: 287 
             
            
            
           | 
         
       
     | 
    
      
        
          After upgrading to Linux 2.6.16.2-slh-1 i686 I need to reconfigure vmplayer, using the perl script vmware-config.pl. It asks
 
 
"What is the location of the directory of C header files that match your running
 
kernel? [/usr/src/linux/include]"
 
 
But if I accept the default it can't find them... where are they?
 
 
Thanks! | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: Reconfiguring vmplayer after upgrading kernel 
             Verfasst am: 14.04.2006, 18:17 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
             
  
            Anmeldung: 22. Jan 2006 
            Beiträge: 1296 
            Wohnort: Budapest 
            
            
           | 
         
       
     | 
    
      
        
          You have to do two things:
 
1. hack /usr/bin/vmware-config.pl
 
2. apply a patch
 
 
1. The hack
 
 
 
- edit as root /usr/bin/vmware-config.pl (or wherever it is)
 
- go to line 1982, this should be a line with "return" in it
 
- add a comment to the beginning of that line with #
 
 
Should look like that:
 
Code: 
. "\n" . $pattern . ' __PAGE_OFFSET') . ' | '
 
       . shell_string($gHelper{'gcc'}) . ' ' . shell_string('-I' . $answer)
 
       . ' -E - | ' . shell_string($gHelper{'grep'}) . ' '
 
       . shell_string($pattern));
 
     chomp($header_page_offset);
 
     $header_page_offset =~ s/^$pattern \(0x([0-9a-fA-F]{8}).*$/$1/;
 
     if ($header_page_offset =~ /[0-9a-fA-F]{8}/) {
 
       # We found a valid page offset
 
       if (not (lc($header_page_offset) eq lc($gSystem{'page_offset'}))) {
 
         if ($source eq 'user') {
 
           print wrap('The kernel defined by this directory of header files
 
           does ' . 'not have the same address space size as your
 
           running ' . 'kernel.' . "\n\n", 0);
 
         }
 
#         return '';
 
       }
 
     }
 
 
 
Note the "#" - it was not there before.
 
 
2. The patch
 
 
You get the patch from there:
 
http://ftp.cvut.cz/vmware/vmware-any-an ... 101.tar.gz
 
 
Unpack it and find the folder with runme.pl in it.
 
Do as root (you have to be in this folder):
 
# ./runme.pl
 
 
That's it, worked for me, vmwareplayer compiled again like a charm.
 
 
Best of luck
 
hubi | 
         
        
          
          
            
          
             _________________ 
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: Reconfiguring vmplayer after upgrading kernel 
             Verfasst am: 14.04.2006, 18:55 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
             
  
            Anmeldung: 22. Jan 2006 
            Beiträge: 1296 
            Wohnort: Budapest 
            
            
           | 
         
       
     | 
    
      
        
          franknq just posted in the german forum that for him it worked just pasting this path at the moment you were stuck as well:
 
/lib/modules/2.6.16.5-kanotix-1/build/include
 
 
For you it would be:
 
/lib/modules/2.6.16.2-slh-1/build/include
 
 
Try this one first.
 
 
Greetings
 
hubi | 
         
        
          
          
            
          
             _________________ 
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: Reconfiguring vmplayer after upgrading kernel 
             Verfasst am: 15.04.2006, 02:26 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
            Team Member 
             
  
  
            Anmeldung: 17. Dez 2003 
            Beiträge: 1109 
            Wohnort: Ganymede 
            
            
           | 
         
       
     | 
    
      
        
          | I just buillt vmware against 2.6.16.2-slh-1 and only the patch needs to be applied.  No hacking of any script was required. | 
         
        
          
          
            
          
             _________________ Ubuntu - An ancient African word for "Can't install Debian"
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: Reconfiguring vmplayer after upgrading kernel 
             Verfasst am: 15.04.2006, 10:42 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
             
  
            Anmeldung: 05. Okt 2004 
            Beiträge: 2069 
            Wohnort: w3 
            
            
           | 
         
       
     | 
    
      
        
          Agree, no hack needed - and the patch is usefull, anyway.
 
Greetings,
 
Chris | 
         
        
          
          
            
          
             _________________ "An operating system must operate."
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: Reconfiguring vmplayer after upgrading kernel 
             Verfasst am: 16.04.2006, 11:16 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
             
  
            Anmeldung: 14. Jan 2006 
            Beiträge: 287 
             
            
            
           | 
         
       
     | 
    
      
        
          brilliant, just used patch... everything works fine!
 
 
Thank you! | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: Re: Reconfiguring vmplayer after upgrading kernel 
             Verfasst am: 16.04.2006, 11:52 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 09. Aug 2004 
            Beiträge: 121 
            Wohnort: Brisbane Australia 
            
            
           | 
         
       
     | 
    
      
        
          | 
 slam hat folgendes geschrieben:: 
Agree, no hack needed - and the patch is usefull, anyway.
 
 
Other than allowing vmware to run on a 2.6.16 kernel, why is the patch useful? | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: RE: Re: Reconfiguring vmplayer after upgrading kernel 
             Verfasst am: 02.06.2006, 22:31 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
             
  
            Anmeldung: 29. Mar 2005 
            Beiträge: 96 
            Wohnort: Terra 
            
            
           | 
         
       
     | 
    
      
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: RE: Re: Reconfiguring vmplayer after upgrading kernel 
             Verfasst am: 20.06.2006, 10:30 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
             
  
            Anmeldung: 18. Jun 2006 
            Beiträge: 1 
             
            
            
           | 
         
       
     | 
    
      
        
          VMPlayer Installed OK on my machine with 2.6.16.16-kanotix-1 but failed config even after patching with http://ftp.cvut.cz/vmware/vmware-any-an ... 01.tar.gz. Error indicated mismatch of kernel and compiler. Upgraded kernel with kernel-2.6.16.20-slh-up-1 then re-ran player install, patch and config with no problem. VMPlayer playing well now with several appliances.
 
Thanks for the great distro Kano! | 
         
        
          
          
            
          
             _________________ If you fear change, you fear life........
 
Embrace change, live free!
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
  
    | 
      
     |