Questions tagged [compiling]
Questions related to compiling software from sources, usually using the "make" command.
2,585
questions
211
votes
10
answers
362k
views
If I build a package from source how can I uninstall or remove completely?
I used source code to build one package such as below:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="Myplugin" --with-package-origin="...
192
votes
16
answers
333k
views
How do I install the latest version of node.js?
How do I install the latest node.js on Ubuntu? I've been looking around, and I can't find anything. Is there a Ubuntu package for node.js, or do I have to compile it myself?
124
votes
6
answers
1.0m
views
How to compile a .java file on Ubuntu?
How can I compile a .java file?
What programs will I need? If I need the Java JDK I will also need help installing that. I'm very new to Ubuntu, so any program that I need to install I will need a ...
77
votes
3
answers
218k
views
How to cross compile for ARM?
How do I set up GCC for cross compiling for the ARM processor? The host would be on x86_64 ( AMD64 - Ubuntu 12.04 ) and the target would be ARM (Raspberry Pi as well as Pandaboard - will do separate ...
74
votes
5
answers
772k
views
How to compile a python file?
I have started learning python and I'm also a new user to Ubuntu. I need to know the ways of compiling the .py files. I have tried with the command
python "hello.py"
What are the other ways of ...
72
votes
4
answers
183k
views
Compile OpenGL Program (Missing GL/gl.h)
I am a complete Linux/Ubuntu noob, so I apologize for any dumb portions of this question or follow up ones.
I am trying to get a program that my software engineering class's group wrote onto my home ...
67
votes
1
answer
119k
views
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 ...
67
votes
4
answers
156k
views
Installing packages into local directory?
I'd like to install software packages, similar to apt-get install <foo> but:
Without sudo, and
Into a local directory
The purpose of this exercise is to isolate independent builds in my ...
61
votes
3
answers
211k
views
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 ...
60
votes
1
answer
87k
views
No acceptable C compiler found in $PATH
I want to install one package named speech_tools-2.1-release.tar.gz. After I run command ./configure in this package, it show me a message:
Configure: error: no acceptable C compiler found in $PATH
...
58
votes
3
answers
270k
views
How do I install glib?
I want to build the Empathy in Ubuntu 11.04.
When I follow the build process,
./autogen.sh
The shell said to me that
libtoolize: copying file `m4/lt~obsolete.m4'
checking for autoconf >= 2.53.....
55
votes
3
answers
186k
views
"fatal error: openssl/opensslv.h: No such file or directory" compiling mitmproxy
I'm trying to install the mitmproxy package via pip like this:
$ sudo pip install mitmproxy
It terminates with following error message:
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -...
54
votes
3
answers
102k
views
How do I set up ccache?
I want to use ccache to speed up compilation.
I came across How do I enable ccache?.
This is what I have done so far:
$ sudo apt-get install -y ccache
$ dpkg -l ccache
ii ccache 3.1.6-1 ...
52
votes
4
answers
111k
views
What's a simple way to recompile the kernel?
I'm interested in compiling a new kernel under Ubuntu 12.04 x86 64 bit.
I found this wiki page which is basically a mirror for this blog and there are a lot of steps (git, etc.) that appear useless ...
49
votes
4
answers
40k
views
What are the packages/libraries I should install before compiling Python from source?
Once in a while I need to install a new Ubuntu (I used it both for desktop and servers) and I always forget a couple of libraries I should have installed before compiling, meaning I have to recompile, ...
45
votes
2
answers
152k
views
gcc: error trying to exec 'cc1plus' : execvp: No such file or directory
I'm a newbie but adventuresome. I'm tri-booting Windows, Fedora, and Ubuntu 14.04 LTS (all 64). Learning but not using dpkg, apt, and apt-get. Starting to study C++ using Ubuntu (the only one with gcc ...
44
votes
5
answers
343k
views
how to fix configure: error: C compiler cannot create executables
used
./configure DFLAGS="-03"
and this is the config.log
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-...
44
votes
4
answers
67k
views
Compiling kernel 5.11.11 and later
In Ubuntu 20.04 LTS, I was compiling kernel 5.11.11 after adding a new system call. I also get this with later Ubuntu versions and kernels. During the execution of make command I got this error:
make[...
44
votes
3
answers
143k
views
How can I install OpenMP in Ubuntu?
Im using Ubuntu 12.04 LTS.
I don't know if it makes a difference but CPU's architecture is 64bit (Intel i3).
44
votes
1
answer
91k
views
How (recipe) to build only one kernel module?
I have a bug in a Linux kernel module that causes the stock Ubuntu 14.04 kernel to oops (crash).
That is why I want to edit/patch the source of only that single kernel module to add some extra debug ...
43
votes
1
answer
136k
views
How to solve configure: error: readline library not found?
I have an Ubuntu 10.04 LTS server with a minimal install that I want to compile postgres on. With the minimal install the server did not have gcc so I had to do an apt-get install gcc but now I keep ...
42
votes
5
answers
59k
views
No Terminal Library Found when Compiling Vim
I am running Ubuntu 12.04.
I'm trying to a get a particular plugin for vim working and it requires that vim has ruby support enabled (the plugin is command-t).
People tell me that I must go into my ...
40
votes
2
answers
41k
views
Where can I find the configure options used to build a package?
I need to install asterisk 1.6.2.18 on Ubuntu 10.10
I would like to know what the configure options were that were used to generate the ubuntu package of asterisk 1.6.2.7.
My favorite server distro ...
40
votes
1
answer
40k
views
How to download, modify, build and install a Debian source package? [duplicate]
If I want to make minor changes to the source code of a Debian package, how do I go about downloading, incrementing the package version, building the (modified) source, and installing it on my ...
35
votes
5
answers
158k
views
"fatal error: gtk/gtk.h: No such file or directory" using make
I am trying to use make command to build. I am following this. I am compiling a code using GTK+2 and C language
hp@ubuntu:~/amhello$ make
make all-recursive
make[1]: Entering directory `/home/hp/...
35
votes
1
answer
19k
views
Missing letltxmacro.sty after LaTeX TexStudio installation
I'm running Ubuntu 20.04. I installed TexStudio via aptitude. But when I try to build a document, I get in TexStudio the following error:
File `letltxmacro.sty' not found. \RequirePackage{letltxmacro}[...
34
votes
3
answers
21k
views
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 ...
33
votes
4
answers
34k
views
mainline kernel now depends on libc6 2.33, non-installable in focal?
I've been happily installing 5.10 mainline kernels (from https://kernel.ubuntu.com/~kernel-ppa/mainline/) on my Ubuntu 20.04.
Trying to update to 5.10.33, I discovered an unwelcome dependency on libc &...
31
votes
8
answers
37k
views
How to solve dpkg-source source problem when building a package?
Has anyone here had some experience creating a Debian / Ubuntu package? I am trying to backport the lammps package (http://packages.ubuntu.com/quantal/lammps) from Ubuntu 12.10 (Quantal) to Ubuntu 12....
31
votes
3
answers
47k
views
How to use 'apt' to get source code and then do separate compile [duplicate]
I want to get the source code for a project and then build it the same way that apt would. E.g. I want the working source code and be able to run 'make' or similar command on the source.
How can I ...
30
votes
4
answers
19k
views
How are packages actually installed via apt-get install?
When using the apt-get install method to install a package onto ubuntu, is there any fundamental difference between obtaining the source code for that package and building it from scratch? Does the ...
30
votes
2
answers
91k
views
How can I compile & run assembly in Ubuntu 18.04?
So recently I've wanted to learn assembly, so I learnt a bit. I put this into nano and saved it as playground.asm. Now I'm wondering, how do I compile and run it? I've already searched everywhere and ...
30
votes
1
answer
49k
views
What is "openssl binaries" and "openssl development package"?
Build it using general C development environment with bash, gcc (3 or
4 series), make, etc on a linux machine.
Building pre-requirements are:
**
1. openssl binaries;
2. openssl ...
30
votes
2
answers
54k
views
What exactly does gcc-multilib mean on Ubuntu?
After hanging long time with older Ubuntu (v.12) I'm updating to v.16 and am very confused with mentions of "gcc-multilib".
Is this actually Apple's "fat binaries" or "universal binaries" model ...
27
votes
2
answers
281k
views
How to compile a C program that uses math.h?
I am having problems in math.h header file and when I use square root function as in sqrt(d). But my compiler is not supporting this. Please advise me about this problem.
My Ubuntu version is 2012.
26
votes
4
answers
63k
views
How can I install a realtime kernel?
I have read a lot of threads with similar questions, but after reading the answers, I am very confused. I have found in them lots of url's with repositories but people discusses about which ...
25
votes
2
answers
157k
views
Command not found cc, make error 127
I am trying to install shc on Ubuntu 18.04
wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9b.tgz
tar xvfz shc-3.8.9.tgz
cd shc-3.8.9
make
But receive the following error:
cc -Wall shc.c ...
25
votes
4
answers
156k
views
How to run a .pyc (compiled python) file?
When I compile a python file, I get a *.pyc file. When I try to run that, I get a message saying there is no program for running them. When I search for a program online via that option, it says there ...
25
votes
4
answers
41k
views
How to have Google Chrome Canary on Ubuntu?
How can I have Google Chrome Canary for Ubuntu?
24
votes
7
answers
21k
views
How to install new tmux 1.8 on Ubuntu 12.10 or 12.04?
Are there any PPA?
If no, how to make it from sources? Which dev libs I'll need to do this?
24
votes
2
answers
218k
views
How to compile C++ source code ("iostream.h not found" error)?
I do not want to discuss about C++ or any programming language!I just want to know what am i doing wrong with linux ubuntu about compiling helloworld.cpp!
I am learning C++ so my steps are:
open ...
24
votes
1
answer
49k
views
How do I use C++11 with g++?
I am currently typing all of my code in gedit and using the terminal to compile my programs. To do so, I am typing:
$ g++ main.cpp -o main
$ ./main
And this is working. However, it is not using C++...
24
votes
4
answers
34k
views
Unable to compile FFmpeg on Ubuntu 20.04
I am following this compilation guide for FFmpeg. After compiling all the required dependencies, I get the following error in the last section.
ERROR: gnutls not found using pkg-config
This error ...
24
votes
3
answers
43k
views
How to install / compile NVENC in ubuntu?
I see support for nvidia NVENC in this document, but it seems confusing, some step by step? or PPA with ffmpeg-nvenc for ubuntu?
http://developer.download.nvidia.com/compute/redist/ffmpeg/1511-patch/...
24
votes
4
answers
16k
views
Is there any open-source way to make a static from a dynamic executable with no source code availability?
Let me explain the problem with an example. I use some old program in my day to day work, like for example xfig and pdfedit.
Now, these programs are quite old and not updated too often; my fear is ...
23
votes
4
answers
223k
views
Can't run make - gcc: command not found
I'm trying to follow a tutorial to get CudaMiner working on Linux. I have PAINSTAKINGLY installed NVidia drivers, Cuda 5.0 and incidentally I'm failing on the last step when I run make:
make all-...
23
votes
2
answers
15k
views
Compile 32bit kernel on 64bit machine
I'm trying to compile a kernel for a 32bit single-core Intel Atom machine. Needless to say, the compile is taking inordinate amounts of time. It's been going for 2 hours and it's still only halfway ...
22
votes
9
answers
86k
views
How to build curl with the latest openssl?
So I build openssl
./config
make
sudo make install
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`
I build curl
./configure --with-ssl
make
make install
OpenSSL looks installed correctly:
...
22
votes
4
answers
16k
views
How to run parallel make with debuild?
I am trying to make a package of a piece of software that I've (co-) written. I'm using
debuild -i -us -uc -b
And in principle that works fine. In order to shorten compilation time I'd like to ...
22
votes
3
answers
18k
views
Is it better to compile from source or to install from a .deb package?
Sometimes, when downloading software from the Internet, I find that there is a .deb package ready for either my Debian/Ubuntu and also a tarball to be compiled. In the beginning I would simply use the ...