Debian make error 2

I recently install Kali on my pc. because I'm using a 3rd party network card (Asus PCE-N53 to be precise) I have to install the drivers (obviously). However when I try to run the "make" command to ...

I recently install Kali on my pc. because I’m using a 3rd party network card (Asus PCE-N53 to be precise) I have to install the drivers (obviously). However when I try to run the «make» command to run the installation it give me and error 127

I am a bit of a Linux noobie so could be making a stupid mistake somwhere. If anyone has any input of any kind it would be greatly appreciated. Thank you.

This is the error msg from the root terminal:

root@kali:/media/root/UUI/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326#     make
make -C tools
make[1]: Entering directory    '/media/root/UUI/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory   '/media/root/UUI/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/tools'
/media/root/UUI/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/tools/bin2h
make: execvp:    /media/root/UUI/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/tools/bin2h:    Permission denied
Makefile:317: recipe for target 'build_tools' failed
make: *** [build_tools] Error 127
root@kali:/media/root/UUI/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326# 

I also copyed the file’s to the /root/Desktop and tried to run from there, got this error 2:

root@kali:~/Desktop/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326# make
make -C tools
make[1]: Entering directory '/root/Desktop/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/root/Desktop/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/tools'
/root/Desktop/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/tools/bin2h
cp -f os/linux/Makefile.6 /root/Desktop/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/Makefile
make -C /lib/modules/4.0.0-kali1-amd64/build SUBDIRS=/root/Desktop/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux modules
make[1]: Entering directory '/lib/modules/4.0.0-kali1-amd64/build'
make[1]: *** No rule to make target 'modules'.  Stop.
make[1]: Leaving directory '/lib/modules/4.0.0-kali1-amd64/build'
Makefile:381: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
root@kali:~/Desktop/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326# 

This is the code of the «Makefile»:

 ifeq ($(WIFI_MODE),)
RT28xx_MODE = STA
else
RT28xx_MODE = $(WIFI_MODE)
endif

ifeq ($(TARGET),)
TARGET = LINUX
endif

ifeq ($(CHIPSET),)
CHIPSET = 5592
endif

MODULE = $(word 1, $(CHIPSET))

#OS ABL - YES or NO
OSABL = NO

ifneq ($(TARGET),THREADX)
#RT28xx_DIR = home directory of RT28xx source code
RT28xx_DIR = $(shell pwd)
endif

include $(RT28xx_DIR)/os/linux/config.mk

RTMP_SRC_DIR = $(RT28xx_DIR)/RT$(MODULE)

#PLATFORM: Target platform
PLATFORM = PC
#PLATFORM = 5VT
#PLATFORM = IKANOS_V160
#PLATFORM = IKANOS_V180
#PLATFORM = SIGMA
#PLATFORM = SIGMA_8622
#PLATFORM = INIC
#PLATFORM = STAR
#PLATFORM = IXP
#PLATFORM = INF_TWINPASS
#PLATFORM = INF_DANUBE
#PLATFORM = INF_AR9
#PLATFORM = INF_VR9
#PLATFORM = BRCM_6358
#PLATFORM = INF_AMAZON_SE
#PLATFORM = CAVM_OCTEON
#PLATFORM = CMPC
#PLATFORM = RALINK_2880
#PLATFORM = RALINK_3052
#PLATFORM = SMDK
#PLATFORM = RMI
#PLATFORM = RMI_64
#PLATFORM = KODAK_DC
#PLATFORM = DM6446
#PLATFORM = FREESCALE8377
#PLATFORM = BL2348
#PLATFORM = BL23570
#PLATFORM = BLUBB
#PLATFORM = BLPMP
#PLATFORM = MT85XX
#PLATFORM = NXP_TV550
#PLATFORM = MVL5
#PLATFORM = RALINK_3352
#PLATFORM = UBICOM_IPX8
#PLATFORM = INTELP6

#APSOC
ifeq ($(MODULE),3050)
PLATFORM = RALINK_3050
endif
ifeq ($(MODULE),3052)
PLATFORM = RALINK_3052
endif
ifeq ($(MODULE),3350)
PLATFORM = RALINK_3050
endif
ifeq ($(MODULE),3352)
PLATFORM = RALINK_3352
endif


#RELEASE Package
RELEASE = DPO


ifeq ($(TARGET),LINUX)
MAKE = make
endif

ifeq ($(TARGET), UCOS)
MAKE = make
endif
ifeq ($(TARGET),THREADX)
MAKE = gmake
endif

ifeq ($(TARGET), ECOS)
MAKE = make
MODULE = $(shell pwd | sed "s/.*///" ).o
export MODULE
endif

ifeq ($(PLATFORM),5VT)
LINUX_SRC = /home/ralink-2860-sdk-5vt-distribution/linux-2.6.17
CROSS_COMPILE = /opt/crosstool/uClibc_v5te_le_gcc_4_1_1/bin/arm-linux-
endif

ifeq ($(PLATFORM),UBICOM_IPX8)
LINUX_SRC = /home/sample/Customers/UBICOM/ubicom-linux-dist-2.1.1/linux-2.6.x
CROSS_COMPILE = ubicom32-elf-
endif

