LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   make: *** No rule to make target 'install'. Stop. (https://www.linuxquestions.org/questions/slackware-installation-40/make-%2A%2A%2A-no-rule-to-make-target-install-stop-764096/)

sudo_homeboy 10-24-2009 12:52 AM

make: *** No rule to make target 'install'. Stop.
 
hi there!
I am a slackware newbie (using version 12) and am trying to install from the igb-1.3.28.4.tar.gz and configure the network card. (netconfig refuses to detect :(

After extraction, when i run the "make install", the below error shows up:
make: *** No rule to make target 'install'. Stop.

I changed to the /src folder and executed "make install" again to see:
Makefile 69: *** Linux Kernel source not found in any of these locations:
Makefile 70:
Makefile 71: *** Install the appropriate kernel development package, e.g.
Makefile 72: *** kernel-devel, for building kernel modules and try again. Stop.



Here's the snippet from "/src/Makefile" which has ref' to the lines 69 through 72.

Is my linux installation incomplete/broken, due to which Make Install is unable to find the required kernel modules? If yes, how do i fix it. I am unable to see the USB Stick or CD Rom contents under the /mnt & /media folders.


DRIVER_NAME=igb
###########################################################################
# Environment tests

# Kernel Search Path
# All the places we look for kernel source
KSP := /lib/modules/$(BUILD_KERNEL)/build \
/lib/modules/$(BUILD_KERNEL)/source \
/usr/src/linux-$(BUILD_KERNEL) \
/usr/src/linux-$($(BUILD_KERNEL) | sed 's/-.*//') \
/usr/src/kernel-headers-$(BUILD_KERNEL) \
/usr/src/kernel-source-$(BUILD_KERNEL) \
/usr/src/linux-$($(BUILD_KERNEL) | sed 's/\([0-9]*\.[0-9]*\)\..*/\1/') \
/usr/src/linux

# prune the list down to only values that exist
# and have an include/linux sub-directory
test_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))
KSP := $(foreach dir, $(KSP), $(test_dir))

# we will use this first valid entry in the search path
ifeq (,$(KSRC))
KSRC := $(firstword $(KSP))
endif

ifeq (,$(KSRC))
$(warning *** Linux kernel source not found in any of these locations:)
$(warning $(KSP))
$(warning *** Install the appropriate kernel development package, e.g.)
$(error kernel-devel, for building kernel modules and try again)
else
ifeq (/lib/modules/$(shell uname -r)/source, $(KSRC))
KOBJ := /lib/modules/$(shell uname -r)/build
else
KOBJ := $(KSRC)
endif
endif


Thanks

----
p.s - I also have all the installables (extracted from the DVD) in /home/DVD-Sources, if I need to re-install any libs/sources

dracuss 10-24-2009 03:56 AM

As much as I understand, you must get the linux-headers and linux-source packages. and afterwards configure the linux-source package. I don't know anything about Slackware's package manager, here is how to configure linux-source (suppose it is extracted in /usr/src/linux):
Code:

cd /usr/src/linux
zcat /proc/config.gz>>./.config
make menuconfig


knudfl 10-24-2009 04:19 AM

*
Slackware 12 , disk 2 , slackware/k/kernel-source-2.6.27.7_smp-noarch-1.tgz

.. or ..
ftp://ftp.heanet.ie/mirrors/ftp.slac...0/slackware/k/

ftp://ftp.heanet.ie/mirrors/ftp.slac...p-noarch-2.tgz

MQMan 10-24-2009 01:58 PM

Quote:

Originally Posted by dracuss (Post 3730691)
As much as I understand, you must get the linux-headers and linux-source packages. and afterwards configure the linux-source package.

There is no reason to "configure" the source package, unless you are going to compile the kernel.

Just install the kernel source and kernel headers packages.

Cheers.

onebuck 10-25-2009 09:10 AM

Hi,

Welcome to LQ!

Quote:

Originally Posted by homeboy@sdf.lonestar.org (Post 3730580)
hi there!
I am a slackware newbie (using version 12) and am trying to install from the igb-1.3.28.4.tar.gz and configure the network card. (netconfig refuses to detect :(

First, 'netconfig' does not detect the device. Just provides your network configuration for selected device. Your kernel detects the device during the initialization.

Quote:

Originally Posted by homeboy@sdf.lonestar.org (Post 3730580)
After extraction, when i run the "make install", the below error shows up:
make: *** No rule to make target 'install'. Stop.

I changed to the /src folder and executed "make install" again to see:
Makefile 69: *** Linux Kernel source not found in any of these locations:
Makefile 70:
Makefile 71: *** Install the appropriate kernel development package, e.g.
Makefile 72: *** kernel-devel, for building kernel modules and try again. Stop.

The errors you got state what is needed! If you had done a 'FULL' install as recommended for a 'Newbie' then you would not have this problem.

Quote:

Originally Posted by homeboy@sdf.lonestar.org (Post 3730580)
Here's the snippet from "/src/Makefile" which has ref' to the lines 69 through 72.

Is my linux installation incomplete/broken, due to which Make Install is unable to find the required kernel modules? If yes, how do i fix it. I am unable to see the USB Stick or CD Rom contents under the /mnt & /media folders.

Code:

DRIVER_NAME=igb
###########################################################################
# Environment tests

# Kernel Search Path
# All the places we look for kernel source
KSP :=  /lib/modules/$(BUILD_KERNEL)/build \
        /lib/modules/$(BUILD_KERNEL)/source \
        /usr/src/linux-$(BUILD_KERNEL) \
        /usr/src/linux-$($(BUILD_KERNEL) | sed 's/-.*//') \
        /usr/src/kernel-headers-$(BUILD_KERNEL) \
        /usr/src/kernel-source-$(BUILD_KERNEL) \
        /usr/src/linux-$($(BUILD_KERNEL) | sed 's/\([0-9]*\.[0-9]*\)\..*/\1/') \
        /usr/src/linux

# prune the list down to only values that exist
# and have an include/linux sub-directory
test_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))
KSP := $(foreach dir, $(KSP), $(test_dir))

# we will use this first valid entry in the search path
ifeq (,$(KSRC))
  KSRC := $(firstword $(KSP))
endif

ifeq (,$(KSRC))
  $(warning *** Linux kernel source not found in any of these locations:)
  $(warning $(KSP))
  $(warning *** Install the appropriate kernel development package, e.g.)
  $(error kernel-devel, for building kernel modules and try again)
else
ifeq (/lib/modules/$(shell uname -r)/source, $(KSRC))
  KOBJ :=  /lib/modules/$(shell uname -r)/build
else
  KOBJ :=  $(KSRC)
endif
endif

Thanks

----
p.s - I also have all the installables (extracted from the DVD) in /home/DVD-Sources, if I need to re-install any libs/sources

Please notice how I placed your long lists with the vbcode tag 'code' (# at the top of the replay window). It will make things cleaner therefore easier to read.

:hattip:


Just a few links to aid you;

SlackwareŽ Essentials
SlackwareŽ Basics
Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Advanced Bash-Scripting Guide
Virtualiation- Top 10

These links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

EDIT: 'homeboy@sdf.lonestar.org' can cause you to get a lot of unsolicited mail/problems. You may wish to contact 'jeremy' to change it.


All times are GMT -5. The time now is 08:42 AM.