Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [make]

make is a utility that automates the build process by managing dependencies amongst targets.

0
votes
1answer
35 views

Assigning comma separated lines to a variable

(Is it possible/How) to assign comma separated lines to a variable in make file? var1=name,name2, name3,name4..... For space separated I just have use \ like this var = name1 name2 \ name3 name4
2
votes
1answer
14 views

Could not find a suitable mpi compiler (mpicxx or mpic++) whlie using “$ make -f Makefile.shlib auto ”

As figure shows, I'm using Linux to install LIGGGHTS, when i type "make -f Makefile.shlib auto", it shows me [auto] Error 2, i tried to set USE_MPI to "OFF", but it did't work, my Question is, how do ...
1
vote
1answer
69 views

Why does my Makefile not compile and how can I fix it?

I have been having problems compiling a router's kernel for QEMU. I have the router working in QEMU using an OpenWRT kernel, but networking does not work. This is why I want to compile the original ...
3
votes
0answers
18 views

kernel 2.6.35.3 - how to convert .config to defconfig

If you have newer kernel (i.e. > 2.6.35.3) you can create a 'defconfig' from a '.config' by using make savedefconfig But in kernel 2.6.35.3 - does not provide you with 'savedefconfig' target. How ...
0
votes
1answer
23 views

Compiling vsftpd on CentOS7, getting “/usr/bin/ld: cannot find -lcap” error

I am in the process of compiling vsftpd, but keep getting this error: [alex@lab vsftpd-3.0.3]$ make gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o \ privsock.o tunables.o ftpdataio....
3
votes
1answer
24 views

Prevent completion of files for 'make' command in zsh shell

Context zsh shell, oh-my-zsh framework, no special zsh's configuration (same problem with or without zsh-completions): see .zshrc at the end. Trouble If a directory contains: a makefile with ...
0
votes
1answer
34 views

Alpine Linux - can't build libtorrent, missing linux/netlink.h

I'm trying to compile libtorrent on Alpine Linux. autogen and configure work fine but after invoking make it fails with the following message: local_addr.cc:45:10: fatal error: linux/netlink.h: No ...
1
vote
0answers
15 views

gcc 8.2.0 build fails on LFS v8.3

While building all packages in order every single one of them has succeeded but gcc 8.2.0 build fails. Below is the build error on executing make: msgfmt: error while loading shared libraries: ...
1
vote
1answer
49 views

Script or makefile to automate new user creation?

I'd like to have either a shell script or makefile to automate new user creation. I can't decide which of approach is better - a script or makefile? I have two types or users - both are SFTP chrooted,...
0
votes
1answer
46 views

Getting error while making dash wallet

I just run successfully run the commands ./autogen.sh ./configure Then I get some error while running make The errors is followings Making all in src make[1]: Entering directory '/home/myname/...
0
votes
0answers
80 views

I tried to use wireguard docker image,but I failed

I deleted all the datas in VPS,and reinstall a new Centos 7 and I downloaded the lastest stable kernel source code 4.20 and extracted it to the source directory which is /usr/src,then I builded it.the ...
1
vote
1answer
27 views

Tracking dependency loop in kernel/kconfig

I'd like to track a dependency loop in the linux kernel kconfig setup. When compiling with gcc-6.3 I can do the following without no issues: $ make ARCH=powerpc custom_defconfig $ make ARCH=powerpc ...
1
vote
1answer
164 views

#include pcap.h make fails for hcxtools

I'm running the latest version of Kali on a VirtualBox, and I cannot get hcxtools installed. More specifically, I can not figure out how to get the dependency pcap.h. Running make in /hcxtools ...
1
vote
1answer
33 views

ERROR: checking the archiver (false) interface… unknown

While I was installing pcre2-10.21 on Solars 10 (SunOS 5.10 Generic_147440-01 sun4u sparc SUNW,SPARC-Enterprise) the ./configure command led to the above error. checking the archiver (false) ...
0
votes
1answer
88 views

usr/bin/ld: cannot find -lCbc

I'm trying to use make, it returns these errors and simmilar ones : usr/bin/ld: cannot find -lCbc usr/bin/ld: cannot find -lCgl I have already found similar issues, and tried a great deal of them. ...
0
votes
0answers
22 views

Problem finding required libraries on ubuntu 16.04

I have used the following command sudo apt-get install coinor-cbc and get the following result coinor-cbc is already the newest version However, when I am building a package which require some non-...
0
votes
1answer
31 views

