make is a utility that automates the build process by managing dependencies amongst targets.
0
votes
1answer
544 views
Looping over directory entries in bash and saving to an array
(See update at the foot of the question).
This is a followup question to "Make directory copies using
find".
This question involved manipulating a bunch of directories, This got
too complicated to ...
2
votes
0answers
364 views
libbfd-2.22.so missing while compiling Binutils/Glibc/Zlib
When I try to compile Binutils, Glibc and Zlib using chroot on my LFS system, I get this error:
ar: error while loading shared libraries: libbfd-2.22.so: cannot open shared object file: No such ...
5
votes
3answers
238 views
Installing from source. How to resolve dependencies without destroying the package manager.
I don't consider myself a total noob, but compiling and installing software is a pain and problem I cannot overcome. I just want to run down through my understanding of this process with someone more ...
1
vote
2answers
1k views
Cannot Compile Apache: “Error, SSL/TLS libraries were missing or unusable”
Arch Linux 2011.08.19 (Linux 3.4.2 i686)
Apache 2.2.22 → 2.2.22 (recompile & reinstall)
OpenSSL 1.0.1.c-1
These details are likely irrelevant, but: I’m using yaourt with customizepkg to build ...
8
votes
4answers
291 views
What could be causing make to hang when compiling on multiple cores?
Yesterday I was trying to compile the ROOT package from source. Since I was compiling it on a 6 core monster machine, I decided to go ahead and build using multiple cores using make -j 6. The ...
2
votes
2answers
337 views
Makefile compiles unchanged files
Made an effort to get the object files in another directory, but that directory would otherwise reflect the source directory tree. Got that to work, but there is a missing piece at the $(OBJ): line ...
5
votes
1answer
128 views
Are there any CheckInstall side effects or should I use it every time?
I'm using Ubuntu at work and Slackware at home.
Today at work I have downloaded some suspicious program from our company repository that was supposed to automate some repetitive tasks. I installed ...
2
votes
0answers
100 views
What went wrong with this driver install?
I am trying to install the correct LAN card drivers on openSuse 12.1. This is the output of the log file for the autorun.sh script:
-------------------------------
Sun Jul 1 21:50:45 IDT 2012
...
1
vote
0answers
166 views
error: implicit declaration of function ‘rt_dev_socket’
The developer says: http://comments.gmane.org/gmane.linux.real-time.rtnet.user/2546
Now how can I tell the Makefile to look for headers in
/usr/local/rtnet/include respectively ...
4
votes
2answers
341 views
Do GNUmakefile, GNUmakefile.am, and GNUmakefile.in indicate that Automake has been used?
The source folder of rtnet contains only the above mentioned files for compilation purposes. Remaining files are the source code of the examples.
Question is that do these files indicate that they ...
3
votes
1answer
983 views
Why can't ld find this library?
I'm not very knowledgeable on this topic, and therefore can't figure out why the following command does not work:
$ gfortran -o dsimpletest -O dsimpletest.o ../lib/libdmumps.a \
...
4
votes
1answer
171 views
Configure vim's :make to switch or open tabs on error
When I run :make from vim and there's an error, it opens that file on the error line number in the current buffer. If possible, I would prefer it switch tabs to the file if it's already open, or make ...
1
vote
0answers
344 views
ssh: “Error reading response length from authentication socket”
I have a Makefile with some ssh and rsync commands. All of them are executed correctly, but give the following error message:
Error reading response length from authentication socket.
I don't like ...
1
vote
1answer
631 views
Does `make install` overwrite files?
I've taken some time to install a newer version of Apache2.x on my Mac Os X 10.6.8.
When configuring apache through ./configure I specified the Darwin layout. This layout assumes the path setup of ...
3
votes
1answer
48 views
Compiling software with the same options as a previous install
I want to compile and install a software on a new VM. The software was installed successfully on a different VM by a different admin, but I want to duplicate the exact command with the options that he ...
0
votes
2answers
1k views
Problems with CMake in CentOS 6
I try to install a software in CentOS 6.2, without success. In README file it says:
Requirements:
- qt4 gui lib version >= qt4.6.x
Note that many linux distributions split packages into a ...
1
vote
1answer
272 views
Install newer version of application in $HOME without root access and linking to installed app
I am new to installing application from source and just learning the best practices to do so.
I have this linux box without root access with a quite old emacs, so I downloaded the latest version and ...
0
votes
1answer
516 views
Why is this make file not working?
I have tried to simplify this makefile to the bare minimum, but cannot get it to use an executable to convert one type of file to another if the timestamps have changed. I'm sure there is a stupidly ...
1
vote
1answer
126 views
Compiling a kernel module with some options
I have a bug in a driver (iwlwifi/iwlagn), which I have reported, and the developers are asking me to "build the driver with debug options enabled." More specifically:
Debugging output is enabled ...
1
vote
1answer
378 views
Autocompletion for Makefile rules in tcsh
I'm using tcsh in a SUSE 11 box and I realized that when typing
makeTab
it allows me to auto-complete the rules available within the Makefile, not the files that are inside the current directory.
...
2
votes
1answer
101 views
How to write makefile for bulk processing?
I have some files in a folder source. I want to process them using program program and output them into folder target just by typing
$ make
How should I write a makefile for this?
Directory ...
4
votes
2answers
327 views
Replace one line with STDIN in a Makefile
One Makefile target is supposed to be in charge of:
grabbing the output of $ perl Markdown.pl src/index.md (markdown to html)
using that string to replace one line, something like CONTENT ...
6
votes
4answers
481 views
how can a makefile detect whether a command is available in the local machine?
I began to use org-mode for planning out my tasks in GTD-style system. Putting every org files in a directory of a Dropbox folder, I run emacs to edit / manage these files from three different local ...
1
vote
2answers
205 views
How to install LuaJIT on FreeBSD without using Gmake?
Has anyone been able to install LuaJIT v2 on FreeBSD AMD64(x64) without using Gmake (just freebsd-make)?
If so how?
When I attempt to use freebsd-make, LuaJIT doesn't build.
1
vote
2answers
166 views
How to avoid “make” redoing a library
I have a project for school.
In the root dir, I have 3 subdirs which all have a makefile (because there will be 3 executable files), and there is 1 lib dir.
This dir contains my library source files ...
3
votes
1answer
198 views
How to save the results from ls to a command?
I want the results from an ls to be saved in a var inside a makefile
the command is simply the following:
ls text*
and the result suppose to be something like : text1.txt
What i put in my script ...
1
vote
1answer
102 views
Make errors when compiling hulahop
When I cloned hulahop I had a few possibilities to install it.
I have chosen the path with autogen.sh
I used commands:
$ sh autogen.sh # -> OK
$ ./configure # -> OK
But make fails:
$ ...
3
votes
2answers
522 views
Get top-level directory from makefile variable
What is the simplest code to get the top-level directory part of a makefile variable? Example:
BUILD_DIR = dir/subdir/.../sub-a-dub-dir
distclean:
rm -rf <some code which evaluates to ...
6
votes
3answers
3k views
Why do some packages use 'make install' while other use 'sudo make install'
I recently installed LAME encoder on my server to convert wav to mp3 and that worked with './configure, make, make install;
I then tried to install OGG encoder and that requires './configure, make, ...
4
votes
3answers
325 views
What is a subshell (in the context of the documentation of make)?
I'm reading a book about the make command and there is a paragraph:
If any of the prerequisites has an associated rule, make attempts to
update those first. Next, the target file is considered. ...
4
votes
4answers
209 views
How to send stderr to stdout with a pipe to another command?
I'm trying to capture all of the output of a build operation, and send it to myprogram. I seem to only be able to capture part of it. This is what I'm trying:
make clean && make ...
2
votes
1answer
122 views
How to list prerequisites externally in GNU Make?
How can I query prerequisites of a target from a GNU Make makefile?
E.g. if the targets specified like this:
fred: wilma barney betty
I want to print prerequisites of fred like this:
$ make ...
2
votes
3answers
1k views
Difference between “make install” and “sudo make install”
Sometimes I encounter problems with using make install which gives me a permission denied error when writing to some folders. So instinctively I use sudo make install. Will this introduce additional ...
9
votes
1answer
904 views
What happens in each step of the Linux kernel-building process?
I've read many tutorials about how to build custom kernels and boot Ubuntu using those kernels, and successfully followed the guides and booted custom kernels, but I have no understanding about what ...
2
votes
2answers
763 views
When running sudo make install environment variables are not passed
I have problems with using pkg-config in a Makefile, while running in sudo mode. I need to have PKG_CONFIG_PATH set for pkg-config to find geany.pc file that is held in /usr/local/lib/pkgconfig.
If I ...
3
votes
1answer
192 views
How to change the compiler settings with AutoMake?
I want to build a library with a specific tool instead of GCC.
The regular build sequence is:
./configure
make
make install
Where should I replace the GCC settings (I think that the configure was ...
7
votes
1answer
10k views
Where can I find a list of 'make' error codes?
I am trying to compile a program written in Fortran using make (I have a Makefile and, while in the directory containing the Makefile, I type the command $ make target, where "target" is a ...
2
votes
1answer
1k views
Why does 'make' complain about a missing rule when I try to build a program from source?
I am a Linux novice, and I am attempting to compile scientific software called DL_POLY_Classic. I downloaded the zip file dl_class_1.6.tar.gz and unzipped it using the command tar xvzf ...
5
votes
2answers
2k views
How to include local header files in linux kernel module
Say I have a module mymod with source files as follows:
src/mod/mymod.c
src/inc/mymod.h
I try to include mymod.h as follows
#include <mymod.h>
My makefile contains EXTRA_CFLAGS= ...
22
votes
4answers
8k views
Why can't gcc find libevent when building tmux from source?
I want to install tmux on a machine where I don't have root access. I already compiled libevent and installed it in $HOME/.bin-libevent and now I want to compile tmux, but configure always ends with ...
0
votes
2answers
292 views
If I run ./configure, then make again, then will it ruin things if I want to run make a 2nd time?
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Quick-Instructions.html#Quick-Instructions
is what I'm trying to install. Anyways, I ran ./configure and make but then I ran make ...
1
vote
2answers
383 views
Ocaml compilation error in AIX 6.1
I meet the following error when I try to compile Ocaml on my server running AIX 6.1 :
"../Makefile.shared", line 39: make: 1254-055 Dependency line needs colon or double colon operator.
...
2
votes
2answers
299 views
.DELETE_ON_ERROR behavior with make and pipelines
The .DELETE_ON_ERROR target will tell make to delete a target if a rule fails. But this doesn't work for pipelines, because the exit status value $? holds the value of the last program in the ...
1
vote
1answer
72 views
What do I install into a given install prefix
Which directories should I expect to have in an install prefix when I'm writing makefiles? I've noticed that in the common prefix /usr, there is no /etc, yet there is an /include dir, which isn't in ...
4
votes
4answers
126 views
Make mistakenly thinks rule succeeded because of 0-sized file generated by output redirect
In a makefile, I have several rules that look like this:
out.txt: foo.sh input.txt
./foo.sh -i input.txt > out.txt
If foo.sh fails, then out.txt will be created as a 0-sized file. If I run ...
0
votes
3answers
163 views
Building from Source on CentOS 5 or newer
I've got a few applications of which I've got to build from source files in order to make it work on CentOS (the programs do not exist in the yum repos).
I may be missing something, but unlike Debian ...
3
votes
1answer
129 views
unresolved dependencies of bz* files for rpm make from source
I am trying to do a build of rpm from source. I got through the ./configure and ran through a good chunk of make. Unfortunately I keeping getting stopped up on undefined references to bzerror, ...
1
vote
2answers
717 views
Cannot find libgmp when compiling GCC 4.5.2
I'm attempting to compile GCC 4.5.2 as part of the Linux from Scratch book (http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html). My configure is as follows:
./configure \
...
-2
votes
1answer
88 views
Can you explain me about following make file of “lc” tool [duplicate]
Possible Duplicate:
how to build lc tool in linux?
SHELL=/bin/sh
CC=cc
# Objects we link together.
OBJ=lc.o get.o
all: $(OBJ)
$(CC) -o lc
$(OBJ)
lc.o: lc.c lc.h ...
1
vote
1answer
143 views
configure not adding line-continuation characters to makefile
This is, perhaps, a bit of a bizarre one but I don't even know where to start looking so if anyone can point me in the right direction, I'll be very grateful.
I've just done a fresh install of my ...
