Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  vmfix.sh - fix VMware Workstation "gcc compiler not found" launch error  (Read 2280 times)

Offline jaegermeister

  • User
  • Posts: 222
Hello,

some have followed my previous post. It looks like that VMware Workstation programmers are kinda damn lazy people, sticking to some testbed platforms and not programming in a thourough way, so that their software can decently run also on recent linux kernels (you get the mess when you update them).

The other day with 4.11.8 and today with 4.11.9 I had again to manually fix their nth disuption at application startup, after an odd error that says "gcc compiler not found".... after noticing a google away that this is a usual error coming up through various realeses of the software (!), I suddenly realized that these people should really make an internship at virtualbox office, in order to learn good programming practice. Anyway... I got tired to manually fix their waste, so I made this script (named vmfix.sh) that fixes it all.

Feel free to use it, should you happen to encounter the same error.
Enjoy your software in sid!
(tested on 12.5.7)

Code: [Select]
#!/bin/sh

PWD=$(pwd)
plain=$(echo '\033[0m')
redfg=$(echo '\033[1;31m')
yellowfg=$(echo '\033[01;33m')
magentafg=$(echo '\033[1;35m')


UTENTE=`whoami`
if [ $UTENTE = root ]; then
        echo $magentafg"\n----> VMware Workstation compile FIX script 1.0 :)\n"$plain
else
        echo $redfg"\nYou gotta be root to run this script!!!\n"$plain
        exit 1
fi


cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
tar xf vmnet.tar

echo $yellowfg"\nCompiling vmmon.ko\n"$plain
cd vmmon-only
make

echo $yellowfg"\nCompiling vmnet.ko\n"$plain
cd ../vmnet-only
make
cd ..

echo $yellowfg"\nCleaning up...\n"$plain
mv vmmon-only/*.ko .
mv vmnet-only/*.ko .
rm *.o
rm -rf vmmon-only vmnet-only

echo $yellowfg"\nInstalling *.ko\n"$plain
mkdir -p /lib/modules/`uname -r`/misc
mv *.ko /lib/modules/`uname -r`/misc/

depmod -a
/etc/init.d/vmware restart
echo $yellowfg"\nJob done :)\n"$plain

cd $PWD
« Last Edit: 2017/07/07, 18:39:02 by jaegermeister »
---------------------------------------
SI VIS PACEM PARA BELLVM
---------------------------------------

Offline jaegermeister

  • User
  • Posts: 222
Hello,

some have followed my previous post. It looks like that VMware Workstation programmers are kinda damn lazy people, sticking to some testbed platforms and not programming in a thourough way, so that their software can decently run also on recent linux kernels (you get the mess when you update them).

The other day with 4.11.8 and today with 4.11.9 I had again to manually fix their nth disuption at application startup, after an odd error that says "gcc compiler not found".... after noticing a google away that this is a usual error coming up through various realeses of the software (!), I suddenly realized that these people should really make an internship at virtualbox office, in order to learn good programming practice. Anyway... I got tired to manually fix their waste, so I made this script (named vmfix.sh) that fixes it all.

Feel free to use it, should you happen to encounter the same error.
Enjoy your software in sid!
(tested on 12.5.7)

Code: [Select]
#!/bin/sh

PWD=$(pwd)
plain=$(echo '\033[0m')
redfg=$(echo '\033[1;31m')
yellowfg=$(echo '\033[01;33m')
magentafg=$(echo '\033[1;35m')


UTENTE=`whoami`
if [ $UTENTE = root ]; then
        echo $magentafg"\n----> VMware Workstation compile FIX script 1.0 :)\n"$plain
else
        echo $redfg"\nYou gotta be root to run this script!!!\n"$plain
        exit 1
fi


cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
tar xf vmnet.tar

echo $yellowfg"\nCompiling vmmon.ko\n"$plain
cd vmmon-only
make

echo $yellowfg"\nCompiling vmnet.ko\n"$plain
cd ../vmnet-only
make
cd ..

echo $yellowfg"\nCleaning up...\n"$plain
mv vmmon-only/*.ko .
mv vmnet-only/*.ko .
rm *.o
rm -rf vmmon-only vmnet-only

echo $yellowfg"\nInstalling *.ko\n"$plain
mkdir -p /lib/modules/`uname -r`/misc
mv *.ko /lib/modules/`uname -r`/misc/

depmod -a
/etc/init.d/vmware restart
echo $yellowfg"\nJob done :)\n"$plain

cd $PWD
---------------------------------------
SI VIS PACEM PARA BELLVM
---------------------------------------