Questions tagged [compiling]

Questions related to compiling software from sources, usually using the "make" command.

In Ubuntu, most software is installed through APT from repositories, which involves copying precompiled binaries into the right system directories. This is generally the preferable method.

However, sometimes it's necessary to compile software from the source code yourself (usually downloaded as a .tar archive). This usually requires running a script in the source directory or using cmake to configure the build environment, and installing extra packages (such as compilers and development libraries) as build dependencies, and then running the make command. Once the binaries have been built, they can be copied to the right locations, usually with sudo make install. Compiling a kernel requires a .config file, and the kernel image and modules to be built and installed.

This tag should be used for questions about compiling software from sources in or to use in Ubuntu, generally as an end user. If you are writing programs in a compiled language and you need help compiling them, you may be better off asking about it on Stack Overflow.

Helpful links:
How do I install a .tar file?
Manual for GNU make

2539 questions
67
votes
1 answer

How to add libraries path to the ./configure command?

I would like ./configure to link to a library and some include files. My library is stored in /home/foo/sw/lib/ and my files are stored in /home/foo/sw/include. ./configure --help throws out the following: Some influential environment variables: …
BlackAdder
  • 773
  • 1
  • 5
  • 7
61
votes
3 answers

cmake fails with "CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found."

jonquil@jonquil-Satellite-L755D:~/Downloads/akonadi-googledata-1.2.0/build$ cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler:…
xjonquilx
  • 1,487
34
votes
3 answers

How to build all my installed package from sources?

I've read about how source-based linux distros like Gentoo can have considerable performance increases when compared to pre-built distros like Ubuntu because they install from source with optimizations for your particular system. Is is possible to…
ciferkey
  • 461
10
votes
3 answers

How do I build libcurl from source?

I've been trying to install libcurl from the git source. However when I cd into the repository and run ./configure I keep getting this error: [*****@****** bagder-curl-f0d611d]$ ./configure -bash: ./configure: No such file or directory I did some…
9
votes
1 answer

How do I compile format junkie?

The ppa:hakermania/format-junkie is down, at least for me, is it possible to compile format junkie in 11.10? If so, how? This is the list of files I have: about.cpp error_logs.h main.cpp about.h …
celord
  • 93
8
votes
2 answers

"kde-config not found" error while installing kstars from source

I am trying to install kstars from source ,but I got the following error while configuring ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type...…
Tachyons
  • 17,281
7
votes
2 answers

What are 'nightly' builds?

When referring to the Ubuntu releases, I've come across something called 'nightly' builds. What do 'nightly' builds mean?
harisibrahimkv
  • 7,256
  • 11
  • 44
  • 71
6
votes
4 answers

Compiling midnight commander

I need help with compiling midnight commander so that I can make some changes (for educational purposes). Or even creating the make files. After downloading latest version from git. I try to perform ./autogen.sh . Result is: maint/autopoint: 418:…
notabene
  • 161
6
votes
3 answers

How can I use Cygwin under Ubuntu?

I have written a tiny application for Ubuntu, and it works great. I am interested in cross-compiling it for Windows. I have installed mingw32 from repository, and it compiles simple files very well. However, the app I want to compile for Windows…
5
votes
1 answer

compile workrave from source

How do I install workrave from source? I cloned the source from github: git clone https://github.com/rcaelers/workrave.git cd workrave there is an INSTALL file which sais, I should use ./configure; make; make install but that seems outdated. There…
rubo77
  • 32,486
5
votes
2 answers

Does "CONCURRENCY_LEVEL=x" affect to all compilations made with make?

Does "CONCURRENCY_LEVEL=x" variable affects to compilations made with make?
Juan Simón
  • 1,703
5
votes
1 answer

compile TN 5250 program

I was a consultant on the IBM AS/400 for nearly 20 years. In the past I have used TN5250 to connect to the 400. Lately I've been getting a lot of emails with possible remote consulting gigs. I tried to configure the program and see the following…
vdubeau
  • 67
4
votes
1 answer

Why do I get a "configure: error: Could not compile basic X program." error when trying to compile Spidermonkey?

I am trying to install spidermonkey on 11.10. However I am having many compile issues. Most recently I have received this error, but I cannot understand exactly what the error is. checking whether C compiler supports -fprofile-generate...…
sayth
  • 1,224
4
votes
1 answer

What does `apt-get -b source ` do exactly?

It downloads source and patches, then what ? How can someone build the downloaded source just as the apt-get does manually ?
user629747
4
votes
2 answers

How do I find the dependencies when building software from source?

Here is what I have done. I downloaded foxtrotgps.1.1.1.tar.gz as it is the latest to /home/crash/usr/local.src I extracted it to my /home/crash/usr/local/src as directory /foxtrotgps.1.1.1 I then checked all the required packages for the correct…
1
2 3
10 11