ifeq ($(PLATFORM),IKANOS_V160)
LINUX_SRC = /home/sample/projects/LX_2618_RG_5_3_00r4_SRC/linux-2.6.18
CROSS_COMPILE = mips-linux-
endif

ifeq ($(PLATFORM),IKANOS_V180)
LINUX_SRC = /home/sample/projects/LX_BSP_VX180_5_4_0r1_ALPHA_26DEC07/linux-2.6.18
CROSS_COMPILE = mips-linux-
endif

ifeq ($(PLATFORM),SIGMA)
LINUX_SRC = /root/sigma/smp86xx_kernel_source_2.7.172.0/linux-2.6.15
CROSS_COMPILE = /root/sigma/smp86xx_toolchain_2.7.172.0/build_mipsel_nofpu/staging_dir/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),SIGMA_8622)
LINUX_SRC = /home/snowpin/armutils_2.5.120.1/build_arm/linux-2.4.22-em86xx
CROSS_COMPILE = /home/snowpin/armutils_2.5.120.1/toolchain/bin/arm-elf-
CROSS_COMPILE_INCLUDE = /home/snowpin/armutils_2.5.120.1/toolchain/lib/gcc-lib/arm-elf/2.95.3
endif

ifeq ($(PLATFORM),INIC)
UCOS_SRC = /opt/uCOS/iNIC_rt2880
CROSS_COMPILE = /usr/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),STAR)
LINUX_SRC = /opt/star/kernel/linux-2.4.27-star
CROSS_COMPILE = /opt/star/tools/arm-linux/bin/arm-linux-
endif

ifeq ($(PLATFORM),RMI)
LINUX_SRC = /opt/rmi/1.7.0/linux/src/
CROSS_COMPILE = /opt/rmi/1.7.0/mipscross/nptl/bin/mips64-unknown-linux-gnu-
endif

ifeq ($(PLATFORM),RMI_64)
LINUX_SRC = /opt/rmi/1.7.0/linux_64/src/
CROSS_COMPILE = /opt/rmi/1.7.0/mipscross/nptl/bin/mips64-unknown-linux-gnu-
endif

ifeq ($(PLATFORM), RALINK_2880)
LINUX_SRC = /project/stable/RT288x/RT288x_SDK/source/linux-2.4.x
CROSS_COMPILE = /opt/buildroot-gdb/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),RALINK_3052)
LINUX_SRC = /home/peter/ap_soc/SDK_3_3_0_0/RT288x_SDK/source/linux-2.6.21.x
CROSS_COMPILE = /opt/buildroot-gcc342/bin/mipsel-linux-uclibc-
endif

ifeq ($(PLATFORM),FREESCALE8377)
LINUX_SRC = /opt/ltib-mpc8377_rds-20090309/rpm/BUILD/linux-2.6.25 
CROSS_COMPILE = /opt/freescale/usr/local/gcc-4.2.187-eglibc-2.5.187/powerpc-linux-gnu/bin/powerpc-linux-gnu-
endif

ifeq ($(PLATFORM),BL2348)
LINUX_SRC = /home/sample/Customers/BroadLight/bl234x-linux-2.6.21-small-v29
CROSS_COMPILE = mips-wrs-linux-gnu-
endif

ifeq ($(PLATFORM),BL23570)
LINUX_SRC = /home/FIBERHOME/linux-2.6.34.8
CROSS_COMPILE = mips-wrs-linux-gnu-mips_74k_softfp-glibc_small-
ARCH:=mips
export $ARCH
endif


ifeq ($(PLATFORM),BLUBB)
LINUX_SRC = /home/sample/Customers/BroadLight/UBB/gmp20/linux-2.6.21-small
CROSS_COMPILE = mips-wrs-linux-gnu-
endif

ifeq ($(PLATFORM),BLPMP)
LINUX_SRC = /home/sample/Customers/BroadLight/UBB/pmp16/bl234x-linux-2.6.21-small-v30.2
CROSS_COMPILE = mips-wrs-linux-gnu-
endif

ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
CROSS_COMPILE = 
endif

ifeq ($(PLATFORM),INTELP6)
LINUX_SRC = /tftpboot/IntelCE-20.0.11052.243193/project_build_i686/IntelCE/kernel-20.0.11024.238456/linux-2.6.35
CROSS_COMPILE = /tftpboot/IntelCE-20.0.11052.243193/build_i686/i686-linux-elf/bin/i686-cm-linux-
endif

ifeq ($(PLATFORM),IXP)
LINUX_SRC = /project/stable/Gmtek/snapgear-uclibc/linux-2.6.x
CROSS_COMPILE = arm-linux-
endif

ifeq ($(PLATFORM),INF_TWINPASS)
# Linux 2.6
#LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
LINUX_SRC = /project/stable/twinpass/release/2.0.1/source/kernel/opensource/linux-2.4.31/
CROSS_COMPILE = mips-linux-
endif

ifeq ($(PLATFORM),INF_DANUBE)
LINUX_SRC = /opt/danube/sdk/linux-2.6.16.x
CROSS_COMPILE = mips-linux-
ROOTDIR = /opt/danube/sdk
export ROOTDIR
endif