confused about lfs sources installation

I started to homemode Linux build using LFS book. I came to Part II. - Chapter 5 about "Constracting a Temporary System". I downloaded all needed sources to /mnt/lfs/sources. When i want to start ...
1
vote
0answers
25 views

How can I find the root cause of “WARNING: unmet direct dependencies detected for …”?

When configuring a kernel with make xxx_defconfig, I face WARNING: unmet direct dependencies detected for HOTPLUG. How do I know where the error is coming from Error WARNING: unmet direct ...
-1
votes
2answers
42 views

Grep command for string doesn't exits only in uncommented line

try2: set -vn set -o pipefail set -e if grep -v '^#' file.tx | grep -P 'name' file.tx; then \ echo " No name"; exit 0;\ echo " This message is print from file.tx" \ ...
2
votes
3answers
117 views

Grep string only in uncommented line

How can I grep the string which is only in uncommented line? I don't want the result to be included for string in commented line. For example: In file.tx My name is Jane #My name is Sara I want to ...
1
vote
2answers
248 views

sudo make install - what is being installed?

I have to run this cryptic block of code. git clone https://github.com/OpenICC/xcalib.git cd xcalib cmake CMakeLists.txt sudo make install The procedure I'm following mentions the uninstall process. ...
1
vote
2answers
42 views

Is it trivial to compile standard Intel Debian programs to Arm?

Is it trivial to compile standard Intel Debian programs to Arm? Am I simplifying this process? Take any of my favorite programs (R Studio, Sublime Text, Peek, etc.) Find the source code on GitHub or ...
0
votes
1answer
26 views

checkinstall equivalent of `make install -C build`

What is the equivalent of: sudo make install -C build for checkinstall? Is it enough to: cd build sudo checkinstall ?
0
votes
1answer
45 views

Installing tarball without Make?

I don't have internet access on my new Xenial VM, but I do have SFTP to a server which does. The issue is I need to install some packages. Getting them is fine, I just download them to my internet-...
0
votes
1answer
38 views

Can't access files from within makefile

