Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I got this Huawei E303C Datacard, It came with Linux Installation Guide, It asks to run a command, ./install $path
where $path is the path of the driver directory, When I run this command it shows error like

Install NDIS driver failed.
The compiling environment is not all ready.
Please check gcc, make and kernel buid(/lib/modules/3.2.0-36-generic/build) to be all installed?
Now please enter any key to finish other installations.

The Complete Error is this.

DRIVER COPY START
STA_PATH_FLAG=.
STA_PATH_FULL=/home/hussain/huawei/MobilePartner Linux/driver/install
START_PATH_DRIVER=/home/hussain/huawei/MobilePartner Linux/driver
CURRENT install from ./install
./install: line 44: [: /home/hussain/huawei/MobilePartner: binary operator expected
INSTALL_PATH=/home/hussain/huawei/MobilePartner Linux/
./install: line 52: [: too many arguments
DRIVER COPY END
Usage: modinfo [-0][-F field][-k kernelversion][-b basedir]  module...
 Prints out the information about one or more module(s).
 If a fieldname is given, just print out that field (or nothing if not found).
 Otherwise, print all information out in a readable form
 If -0 is given, separate with nul, not newline.
 If -b is given, use an image of the module tree.
ERROR: Removing 'cdc_ether': No such file or directory
ERROR: Removing 'usbnet': No such file or directory
ERROR: Removing 'hw_cdc_driver': No such file or directory
make -C src/ clean
make[1]: Entering directory `/home/hussain/huawei/MobilePartner Linux/driver/ndis_driver/ndis_src/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
/home/hussain/huawei/MobilePartner Linux/driver/ndis_driver/ndis_src/src/add_header.sh  "clean" "/lib/modules/3.2.0-36-generic/build/include/linux/usb"
/bin/sh: 1: /home/hussain/huawei/MobilePartner: not found
make[1]: *** [clean] Error 127
make[1]: Leaving directory `/home/hussain/huawei/MobilePartner Linux/driver/ndis_driver/ndis_src/src'
make: *** [clean] Error 2
make -C src/ modules
make[1]: Entering directory `/home/hussain/huawei/MobilePartner Linux/driver/ndis_driver/ndis_src/src'
#/home/hussain/huawei/MobilePartner Linux/driver/ndis_driver/ndis_src/src/add_header.sh  "modules" "/lib/modules/3.2.0-36-generic/build/include/linux/usb"
make -C /lib/modules/3.2.0-36-generic/build SUBDIRS=/home/hussain/huawei/MobilePartner Linux/driver/ndis_driver/ndis_src/src modules
make[2]: Entering directory `/usr/src/linux-headers-3.2.0-36-generic'
make[2]: *** No rule to make target `Linux/driver/ndis_driver/ndis_src/src'.  Stop.
make[2]: Leaving directory `/usr/src/linux-headers-3.2.0-36-generic'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/hussain/huawei/MobilePartner Linux/driver/ndis_driver/ndis_src/src'
make: *** [modules] Error 2
make -C src/ install
make[1]: Entering directory `/home/hussain/huawei/MobilePartner Linux/driver/ndis_driver/ndis_src/src'
#install -m 744 -c hw_cdc_driver.o /lib/modules/3.2.0-36-generic/kernel/drivers/usb/net
#depmod -a
#modprobe hw_cdc_driver
/home/hussain/huawei/MobilePartner Linux/driver/ndis_driver/ndis_src/src/add_header.sh  "install"
/bin/sh: 1: /home/hussain/huawei/MobilePartner: not found
make[1]: *** [install] Error 127
make[1]: Leaving directory `/home/hussain/huawei/MobilePartner Linux/driver/ndis_driver/ndis_src/src'
make: *** [install] Error 2

Install NDIS driver failed.
The compiling environment is not all ready.
Please check gcc, make and kernel buid(/lib/modules/3.2.0-36-generic/build) to be all installed?
Now please enter any key to finish other installations.

I have GCC and Make installed already, what is the problem ? Please Help.

share|improve this question
I don't know much about this but Linux doesn't like spaces. You have a space here: /home/hussain/huawei/MobilePartner Linux/driver/install between MobilePartner and Linux. – vasa1 Feb 4 at 6:45
1  
its actually like this "/home/hussain/huawei/MobilePartner\ Linux/ " – Hussain Nagri Feb 4 at 6:50

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.