ifeq ($(PLATFORM),INF_AR9)
LINUX_SRC = /root/ar9/xR9_BSP1.2.2.0/source/kernel/opensource/linux-2.6.20/
CROSS_COMPILE = /root/ar9/ifx-lxdb26-1.0.2/gcc-3.4.4/toolchain-mips/bin/
endif

ifeq ($(PLATFORM),INF_VR9)
LINUX_SRC = /home/public/lantiq/VR9/UGW-4.2/build_dir/linux-ifxcpe_platform_vr9/linux-2.6.20.19
CROSS_COMPILE = /home/public/lantiq/VR9/UGW-4.2/staging_dir/toolchain-mips_gcc-3.4.6_uClibc-0.9.29/bin/mips-linux-
endif

ifeq ($(PLATFORM),BRCM_6358)
LINUX_SRC = 
CROSS_COMPILE = 
endif

ifeq ($(PLATFORM),INF_AMAZON_SE)
# Linux 2.6
#LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
LINUX_SRC = /backup/ifx/3.6.2.2/source/kernel/opensource/linux-2.4.31
#CROSS_COMPILE = mips-linux-
#LINUX_SRC = /project/Infineon/3.6.2.2/source/kernel/opensource/linux-2.4.31
CROSS_COMPILE = /opt/uclibc-toolchain/ifx-lxdb-1-2-3-external/gcc-3.3.6/toolchain-mips/R0208V35/mips-linux-uclibc/bin/
endif

ifeq ($(PLATFORM),ST)
LINUX_SRC = /opt/STM/STLinux-2.2/devkit/sources/kernel/linux0039
CROSS_COMPILE = /opt/STM/STLinux-2.2/devkit/sh4/bin/sh4-linux-
ARCH := sh
export ARCH
endif

ifeq ($(PLATFORM),CAVM_OCTEON)
OCTEON_ROOT = /usr/local/Cavium_Networks/OCTEON-SDK
LINUX_SRC = $(OCTEON_ROOT)/linux/kernel_2.6/linux
CROSS_COMPILE = mips64-octeon-linux-gnu-
endif

ifeq ($(PLATFORM),CMPC)
LINUX_SRC = /opt/fvt_11N_SDK_0807/fvt131x_SDK_11n/linux-2.6.17
CROSS_COMPILE =
endif

ifeq ($(PLATFORM),SMDK)
LINUX_SRC = /home/bhushan/itcenter/may28/linux-2.6-samsung
CROSS_COMPILE = /usr/local/arm/4.2.2-eabi/usr/bin/arm-linux-
endif

ifeq ($(PLATFORM),RALINK_3352)
LINUX_SRC = /home/sample/3352/RT288x_SDK/source/linux-2.6.21.x
CROSS_COMPILE = /opt/buildroot-gcc342/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),KODAK_DC)
SKD_SRC = C:/SigmaTel/DC1250_SDK_v1-9/sdk
CROSS_COMPILE = $(cc)
endif

ifeq ($(PLATFORM),DM6446)
LINUX_SRC = /home/fonchi/work/soc/ti-davinci
endif

ifeq ($(PLATFORM),MT85XX)
LINUX_SRC = /home/john/MTK/BDP_Linux/linux-2.6.27
CROSS_COMPILE = armv6z-mediatek-linux-gnueabi-
endif

ifeq ($(PLATFORM),NXP_TV550) 
LINUX_SRC = /data/tv550/kernel/linux-2.6.28.9
LINUX_SRC_MODULE = /data/tv550/kernel/linux-2.6.28.9/drivers/net/wireless
CROSS_COMPILE = /opt/embeddedalley/nxp_tv550/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),MVL5)
LINUX_SRC = /home2/charlestu/AP-VT3426/linux-2.6.18
CROSS_COMPILE = /opt/montavista/pro/devkit/arm/v5t_le_mvl5/bin/arm_v5t_le-
endif

export OSABL RT28xx_DIR RT28xx_MODE LINUX_SRC CROSS_COMPILE CROSS_COMPILE_INCLUDE PLATFORM RELEASE CHIPSET MODULE RTMP_SRC_DIR LINUX_SRC_MODULE TARGET HAS_WOW_SUPPORT

# The targets that may be used.
PHONY += all build_tools test UCOS THREADX LINUX release prerelease clean uninstall install libwapi osabl

ifeq ($(TARGET),LINUX)
all: build_tools $(TARGET)
else
all: $(TARGET)
endif 



build_tools:
    $(MAKE) -C tools
    $(RT28xx_DIR)/tools/bin2h

test:
    $(MAKE) -C tools test

UCOS:
    $(MAKE) -C os/ucos/ MODE=$(RT28xx_MODE)
    echo $(RT28xx_MODE)

ECOS:
    $(MAKE) -C os/ecos/ MODE=$(RT28xx_MODE)
    cp -f os/ecos/$(MODULE) $(MODULE)

THREADX:
    $(MAKE) -C $(RT28xx_DIR)/os/Threadx -f $(RT28xx_DIR)/os/ThreadX/Makefile

