Questions related to compiling software, normally using the "make" command.

learn more… | top users | synonyms (2)

113
votes
12answers
138k views

How do I install the latest version of node.js?

How do I install node.js in 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?
69
votes
5answers
66k 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" ...
31
votes
4answers
17k 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, ...
30
votes
2answers
32k 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 ...
29
votes
4answers
15k 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 ...
28
votes
1answer
18k 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 ...
26
votes
5answers
144k views

How to compile a .java file

How can I compile a .java file. What programs will I need and if I need java jdk I need help installing that. I'm very new to ubuntu so any program I need to install I will need a tutorial on how to ...
23
votes
3answers
82k 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 >= ...
23
votes
4answers
46k 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 ...
22
votes
7answers
18k 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?
22
votes
2answers
7k 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 ...
21
votes
2answers
17k 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 ...
21
votes
1answer
51k views

Cross-Compile for ARM?

How do I set up GCC for cross compiling for the ARM processor? The host would be on x68 ( AMD64 - Ubuntu 12.04 ) and the target would be ARM ( Raspberry Pi as well as Pandaboard - will do separate ...
20
votes
5answers
162k 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 ...
20
votes
1answer
27k 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 ...
19
votes
3answers
10k 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 ...
18
votes
1answer
25k 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 ...
17
votes
1answer
30k 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 ...
17
votes
2answers
50k views

What should I do about this error?

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 ...
16
votes
1answer
43k 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 ...
14
votes
2answers
101k 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 ...
14
votes
1answer
24k 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 ...
14
votes
4answers
46k views

What's the Linux equivalent to Windows batch files?

I have a batch file which I use to create an .apk file on my Windows machine. Now I need to be able to create the .apk file in Ubuntu but I don't know how translate my .bat file to a script to be able ...
14
votes
2answers
22k 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 ...
14
votes
1answer
13k views

How to properly update / install / compile ibus on 14.04, dconf problems?

I updated recently to phpstorm 9.5 and it says I should update ibus to 1.5.11 or newer (which at this point the current one). Ok. I downloaded 1.5.11 from source and try to install it. I got some ...
13
votes
5answers
1k views

Type of code conversion used in Linux executable files

I want to ask that what type of encoding is used to make linux executable files e.g. hexadecemal, binary or anything else. how is it converted ? Is there any way to get back the original code from ...
13
votes
2answers
5k views

Can I rebuild a package without recompiling the source?

I am building a new .deb and want to fix lintian errors in the packaging. However, every time I rebuild, the rules file does a 'make clean' and thus starts compiling again. Is there a way to ...
13
votes
4answers
9k views

Receiving error while trying to debug in QtProject

I installed the latest version of the QtProject so now I can debug C++ code. While trying to debug for the first time I got this error: ptrace: Operation not permitted. Could not attach to the ...
13
votes
1answer
22k 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 ...
13
votes
1answer
1k views

How to upload package with dependencies to my PPA?

I made a package for my PPA and uploaded it. It built without any problems. Then I made another package that depended on the first and uploaded it. It failed because it couldn't find the files in the ...
12
votes
3answers
14k views

Build 32-bit on 64-bit Ubuntu: installing ia32-libs does not include libstdc++

Googled for a while but drawn a blank. Need to build 32-bit app on 64-bit Ubuntu. Realise that I need to install ia32-libs. I have done this and apt-get tells me it's already at the latest version. ...
12
votes
5answers
20k views

Where does Ubuntu store its library files?

I want to add my own library to use in c compiling, but don't really know where ubuntu stores it.
12
votes
3answers
10k views

vmhgfs module not compilable for VMware Tools 9.9.0 (Fusion7.1) after Ubuntu Linux kernel update to 3.13.0-46-generic?

vmhgfs module not compilable for VMware Tools 9.9.0 (Fusion7.1) and VMware Tools 9.9.2 (Fusion7.1.1 Build 2496486) after Ubuntu Linux kernel update to 3.13.0-46-generic (Febr. 2015) (Shared Folder ...
11
votes
1answer
2k 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 ...
11
votes
5answers
9k 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 ...
11
votes
2answers
13k 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 Compiler ...
11
votes
4answers
11k views

Install Apache, Php, Mysql latest versions not available via apt

I need to install the latest versions of apache, php and mysql that are available on their websites, but the problem is that apt repositories don't have these updates versions yet. Versions that I ...
11
votes
1answer
5k views

How to speed up compilation of Ubuntu apps (make, cmake, gcc)

I am compiling some programs here and I have 4 cores. Is there a way to tell make, cmake or gcc to compile using all cores or something to that affect.
11
votes
1answer
11k views

How to have Ubuntu Chrome Canary?

Ubuntu how can i have Google Chrome Canary? https://www.google.com/intl/en/chrome/browser/canary.html
11
votes
1answer
7k views

How to install tmux from source?

I've download tmux and am trying to install it on Ubuntu 10.04. $ ./configure Configured for Linux $ make cc -DBUILD="\"1.3\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -c -o attributes.o ...
11
votes
3answers
819 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 ...
11
votes
1answer
20k views

While compiling TrueCrypt, I get “undefined reference to symbol 'dlclose@@GLIBC_2.2.5'”

I'm trying to compile TrueCrypt 7.1a from source on Ubuntu 13.04. However make fails during the linking process with the following error: Linking truecrypt /usr/bin/ld: ...
11
votes
2answers
3k views

How to compile gedit LaTeX plugin?

Because I'd like to use the Gedit LaTeX plugin that is unfortunately not available for Gedit 3.2 in the repositories, I want to compile it myself. The most recent version you can get on ...
10
votes
3answers
426 views

How to find out how many people have downloaded from PPAs [duplicate]

How do I find out how many people use a particular PPA. I see on a particular PPA ; Package build summary A total of 108 builds have been dispatched for this PPA. Completed builds 108 successful 0 ...
10
votes
1answer
414 views

Compile Unity without launcher

I would like to modify unity to not show the launcher (left side bar) at all. I'm not looking for any solution that would let the launcher be in some cases visible. I really want it to completly ...
10
votes
7answers
1k views

How do I port software that I have written for Windows to Ubuntu?

I have written software packages for the Windows platform. I want to change to Ubuntu. At the moment I use Visual Basic and Access Databases. Can anyone suggest What I should use to rewrite my ...
9
votes
2answers
1k views

Can't compile with GCC on Ubuntu 12.04

I'm trying to compile and run the below C program on my Ubuntu & Windows machines with both GCC & VC9. However, I'm facing below issues: On Ubuntu machine: GCC compiles fine, but when run, ...
9
votes
5answers
11k views

Does compiling a linux kernel make the OS faster?

Does compiling a downloaded linux kernel (e.g 3.2) make the OS (e.g ubuntu) faster on that specific machine?
9
votes
3answers
9k views

How to use 'apt' to get source code and then do separate compile

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 ...
9
votes
1answer
7k views

Compiling 32-bit app on 64-bit, cannot find -lX11

I'm invoking a command like: g++ ... -o"myapp" -lX11 ... And getting /usr/bin/ld: cannot find -lX11 I've installed the following packages to support multiarch: ia32-libs, libc6-dev-i386 and ...