No make command in Lubuntu 12.04

Asked by Ian Greenwood on 2012-10-24

Compiling a driver for a wireless lan usb adapter fails with;
bash make command not found

Is this an error or is there an equivalent command for lubuntu?

The PC is an emachines EL1200

here is the script install.sh, from the cd supplied :

#!/bin/bash
# Writed by Realtek : willisTang
# September, 1 2010 v 1.0.0
###########################################################################
echo " Auto install for 8192cu"
echo " September, 1 2010 v 1.0.0"
cd driver
Drvfoulder=`ls |grep .tar.gz`
tar zxvf $Drvfoulder
Drvfoulder=`ls |grep -iv '.tar.gz'`
echo "$Drvfoulder"
cd $Drvfoulder
echo "Authentication requested [root] for make driver:"
if [ "`uname -r |grep fc`" == " " ]; then
 sudo su -c make; Error=$?
else
 su -c make; Error=$?
fi
module=`ls |grep -i 'ko'`
if [ "$Error" != 0 ];then
 echo "Compile make driver error: $Error, Please check error Mesg"
 read REPLY
 exit
else
 echo "Compile make driver ok!!"
fi
if [ "`uname -r |grep fc`" == " " ]; then
 echo "Authentication requested [root] for remove driver:"
 sudo su -c "rmmod $module"
 echo "Authentication requested [root] for insert driver:"
 sudo su -c "insmod $module"
 echo "Authentication requested [root] for install driver:"
 sudo su -c "make install"
else
 echo "Authentication requested [root] for remove driver:"
 su -c "rmmod $module"
 echo "Authentication requested [root] for insert driver:"
 su -c "insmod $module"
 echo "Authentication requested [root] for install driver:"
 su -c "make install"
fi
echo "################################################################"
echo "The Setup Script is completed !"
echo "Plese Press any keyword to exit."
read REPLY
echo "################################################################"

it works in ubuntu, from a review of the product:

For info, anyone using Ubuntu ( in this case 10.10) the CD has a Linux folder. I moved this to my desktop as you must always enable eXecution permissions, changed into the Linux folder, issue the command to change run permission (sudo chmod +x ./install.sh) that's lower case i by the way. Then you execute with (sudo ./install.sh) - takes about 2 mins to install. You should then notice the wireless light flashing on it and your wireless icon alive and kicking. Total time to configure and get running about 3 mins. Nice little unit, about 1 cm sticks out so not too bad at all. looks speedy and i'm sure it will do the job.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gcc-defaults Edit question
Assignee:
No assignee Edit question
Solved by:
Warren Hill
Solved:
2012-10-24
Last query:
2012-10-24
Last reply:
2012-10-24
Best Warren Hill (warren-hill) said : #1

Open a terminal (CTRL+ALT+T) and enter

sudo apt-get install build-essential

Enter password when requested then try again. Should work now

Warren Hill (warren-hill) said : #2

When it says continue Y/n press Y

Manfred Hampl (m-hampl) said : #3

if you do not have the "make" command available on your system, you can install it by installing the package "make".

I would even recommend to install the package "build-essential" which contains some basic compilers and development tools that are needed for almost all development and programming activities. Installing build-essential also cares for installing the make command.

Ian Greenwood (ian-greenwood7) said : #4

Thanks Warren Hill, that solved my question.