Makefile in Linux error: *** No rule to make target `all'. Stop - linux

I'm installing Apache on my Linux server RedHat 6.4.
I follow the following guide: http://squirrelmail.org/docs/admin/admin-3.html
When executing the make file, i got the following error:
Making all in srclib
make[1]: Entering directory `/usr/local/src/httpd-2.4.20/srclib'
make[1]: *** No rule to make target `all'. Stop.
make[1]: Leaving directory `/usr/local/src/httpd-2.4.20/srclib'
make: *** [all-recursive] Error 1
Can you please suggest how I can proceed further?

SquirrelMail is in the epel.repo https://fedoraproject.org/wiki/EPEL
yum install epel-release-6-8.noarch.rpm
https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install squirrelmail

Im facing this recently and manage to solved it.. below is the solution i made.
go to srclib folder in httpd
create new file as "Makefile.in"
the content will be like this
BUILD_SUBDIRS = $(AP_BUILD_SRCLIB_DIRS)
CLEAN_SUBDIRS = $(AP_CLEAN_SRCLIB_DIRS)
include $(top_builddir)/build/rules.mk
and save it.
Now you can run make command in httpd folder

Related

'No rule to make target 'arch/arm/tools/syscall.tbl' when installing wifi modules on raspi

I have been trying to install these drivers for ALFA network's AWUS036NEH wifi adapter onto my raspberry pi but I get an error along the way where i run 'sudo make' and i receive the error:
make[1]: Entering directory '/usr/src/linux-headers-5.4.51-v7l+'
make[2]: *** No rule to make target 'arch/arm/tools/syscall.tbl', needed by 'arch/arm/include/generated/uapi/asm/united-common.h'. Stop.
make[1]: *** [arch/arm/Makefile:325:archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.51-v7l+'
make: *** [Makefile:389: LINUX] Error 2
I am very new to doing stuff on Linux so I tried troubleshooting to the best of my ability but I couldn't figure it out. Also, if there's more information that's needed to solve this that I didn't provide, I will be sure to provide upon request.

Compiling error - Kernel source for Raspberry Pi

I am trying to build a Linux kernel version rpi-4.14 for Raspberry Pi on Linux system.
The build is done with cross compiler arm-linux-gnueabihf with the configuration bcm2709_defconfig.
I'm running the command:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
But I get the following error:
arch/arm/boot/dts/overlays/midi-uart0-overlay.dts:4:39: fatal error: dt-bindings/clock/bcm2835.h: No such file or directory
compilation terminated.
scripts/Makefile.lib:328: recipe for target 'arch/arm/boot/dts/overlays/midi-uart0.dtbo' failed
make[2]: *** [arch/arm/boot/dts/overlays/midi-uart0.dtbo] Error 1
scripts/Makefile.build:587: recipe for target 'arch/arm/boot/dts/overlays' failed
make[1]: *** [arch/arm/boot/dts/overlays] Error 2
arch/arm/Makefile:350: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2
The file dt-bindings/clock/bcm2835.h is in place, so I do not really know what the problem is.
The error is telling you that there is a file missing.
arch/arm/boot/dts/overlays/midi-uart0-overlay.dts:4:39: fatal error: dt-bindings/clock/bcm2835.h: No such file or directory
Check if the directory exists, look for the file you need and change the directory in the Makefile.
In my case it was an erroneous symbolic link under arch/arm/boot/dts/include. The kernel sources have been packed/unpacked by 7z, maybe that was an issue.
Solved it via
ln -s ~/kernel-building/linux-raspberrypi-kernel_1.20170703-2/include/dt-bindings arch/arm/boot/dts/include/dt-bindings
Trying to link in relative to the current directory did not work.

getting error "make: *** No rule to make target `all'. Stop." while running this command "make all" during installing nagios host

Getting error:
make: *** No rule to make target all. Stop."
while running this command make all during installing nagios host
Possible common mistakes:
Be sure to name the file makefile and run the command in same directory.
Make sure that there is a target named all in the file with proper indentation. You can open with vim to see if there is an indentation issue.
An example makefile with target all could be like this:
all: a.c
gcc a.c
If you have trouble figuring out the issue, append your makefile along with the question to help others resolve it.

netCDF make command test?

I need to install netCDF and graDs in linux to be able to run another program ,
but I am not familiar with them , I have just configured and make them but I didn't get any message which contains : successfully make or sth like that.
output of Make :
make[3]: Entering directory `/home/nazanin/Downloads/netcdf-4.3.0/examples/C'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/nazanin/Downloads/netcdf-4.3.0/examples/C'
Making all in CDL
make[3]: Entering directory `/home/nazanin/Downloads/netcdf-4.3.0/examples/CDL'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/nazanin/Downloads/netcdf-4.3.0/examples/CDL'
make[3]: Entering directory `/home/nazanin/Downloads/netcdf-4.3.0/examples'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/nazanin/Downloads/netcdf-4.3.0/examples'
make[2]: Leaving directory `/home/nazanin/Downloads/netcdf-4.3.0/examples'
make[2]: Entering directory `/home/nazanin/Downloads/netcdf-4.3.0'
make[2]: Leaving directory `/home/nazanin/Downloads/netcdf-4.3.0'
make[1]: Leaving directory `/home/nazanin/Downloads/netcdf-4.3.0'
Does it mean that the "make" command worked properly,or there is sth wrong? and is there any "test" for it?
I am a very beginner in Ubuntu linux.
Thank you.
Its better for you to install netCDF and graDs by following commands :
sudo apt-get update
sudo apt-get install netcdf*
sudo apt-get install grads
Since you are compiling with autotools, you would typically use make check to run the tests. Please note that there is a known failure in the DAP tests for versions 4.3.0 through 4.3.1.1, related to a change in the Unidata netcdf test servers.
I will mention that netcdf 4.3.0 is fairly old. The latest stable release, v4.3.1.1 may be downloaded here:
http://github.com/Unidata/netcdf-c/releases
There is also a release candidate for the next release, v4.3.2 available, and a second release candidate should be available later today or tomorrow. There have been a number of bug fixes since 4.3.0 that you may be interested in :).
Yes your make work correctly.
To test, try make check.
To install, try make install.

Linux 3.13 Kernel Fails to Compile

After configuring various options inside .conf using
$make config
I try to compile the entire linux kernel using
$make
However it throws an error as below:
root#localbox:/LinuxKernel/linux-3.13# make
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
root#localbox:/LinuxKernel/linux-3.13#
I tried to search for .conf by using:
$find -name ".conf"
However it turns up no results. But since make config worked I assume .config must exist somewhere.
Please advise me on how to overcome this annoying problem. I am doing this for the first time and I am not sure if there are any dependencies that have to be installed before trying to compile the kernel. Your feedbacks are highly appreciated.
There must have been some error with make config, e.g. disk full or you aborted it with Ctrl-C. The .config file (not .conf) is right in the main directory.
The error message says it already
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
There are several textbased (config, oldconfig, menuconfig) and graphical (xconfig, gconfig) configuration programs. You might want to pick a graphical one and run it, e.g.
make gconfig
These graphical configurators also help to avoid all the hundreds of irrelevant questions. When you're done selecting the needed options, don't forget to save the .config file and try again compiling the kernel and modules.

Resources