LINUX:
ifneq (,$(findstring 2.4,$(LINUX_SRC)))

ifeq ($(OSABL),YES)
    cp -f os/linux/Makefile.4.util $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(RT28xx_DIR)/os/linux/
endif

    cp -f os/linux/Makefile.4 $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(RT28xx_DIR)/os/linux/

ifeq ($(OSABL),YES)
    cp -f os/linux/Makefile.4.netif $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(RT28xx_DIR)/os/linux/
endif

ifeq ($(RT28xx_MODE),AP)
    cp -f $(RT28xx_DIR)/os/linux/rt$(MODULE)ap.o /tftpboot
ifeq ($(OSABL),YES)
    cp -f $(RT28xx_DIR)/os/linux/rtutil$(MODULE)ap.o /tftpboot
    cp -f $(RT28xx_DIR)/os/linux/rtnet$(MODULE)ap.o /tftpboot
endif
ifeq ($(PLATFORM),INF_AMAZON_SE)
    cp -f /tftpboot/rt2870ap.o /backup/ifx/build/root_filesystem/lib/modules/2.4.31-Amazon_SE-3.6.2.2-R0416_Ralink/kernel/drivers/net
endif
else    
ifeq ($(RT28xx_MODE),APSTA)
    cp -f $(RT28xx_DIR)/os/linux/rt$(MODULE)apsta.o /tftpboot
ifeq ($(OSABL),YES)
    cp -f $(RT28xx_DIR)/os/linux/rtutil$(MODULE)apsta.o /tftpboot
    cp -f $(RT28xx_DIR)/os/linux/rtnet$(MODULE)apsta.o /tftpboot
endif
else
    cp -f $(RT28xx_DIR)/os/linux/rt$(MODULE)sta.o /tftpboot
ifeq ($(OSABL),YES)
    cp -f $(RT28xx_DIR)/os/linux/rtutil$(MODULE)sta.o /tftpboot
    cp -f $(RT28xx_DIR)/os/linux/rtnet$(MODULE)sta.o /tftpboot
endif
endif   
endif   
else

ifeq ($(OSABL),YES)
    cp -f os/linux/Makefile.6.util $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif

    cp -f os/linux/Makefile.6 $(RT28xx_DIR)/os/linux/Makefile
ifeq ($(PLATFORM),DM6446)
    $(MAKE)  ARCH=arm CROSS_COMPILE=arm_v5t_le- -C  $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
else
ifeq ($(PLATFORM),FREESCALE8377)
    $(MAKE) ARCH=powerpc CROSS_COMPILE=$(CROSS_COMPILE) -C  $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
else
    $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif
endif

ifeq ($(OSABL),YES)
    cp -f os/linux/Makefile.6.netif $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif

ifeq ($(RT28xx_MODE),AP)
    cp -f $(RT28xx_DIR)/os/linux/rt$(MODULE)ap.ko /tftpboot
ifeq ($(OSABL),YES)
    cp -f $(RT28xx_DIR)/os/linux/rtutil$(MODULE)ap.ko /tftpboot
    cp -f $(RT28xx_DIR)/os/linux/rtnet$(MODULE)ap.ko /tftpboot
endif
    rm -f os/linux/rt$(MODULE)ap.ko.lzma
    /root/bin/lzma e os/linux/rt$(MODULE)ap.ko os/linux/rt$(MODULE)ap.ko.lzma
else    
ifeq ($(RT28xx_MODE),APSTA)
    cp -f $(RT28xx_DIR)/os/linux/rt$(MODULE)apsta.ko /tftpboot
ifeq ($(OSABL),YES)
    cp -f $(RT28xx_DIR)/os/linux/rtutil$(MODULE)apsta.ko /tftpboot
    cp -f $(RT28xx_DIR)/os/linux/rtnet$(MODULE)apsta.ko /tftpboot
endif
else
    cp -f $(RT28xx_DIR)/os/linux/rt$(MODULE)sta.ko /tftpboot
ifeq ($(OSABL),YES)
    cp -f $(RT28xx_DIR)/os/linux/rtutil$(MODULE)sta.ko /tftpboot
    cp -f $(RT28xx_DIR)/os/linux/rtnet$(MODULE)sta.ko /tftpboot
endif
endif
endif
endif


release: build_tools
    $(MAKE) -C $(RT28xx_DIR)/striptool -f Makefile.release clean
    $(MAKE) -C $(RT28xx_DIR)/striptool -f Makefile.release
    striptool/striptool.out
ifeq ($(RELEASE), DPO)
    gcc -o striptool/banner striptool/banner.c
    ./striptool/banner -b striptool/copyright.gpl -s DPO/ -d DPO_GPL -R
    ./striptool/banner -b striptool/copyright.frm -s DPO_GPL/include/firmware.h
endif

prerelease:
ifeq ($(MODULE), 2880)
    $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.release.2880 prerelease
else
    $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.release prerelease
endif
    cp $(RT28xx_DIR)/os/linux/Makefile.DPB $(RTMP_SRC_DIR)/os/linux/.
    cp $(RT28xx_DIR)/os/linux/Makefile.DPA $(RTMP_SRC_DIR)/os/linux/.
    cp $(RT28xx_DIR)/os/linux/Makefile.DPC $(RTMP_SRC_DIR)/os/linux/.
