Questions tagged [configure]

A Configure script is an executable script designed to aid in developing a program to be run on a wide number of different computers.

A Configure script is an executable script designed to aid in developing a program to be run on a wide number of different computers. It matches the libraries on the user's computer, with those required by the program, just before compiling it from its source code.

As a common practice, all configure scripts are named "configure". Usually, configure scripts are written in Bash syntax, but they may be written for execution in any desired shell.

1550 questions
171
votes
3 answers

DESTDIR and PREFIX of make

I am trying to make software install to a specific directory. I found several ways, but not sure what are the differences between them. ./configure --prefix=*** make install DESTDIR=*** make install prefix=*** I am confused about the functions of…
Sean
  • 2,649
  • 3
  • 21
  • 27
134
votes
2 answers

What's the difference of "./configure" option "--build", "--host" and "--target"?

The script ./configure accepts 3 options --build, --host and --target. I'm confusing their roles. What's the difference and semantics of them?
eonil
  • 83,476
  • 81
  • 317
  • 516
125
votes
4 answers

Why always ./configure; make; make install; as 3 separate steps?

Every time you compile something from source, you go through the same 3 steps: $ ./configure $ make $ make install I understand, that it makes sense to divide the installing process into different steps, but I don't get it, why each and every coder…
erikbstack
  • 12,878
  • 21
  • 81
  • 115
109
votes
6 answers

How to add include and lib paths to configure/make cycle?

I need a place to install libraries in a linux box I have no su access to. I'm using ~/local[/bin,/lib,/include], but I don't know how can I tell ./configure to look for libraries there (particularly, I'm trying to compile emacs, which needs libgif,…
Lacrymology
  • 2,269
  • 2
  • 20
  • 28
107
votes
4 answers

How do I create a configure script?

This may sound like a very generic question but here it goes. I have a requirement to create a configure script for my application, the result of this configure would be a generated makefile (basic configure, make, make install). My question is,…
godzilla
  • 3,005
  • 7
  • 44
  • 60
87
votes
1 answer

what does --enable-optimizations do while compiling python?

I'm trying to compile Python 3.6 on an arm based Linux machine, ./configure outputs this: If you want a release build with all optimizations active (LTO, PGO, etc), please run ./configure --enable-optimizations. what does --enable-optimizations…
Yashar
  • 2,455
  • 3
  • 25
  • 31
74
votes
4 answers

What are various options / arguments for "./configure" in Linux

I have seen that while installing new software in Linux, I always have to use first configure it. But sometimes we need to pass various options like I did today to install lxml: ./configure --with-python=/opt/python27/bin/python --prefix=/usr/local…
Mirage
  • 30,868
  • 62
  • 166
  • 261
71
votes
3 answers

What does a typical ./configure do in Linux?

Why is it necessary even though everything is specified in a makefile?
Mask
  • 33,129
  • 48
  • 101
  • 125
60
votes
5 answers

Build 32bit on 64 bit Linux using an automake configure script?

I'm using a 64bit system but want a set of 32bit binaries. What options must I pass to a configure script to generate a 32bit/x86 makefile?
Jack Nock
  • 14,703
  • 5
  • 22
  • 18
56
votes
2 answers

Confused about configure script and Makefile.in

I'm currently learning how to use the autoconf/automake toolchain. I seem to have a general understanding of the workflow here - basically you have a configure.ac script which generates an executable configure file. The generated configure script…
Siler
  • 8,976
  • 11
  • 64
  • 124
53
votes
7 answers

How to resolve configure guessing build type failure?

When I configure (under cygwin environment), an error occurred, Message are following: $ ./configure ................. checking build system type... /bin/sh: ./config.guess: No such file or directory configure: error: cannot guess build type; you…
sean
  • 1,252
  • 3
  • 14
  • 29
53
votes
5 answers

why "make" before "make install"

I know the process of installing from source are. ./configure make make install But why "make" before /etc/cups/cupsd.conf, why not just do "make install"? My understanding so far is "make" only compile the source into executable file, and "make…
aggressionexp
  • 690
  • 1
  • 5
  • 10
51
votes
7 answers

"Logging out" of phpMyAdmin?

The error that I get on phpMyAdmin is the following The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated." I have googled and looked this up for a while now and the common answer that…
OpMt
  • 1,723
  • 4
  • 19
  • 24
47
votes
2 answers

Linux configure/make, --prefix?

Bear with me, this one's not very easy to explain... I'm trying to configure, make and make install Xfce into my buildroot build directory. When configuring I'm using --prefix=/home/me/somefolder/mybuild/output/target so that it builds to the…
Xleedos
  • 948
  • 2
  • 9
  • 17
46
votes
1 answer

Append compile flags to CFLAGS and CXXFLAGS while configuration/make

The project that I am trying to build has default flags CFLAGS = -Wall -g -O2 CXXFLAGS = -g -O2 I need to append a flag -w to both these variables (to remove: 'consider all warnings as errors') I have a method to work it out, give make…
Vigneshwaren
  • 1,273
  • 2
  • 15
  • 24
1
2 3
99 100