Whenever I do for f in data/*; echo $f; done from a terminal, it correctly outputs every path. However, if I add the said line to a makefile, let's say test: for f in data/*; echo $f; done ...
1
vote
4answers
531 views

Argument list too long error with makefile

In a makefile, I have @echo "$(IGNORE_DIRS) $(CLEAN_FILES) $(CLEAN_DIRS) $(REALCLEAN_FILES)" | tr ' ' '\n' >> $@ The problem is that $(CLEAN_FILES) is quite large, so when I run make, I get ...
-1
votes
1answer
54 views

Makefile fails when trying to run a C program [closed]

I have a bunch of tasks in making a Makefile file, I have these files: https://raw.githubusercontent.com/systems-cs-pub-ro/uso/master/tema1/boo.c https://github.com/systems-cs-pub-ro/uso/raw/master/...
0
votes
2answers
33 views

Make And Configure Form Variations

I see some installation instructions that take the form of: ./configure make make install And others that take the form of: ./configure && make install Are there any differences in how ...
2
votes
1answer
59 views

debugging a statement in a Makefile on OpenBSD

It is not clear to me, where the error comes from, the Makefile code follows: platform_id = $$( uname -s ) platform = $$( \ case $(platform_id) in \ Linux | FreeBSD | OpenBSD | NetBSD ) ...
4
votes
2answers
477 views

Makefile and .ONESHELL

When .ONESHELL is not used Makefile executes each shell commands in a separate shell. What is the benefit of this? Why doesn't makefile uses the same shell?
0
votes
2answers
136 views

Why won't make let me build my kernel from source?

$ make menuconfig Makefile:128: *** main directory cannot contain spaces nor colons. Stop. I get this error message. Why?
0
votes
1answer
98 views

How to delete all directories inside a directory except for files, (safely)?

Environment System: Linux Mint 19 Cinnamon. Shell: Bash version 4.4.19(1). Problem Along with hundreds of testing scenarios, I must have created countless of temporary installation directories ...
1
vote
0answers
535 views

RHEL 6.8 installation of user specific python 3.7 completes with 'ModuleNotFoundError: No module named '_ctypes'

I do not have a subscription to the RHEL repos at this time. I am using EPEL for packages that are needed. Goal: I am attempting to setup multiple virtualenv folders for testing purposes. I have ...
2
votes
1answer
1k views

Makefile: Default Value of Variable that is set but has null value

I have a Makefile that has a variable that needs to have a default value in case when variable is unset or if set but has null value. How can I achieve this? I need this, as I invoke make inside a ...
0
votes
2answers
41 views

matching a list of files with GNU make

This is the first time that I use GNU make to try to do something a bit less basic. I'd like the default target of a Makefile to look for any one of a number of matching filenames, a naming scheme for ...
0
votes
3answers
134 views

How to identify the package manager used to install software in CentOS?

On my CentOS 7.2 Server: [root@localhost data]# which php /usr/local/bin/php [root@localhost data]# ll /usr/local/bin/php lrwxrwxrwx. 1 root root 29 Jun 25 08:13 /usr/local/bin/php -> /usr/local/...
0
votes
1answer
63 views

Is there any possibility to use the same Makefile in CentOS and FreeBSD?

Unfortunately, in some old FreeBSD environments I can't use "gmake", so I need to write a Makefile which will work with FreeBSD make also. And the last problem I can't solve - use shell commands, for ...
0
votes
1answer
100 views

Makefile: Copy using make variables --> error; Not so without variables!

In the following makefile InputLocation:=./Test OutputLocation:=$(InputLocation)/Output Input:=$(wildcard $(InputLocation)/*.md) Output:=$(patsubst $(InputLocation)/%, $(OutputLocation)/%, $(Input:...
2
votes
3answers
322 views

Getting 'rxvt-unicode': unknown capability while compiling urxvt 9.22

I am working on Debian. I ran this command: ./configure && make && sudo make install and I got this error: ./etc/rxvt-unicode.terminfo", line 57, col 20, terminal 'rxvt-unicode': ...
0
votes
1answer
26 views

Pass a Make variable to Bashscript that is invoked from inside Make

In a pattern rule I would like to export make variable like $(TargetLocation), $@. I tried the following but It didn't get exported. The bash script is executable. export $(TargetLocation); \ export ...
0
votes
1answer
24 views

How to renice a make with multiple jobs?

I'm running very large kernel compile, and I would like to renice the whole process to at least -1, so it gets a little bit more CPU time. Currently, I'm not running anything else on the machine. The ...
1
vote
0answers
66 views

Build C executable with env variables via Makefile [closed]

I have huge application written in C and Python. I have a Makefile which helps to build final executable on several platforms. Here's a main part (I can't expose too much because of confidential info):...
2
votes
0answers
37 views

Cannot get awk to work properly inside make [duplicate]

I want to parse a file and bracket each line with #ifndef and #endif. For example, starting with: #define X 1 #define Y 2 #define Z 3 I want to generate: #ifndef X #define X 1 #endif #ifndef Y #...
0
votes
1answer
178 views

Pyenv cannot be installed in Manjaro Linux

Hello I have been trying to install pyenv on Manjaro Linux and got an error that openssl is not installed on the system.  I have now installed it. I understand that I am supposed to tell the compiler ...
0
votes
1answer
40 views

Is a POSIX-conformant implementation required to support other than default locales?

I would like to implement a minimal POSIX-conformant make utility. However, the specification mentions that the implementation shall be affected by the following environment variables: LANG, LC_ALL, ...
1
vote
1answer
44 views

Check FreeBSD version in Makefile

I have these lines in my Makefile: PLATFORM = $(shell uname -r) OLD_FREEBSD = 7.3-RELEASE-p2 ...
0
votes
0answers
33 views

Issues with /lib64/libstdc++.so.6 when trying to run c++ program from within a shell script (Centos 7) [duplicate]

I am having a problem trying to run a C++ application from within a shell script. I am compiling the program calling make from the shell script. For compiling, I am using g++ 7.3.0 which is found in /...
0
votes
0answers
62 views

Shell Script gives error when running C++ program

I'm currently working on a CentOS 7 server. I have a Makefile which works perfectly if I run it from the command line. The problem arises when I try to run my Makefile from a Bash script I'm working ...
0
votes
1answer
224 views

link: invalid option — 's'

I tried to excute a makefile in CentOS 7.5 but the following error is stopping me ERROR: make export make[1]: Entering directory `/shilpa/audiocodes/unimrcp-1.5.0/GrammarSrv/libs/smonkey/common/js/...
0
votes
0answers
45 views

Trouble installing GS from source

I'm trying to install Ghostscript 9.23 from source, and getting some errors I'm not familiar with. I'm using CentOS. $ cat /proc/version Linux version 2.6.9-67.ELsmp (brewbuilder@ls20-bc1-14.build....