ifeq ($(RT28xx_MODE),STA)
    cp $(RT28xx_DIR)/os/linux/Makefile.DPD $(RTMP_SRC_DIR)/os/linux/.
    cp $(RT28xx_DIR)/os/linux/Makefile.DPO $(RTMP_SRC_DIR)/os/linux/.
endif   

clean:
ifeq ($(TARGET), LINUX)
    cp -f os/linux/Makefile.clean os/linux/Makefile
    $(MAKE) -C os/linux clean
    rm -rf os/linux/Makefile
endif   
ifeq ($(TARGET), UCOS)
    $(MAKE) -C os/ucos clean MODE=$(RT28xx_MODE)
endif
ifeq ($(TARGET), ECOS)
    $(MAKE) -C os/ecos clean MODE=$(RT28xx_MODE)
endif

uninstall:
ifeq ($(TARGET), LINUX)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
    $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.4 uninstall
else
    $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.6 uninstall
endif
endif

install:
ifeq ($(TARGET), LINUX)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
    $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.4 install
else
    $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.6 install
endif
endif

libwapi:
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
    cp -f os/linux/Makefile.libwapi.4 $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(RT28xx_DIR)/os/linux/
else
    cp -f os/linux/Makefile.libwapi.6 $(RT28xx_DIR)/os/linux/Makefile   
    $(MAKE) -C  $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules 
endif   

osutil:
ifeq ($(OSABL),YES)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
    cp -f os/linux/Makefile.4.util $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(RT28xx_DIR)/os/linux/
else
    cp -f os/linux/Makefile.6.util $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif
endif

osnet:
ifeq ($(OSABL),YES)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
    cp -f os/linux/Makefile.4.netif $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(RT28xx_DIR)/os/linux/
else
    cp -f os/linux/Makefile.6.netif $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif
endif

osdrv:
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
    cp -f os/linux/Makefile.4 $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(RT28xx_DIR)/os/linux/
else
    cp -f os/linux/Makefile.6 $(RT28xx_DIR)/os/linux/Makefile
    $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif

# Declare the contents of the .PHONY variable as phony.  We keep that information in a variable
.PHONY: $(PHONY)

Darkenis065

Posts: 2
Joined: 2022-10-31 01:41
Has thanked: 2 times

[Software] Make error 2 (too many arguments)

#1

Post

by Darkenis065 » 2022-10-31 02:41

Hello, im trying to install ndiswrapper on Debian 11 and i have this error when i try to do make.

Code: Select all

make -C utils
make[1]: se entra en el directorio '/home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/utils'
make[1]: No se hace nada para 'all'.
make[1]: se sale del directorio '/home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/utils'
make -C driver
make[1]: se entra en el directorio '/home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver'
make -C /usr/src/linux-headers-5.10.0-19-amd64 M=/home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver
make[2]: se entra en el directorio '/usr/src/linux-headers-5.10.0-19-amd64'
  CC [M]  /home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver/loader.o
/home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver/loader.c: In function ‘load_sys_files’:
/home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver/loader.c:157:4: error: too many arguments to function ‘__vmalloc’
  157 |    __vmalloc(load_driver->sys_files[i].size,
      |    ^~~~~~~~~
In file included from /usr/src/linux-headers-5.10.0-19-common/include/asm-generic/io.h:911,
                 from /usr/src/linux-headers-5.10.0-19-common/arch/x86/include/asm/io.h:375,
                 from /usr/src/linux-headers-5.10.0-19-common/include/linux/scatterlist.h:9,
                 from /usr/src/linux-headers-5.10.0-19-common/include/linux/dma-mapping.h:10,
                 from /usr/src/linux-headers-5.10.0-19-common/include/linux/skbuff.h:31,
                 from /usr/src/linux-headers-5.10.0-19-common/include/linux/if_ether.h:19,
                 from /usr/src/linux-headers-5.10.0-19-common/include/uapi/linux/ethtool.h:19,
                 from /usr/src/linux-headers-5.10.0-19-common/include/linux/ethtool.h:18,
                 from /usr/src/linux-headers-5.10.0-19-common/include/linux/netdevice.h:37,
                 from /home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver/ntoskernel.h:25,
                 from /home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver/ndis.h:19,
                 from /home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver/loader.c:16:
/usr/src/linux-headers-5.10.0-19-common/include/linux/vmalloc.h:107:14: note: declared here
  107 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
      |              ^~~~~~~~~
make[4]: *** [/usr/src/linux-headers-5.10.0-19-common/scripts/Makefile.build:291: /home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver/loader.o] Error 1
make[3]: *** [/usr/src/linux-headers-5.10.0-19-common/Makefile:1856: /home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver] Error 2
make[2]: *** [/usr/src/linux-headers-5.10.0-19-common/Makefile:185: __sub-make] Error 2
make[2]: se sale del directorio '/usr/src/linux-headers-5.10.0-19-amd64'
make[1]: *** [Makefile:183: modules] Error 2
make[1]: se sale del directorio '/home/darkenis065/Descargas/NdisWrapper/ndiswrapper-1.63/driver'
make: *** [Makefile:23: driver] Error 2

my kernel is 5.10.0-19-amd64, if someone can give me a hand with this i will be very grateful.
have a nice day.





I’m pretty green at this, but I’ve been on Linux a couple of years so help and patience would be really appreciated.

I’m trying to build Qzed’s kernel on Debian testing as per the instructions, but I keep getting a [debian/rules:6: build] Error 2. No errors applying the patches or anything.

When I ran make -j getconf _NPROCESSORS_ONLN deb-pkg LOCALVERSION=-linux-surface for the first time it asked me dozens of questions about what support to include, so I tried generating the .config file using make ARCH=x86_64 defconfig and then make menuconfig. In both cases compiling seemed to finish and give me .debs which installed, but after loading the installed kernels with grub, the screen went blank.

If anyone could point me in the right direction I’d be grateful.

git checkout v5.3.6
cd linux-stable/
for i in ~/linux-surface/patches/5.3/*.patch; do patch -p1 < $i; done
cp ~/linux-surface/configs/5.1/config .config
make -j getconf _NPROCESSORS_ONLN deb-pkg LOCALVERSION=-linux-surface

AR drivers/net/built-in.a
AR drivers/built-in.a
make[2]: *** [debian/rules:6: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make[1]: *** [scripts/package/Makefile:75: deb-pkg] Error 2
make: *** [Makefile:1451: deb-pkg] Error 2

  • Печать

Страницы: [1]   Вниз

Тема: ошибка Make — Error 2  (Прочитано 16875 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
perlito

Добро всем!
Люди добрые случаем никто не знает что за ошыбка make Error 2?

я столкнулся с ней при использовании PAR  архиватора(Perl)

make catalyst_par
cp lib/BookStore/Model/DB.pm blib/lib/BookStore/Model/DB.pm
cp lib/BookStore/Schema/Result/UserRole.pm blib/lib/BookStore/Schema/Result/UserRole.pm
cp lib/BookStore/Schema/Result/BookAuthor.pm blib/lib/BookStore/Schema/Result/BookAuthor.pm
cp lib/BookStore/Controller/Root.pm blib/lib/BookStore/Controller/Root.pm
cp lib/BookStore/View/HTML.pm blib/lib/BookStore/View/HTML.pm
cp lib/BookStore/Schema/Result/Author.pm blib/lib/BookStore/Schema/Result/Author.pm
cp lib/BookStore/Schema/Result/User.pm blib/lib/BookStore/Schema/Result/User.pm
cp lib/BookStore.pm blib/lib/BookStore.pm
cp lib/BookStore/Schema/Result/Role.pm blib/lib/BookStore/Schema/Result/Role.pm
cp lib/BookStore/Controller/Logout.pm blib/lib/BookStore/Controller/Logout.pm
cp lib/BookStore/Controller/Login.pm blib/lib/BookStore/Controller/Login.pm
cp lib/BookStore/Schema.pm blib/lib/BookStore/Schema.pm
cp lib/BookStore/Schema/Result/Book.pm blib/lib/BookStore/Schema/Result/Book.pm
cp lib/BookStore/Controller/Books.pm blib/lib/BookStore/Controller/Books.pm
cp script/bookstore_test.pl blib/script/bookstore_test.pl
/usr/bin/perl «-Iinc» -MExtUtils::MY -e ‘MY->fixin(shift)’ — blib/script/bookstore_test.pl
cp script/bookstore_cgi.pl blib/script/bookstore_cgi.pl
/usr/bin/perl «-Iinc» -MExtUtils::MY -e ‘MY->fixin(shift)’ — blib/script/bookstore_cgi.pl
cp script/bookstore_server.pl blib/script/bookstore_server.pl
/usr/bin/perl «-Iinc» -MExtUtils::MY -e ‘MY->fixin(shift)’ — blib/script/bookstore_server.pl
cp script/bookstore_fastcgi.pl blib/script/bookstore_fastcgi.pl
/usr/bin/perl «-Iinc» -MExtUtils::MY -e ‘MY->fixin(shift)’ — blib/script/bookstore_fastcgi.pl
cp script/bookstore_create.pl blib/script/bookstore_create.pl
/usr/bin/perl «-Iinc» -MExtUtils::MY -e ‘MY->fixin(shift)’ — blib/script/bookstore_create.pl
Manifying blib/man1/bookstore_test.pl.1p
Manifying blib/man1/bookstore_cgi.pl.1p
Manifying blib/man1/bookstore_server.pl.1p
Manifying blib/man1/bookstore_fastcgi.pl.1p
Manifying blib/man1/bookstore_create.pl.1p
Manifying blib/man3/BookStore::Model::DB.3pm
Manifying blib/man3/BookStore::Schema::Result::BookAuthor.3pm
Manifying blib/man3/BookStore::Schema::Result::UserRole.3pm
Manifying blib/man3/BookStore::Controller::Root.3pm
Manifying blib/man3/BookStore::Schema::Result::Author.3pm
Manifying blib/man3/BookStore::Schema::Result::User.3pm
Manifying blib/man3/BookStore::Schema::Result::Role.3pm
Manifying blib/man3/BookStore.3pm
Manifying blib/man3/BookStore::Controller::Logout.3pm
Manifying blib/man3/BookStore::Schema::Result::Book.3pm
Manifying blib/man3/BookStore::Controller::Login.3pm
Manifying blib/man3/BookStore::Controller::Books.3pm
include /home/tigran/Documents/Development/perl/BookStore/inc/Module/Install.pm
Writing PAR «bookstore.par»
make: *** [catalyst_par] Error 2

« Последнее редактирование: 18 Июня 2012, 14:36:35 от tiko.svyazist »

perlito.ru -> о perl на русском


Оффлайн
Yurror


Оффлайн
perlito

:idiot2: Ну раз обратился сюда значит google не помог

perlito.ru -> о perl на русском


Оффлайн
лесной_зонтик

Извиняюсь, а при чем тут архиватор?

Моя мечта поставить на комп Linux, Unix, *BSD, Mac OS X, OpenSolaris, OS/2, Windows.
Не спрашивайте зачем. Сам не знаю ???


Оффлайн
perlito

ну собственно выдается make: *** [catalyst_par] Error 2
вот я и подумал может make притом, али нет?, может PAR или PAR::Packer? может знает кто?

perlito.ru -> о perl на русском


Оффлайн
Olej

ну собственно выдается make: *** [catalyst_par] Error 2
вот я и подумал может make притом, али нет?, может PAR или PAR::Packer? может знает кто?

/usr/include/asm-generic/errno-base.h

#define ENOENT           2      /* No such file or directory */


Оффлайн
perlito

Что то я не понял, по подробней можно, а то я в Ubuntu новичок

perlito.ru -> о perl на русском


Оффлайн
Olej

по подробней можно

не можно ;)

коды ошибок в Linux фиксированы, их определения находятся в файле, который я показал (и ещё парочка рядом для более экзотических ошибок), ваш код: «нет такого файла или каталога».

а почему нет и какого фала в сценарии Makefile — это вам разбираться.
потому и «не можно» ;)


Оффлайн
perlito

perlito.ru -> о perl на русском


Оффлайн
Yurror

tiko.svyazist, ты бы отрыл что-нибудь еще более экзотическое и просил чтобы за тебя разобрались
Естественно всем влом что-то искать качать ставить разбираться
А жи-ши это так просто

задавай более конкретные вопросы. или просто найди человека который тебе это установит


Оффлайн
Чистый

Удалил сообщения не касающиеся темы, помните что не для всех пользователей форума русский язык является родным! Проявите уважения!

Тестовый репозиторий kdeNeur ppa:devcode/kdeneur
各々が死ぬことをどのように決定する


Оффлайн
perlito

perlito.ru -> о perl на русском


  • Печать

Страницы: [1]   Вверх

Trying to Build and Install the Apache Thrift compiler and libraries —

./configure && make

But then I get make error which I don’t seem to understand where it fails…

thrift 0.9.3

Building C++ Library ......... : no
Building C (GLib) Library .... : no
Building Java Library ........ : no
Building C# Library .......... : no
Building Python Library ...... : no
Building Ruby Library ........ : no
Building Haxe Library ........ : no
Building Haskell Library ..... : no
Building Perl Library ........ : no
Building PHP Library ......... : no
Building Erlang Library ...... : no
Building Go Library .......... : no
Building D Library ........... : no
Building NodeJS Library ...... : no
Building Lua Library ......... : no

If something is missing that you think should be present,
please skim the output of configure to find the missing
component.  Details are present in config.log.
make  all-recursive
make[1]: Entering directory '/c/University/InternetOfThings/thrift-0.9.3'
Making all in compiler/cpp
make[2]: Entering directory '/c/University/InternetOfThings/thrift-0.9.3/compile                                                                                                                                                 r/cpp'
make  all-am
make[3]: Entering directory '/c/University/InternetOfThings/thrift-0.9.3/compile                                                                                                                                                 r/cpp'
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift  -I./src  -Wall -Wno-                                                                                                                                                 sign-compare -Wno-unused -g -O2 -std=c++11 -MT src/libparse_a-thrifty.o -MD -MP                                                                                                                                                  -MF src/.deps/libparse_a-thrifty.Tpo -c -o src/libparse_a-thrifty.o `test -f 'sr                                                                                                                                                 c/thrifty.cc' || echo './'`src/thrifty.cc
src/thrifty.yy: In function 'int yyparse()':
src/thrifty.yy:1309:30: error: 'strdup' was not declared in this scope
Makefile:912: recipe for target 'src/libparse_a-thrifty.o' failed
make[3]: *** [src/libparse_a-thrifty.o] Error 1
make[3]: Leaving directory '/c/University/InternetOfThings/thrift-0.9.3/compiler                                                                                                                                                 /cpp'
Makefile:588: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/c/University/InternetOfThings/thrift-0.9.3/compiler                                                                                                                                                 /cpp'
Makefile:609: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/c/University/InternetOfThings/thrift-0.9.3'
Makefile:530: recipe for target 'all' failed
make: *** [all] Error 2

Help will be appreciated. Thanks in advance!

asked Nov 23, 2016 at 12:57

Tony Tannous's user avatar

1

This is the relevant error:

src/thrifty.yy: In function 'int yyparse()':
src/thrifty.yy:1309:30: error: 'strdup' was not declared in this scope

Probably an include is missing. You may try to add

 #include <string.h>

to the top of the file src/thrifty.yy

And report the bug to the http://incubator.apache.org/projects/thrift.html

answered Nov 23, 2016 at 13:03

rudimeier's user avatar

rudimeierrudimeier

9,6392 gold badges33 silver badges44 bronze badges

2

Не собирается пакет

Модераторы: Warderer, Модераторы разделов

bluesman

Сообщения: 2137
Статус: Блюзмен
ОС: Ubuntu 9.10

Не собирается пакет

Пробую собрать .deb пакет
После ввода команды

идет сборка но в конце логов выдает вот такое:

Код: Выделить всё

make[1]: *** [config.status] Ошибка 2
make[1]: Leaving directory `~/src/kosd/0.2.3/kosd-0.2.3'
make: *** [clean] Ошибка 2
dpkg-buildpackage: сбой: fakeroot debian/rules clean возвратил код ошибки 2

В результате .deb пакет не собирается
Собираю вот эту программу — тыц

KernelPanic

Бывший модератор
Сообщения: 2060
Статус: Brain Атаке
ОС: Debian squeeze/sid/exp

bluesman

Сообщения: 2137
Статус: Блюзмен
ОС: Ubuntu 9.10

Re: Не собирается пакет

Сообщение

bluesman » 16.02.2009 14:28

Решено: перед сборкой в пакет, нужно еще до команд

выполнить команду

Тоесть последовательность такая:

А потом уже:

Только вот мне не понятно, для чего нужна команда make -f Makefile.cvs и не знаю правильно ли я все сделал, несмотря на то что пакет собрался. Жду мнения коллег. :)

KernelPanic

Бывший модератор
Сообщения: 2060
Статус: Brain Атаке
ОС: Debian squeeze/sid/exp

Re: Не собирается пакет

Сообщение

KernelPanic » 16.02.2009 14:44

Скачал исходники. Чего-то не пойму, каким образом Вы применяете dpkg-buildpackage над обычными исходниками и для чего?
Последовательность действий описана на самой странице проекта и имеет вид:

Код: Выделить всё

make -f Makefile.cvs
./configure
make
make install (as root)

bluesman

Сообщения: 2137
Статус: Блюзмен
ОС: Ubuntu 9.10

Re: Не собирается пакет

Сообщение

bluesman » 16.02.2009 17:15

KernelPanic
Нет, после

нужно деабинизировать с помощью dh_make

ЗЫ, извиняюсь, думал что указал ссылку на хау-ту, по которому собирал, вот оно — тыц
Вообщем делал все как в хау-ту, только там строчка есть:

Далее конфигурируем, делаем как обычно ./configure –prefix=/usr && make

Вместо этого я конфигурировал вот так:

bluesman

Сообщения: 2137
Статус: Блюзмен
ОС: Ubuntu 9.10

Re: Не собирается пакет

Сообщение

bluesman » 16.02.2009 17:21

KernelPanic
Да я просто хотел в первом посте дать ссылку на инструкцию по сборке, но забыл, и все это время думал что ссылка там есть. Сам запутался :)
Получается что правильно собрал? Кстати, как вам программка? Мне понравилась, как в гноме показывает громкость при изменении.

I believe the file is too old to compile on Ubuntu 14.04. It won’t compile on my system either. I notice that there are a number of files in your package named rtsx.something. There are several drivers called rtsx built in:

/lib/modules/3.13.0-32-generic/kernel/drivers/memstick/host/rtsx_pci_ms.ko
/lib/modules/3.13.0-32-generic/kernel/drivers/mfd/rtsx_pci.ko
/lib/modules/3.13.0-32-generic/kernel/drivers/mmc/host/rtsx_pci_sdmmc.ko

Are you certain that the driver you need isn’t already present? What does this tell us about the device?

lspci -nn

I suggest you try:

sudo apt-get install git
git clone https://github.com/mcfloundinho/rts5229.git
cd rts5229
make clean
make
sudo make install
sudo depmod -a
sudo modprobe rts5229

It makes with one warning but no errors on my system.

Please edit /etc/modprobe.d/blacklist.conf to change this line:

#Wireless drivers conflicting with rt3562sta

To this, with a space:

# Wireless drivers conflicting with rt3562sta

Proofread, save and close the text editor.

You have compiled the driver for your currently running kernel only. When Update Manager installs a newer linux-image, after the requested reboot, re-compile:

cd rts5229
make clean
make
sudo make install
sudo depmod -a
sudo modprobe rts5229

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Debian exec format error
  • Debian error unknown filesystem grub rescue
  • Debian error read only file system
  • Debian debootstrap error
  • Debian authentication token manipulation error

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии