Compiling is the process of transforming source code into byte codes for a particular computer architecture.

learn more… | top users | synonyms (2)

15
votes
5answers
737 views

Keeping track of programs

When I install a simple program it often uses make && make install and doesn't often even have an uninstall target. If I wish to upgrade a program is it standard protocol to assume it just ...
55
votes
17answers
5k views

Where should I put software I compile myself?

I need to compile some software on my Fedora machine. Where's the best place to put it so not to interfere with the packaged software?
16
votes
1answer
545 views

Configuring, compiling and installing a linux kernel

I'd like to try using a kernel other than the one provided by my distro -- either from somewhere else, or as customized by me. Is this difficult or dangerous? Where do I start?
13
votes
5answers
790 views

How to compile and install programs from source

This is an issue that really limits my enjoyment of Linux. If the application isn't on a repository or if it doesn't have an installer script, then I really struggle where and how to install an ...
2
votes
5answers
3k views

Kernel can't find /dev/sda file during boot

I configured a gentoo kernel (kernel-2.6.36-gentoo-r5), but when I boot it can't mount /dev/sda1: ALERT! /dev/sda1 does not exist . Dropping to a shell . I use the shell to go to the /dev ...
9
votes
2answers
203 views

best way to set up separate linux environment in ~

I do most of my work (involves a lot of C/Python) on a development server that is shared with several other people. As a result we all seem to do a bit of the system administration chores (there is ...
5
votes
4answers
98 views

Get list of required libraries when installing something from source

When installing something from source (say, Ruby 1.9.2), what command can I run to get a complete list of all the dependencies needed to install that application? Is this possible?
63
votes
12answers
7k views

What is the benefit of compiling your own linux kernel?

What benefit could I see by compiling a Linux kernel myself? Is there some efficiency you could create by customizing it to your hardware?
21
votes
2answers
2k views

Is it possible to compile a full Linux system with Intel's compiler instead of GCC?

Perhaps this is a stupid idea? Maybe there are some compatibility issues? I have the impression that for Intel-based systems, the Intel compiler would potentially do a better job than GCC. Perhaps ...
5
votes
2answers
208 views

What is an effective method for installing up-to-date software on an out-dated production machine?

Apologies if this has been asked already, but I'm such a beginner, I'm not even able phrase a search query for this. Background My company uses a small out-dated cluster (CentOS 5.4) to do number ...
4
votes
3answers
781 views

Mystery of binary files

This is about files straight from the compiler, say g++, and the -o (outfile) flag. If they are binary, shouldn't they just be a bunch of 0's and 1's? When you cat them, you get unintelligible ...
3
votes
2answers
77 views

How to add folders and file before compiling kernel

I'm building custom Android Kernel based on Cyanogenmod ROM' kernel source code. What I need to do is to add folders and files into the root folder of the OS ("/"). For instance, after having ...
1
vote
1answer
442 views

Adding Objective C compiler to GCC 4.7.2

I finished building the GCC 4.7.2 with C, C++ and Go compilers on my Ubuntu 12.04. I now want to add the Objective C compiler, is it possible to add it to the previous build? If so, how should i ...
0
votes
1answer
182 views

how to build lc tool in linux?

lc----A tool to count lines of code in C files. The make file of lc is given as below SHELL=/bin/sh CC=cc # Objects we link together. OBJ=lc.o get.o all: $(OBJ) $(CC) -o lc $(OBJ) ...
36
votes
5answers
2k views

How to compile the C compiler from scratch, then compile Unix/Linux from scratch

Let's say I work for a large services organisation outside the US/UK. We use UNIX and Linux servers extensively. Reading through this article it mentions that it would be easy to insert a backdoor ...
17
votes
5answers
1k views

Is automake and autoconf the standard way to compile code?

I sometimes compile apps from source and I've either been using: ./configure make sudo make install But recently, I came across ./autogen.sh which generates the configure and make scripts for me ...
8
votes
2answers
2k views

Why does FreeBSD use the GPL-licensed GCC?

Why does FreeBSD use GCC as its default compiler? I am under the impression that a core pillar of the FreeBSD philosophy is not to use any GNU software and in particular, GPL code. Yet GCC which is ...
4
votes
3answers
216 views

Edit and recompile individual program

whereis pwd pwd: /bin/pwd /usr/include/pwd.h /usr/share/man/man1/pwd.1.gz The pwd in the binary folder is not the same as type pwd pwd is a shell builtin so wouldn't it be harmless to do some ...
3
votes
1answer
467 views

How do I search for Linux distro build tools?

After having worked through Linux From Scratch, I get the eerie feeling that in practice, this is not how new distros are built. How do I search for tools that other distributions are built with? Is ...
3
votes
3answers
3k views

Where do executables look for shared objects at runtime

The title is pretty explicit. I understand how to define include shared objects at linking/compile time. However I still wonder how do executables look for the shared object (*.so libraries) at ...
2
votes
1answer
259 views

Compile the Ubuntu “Raring” Kernel with the Intel Compiler

Of course, the first question is: why I'm doing this. Just for fun! I'm learning more about Linux kernels and I have a virtual machine that I can replace in 15 minutes. Getting to business, I don't ...
1
vote
1answer
2k views

I need a step by step guide to build kernel modules in ChrUbuntu

I don't have experience building kernel modules. And worse, I'm trying to do it on ChrUbuntu, so it seems that I cannot follow the existing Ubuntu guides. For example, this command fails: # apt-get ...
4
votes
1answer
291 views

NetBSD 5.1 NDIS Kernel Compile Error

I have an old Toshiba Satellite 4015CDT, with Pentium II MMX, 32MB RAM, 4GB HDD. It also has one USB 1.0 port, parallel and serial ports, a 3.5" floppy drive and a CD-ROM drive (almost dead). I've ...
4
votes
3answers
1k views

Recompile Kernel to Change Stack Size

I need to recompile my kernel on RHEL WS5 with only two changes. Change stack size from 4k to 8k Limit usable memory to 4096. How do I recompile the kernel without changing anything else but ...
4
votes
4answers
2k views

How do I install GCC on a system with no compiler?

I've been messing around with my NAS which runs on Linux. I have root access, but there is no compiler. I seem to remember something about being able to compile on another system, but I'm not certain. ...
3
votes
2answers
261 views

Confusion about linking boost library while compilation

For a client I needed to add boost 1.54 to the system. So I downloaded the latest version (1.55) and built it within a special directory: /usr/local/lib/boost1.55/. This works. Then I had to adapt the ...
3
votes
4answers
967 views

Stripped down Kernel for a Laptop

I am a Linux noob, but I am willing to learn. My immediate objective is to compile a small kernel for my laptop without sacrificing usability. I am familiar with the kernel compilation steps (don't ...
3
votes
1answer
142 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, ...
3
votes
2answers
200 views

How to build all of Debian

Let's assume: I have a mirror of the source repository locally. I only want to build for the architecture I'm running, which is i386 in my case. I'm not interested in customisation. In fact, I want ...
2
votes
2answers
29 views

/usr/bin/ld: cannot find -lcrypt (rhel 6 )

System info [root@xilinx busybox-1.22.1]# uname -r 2.6.32-71.el6.x86_64 Following errors come when I make busybox on rhel 6: /usr/bin/ld: cannot find -lcrypt collect2: ld returned 1 exit status ...
2
votes
2answers
725 views

USB Driver Compilation Error

I'm currently trying to compile a Linux USB UART driver, which is provided here: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1410 The driver consists of 2 header files ...
2
votes
1answer
439 views

Build kernel in one machine, install in another

I want to build my Linux kernel on my host and use it in my VWware virtual machine. They both use the same Ubuntu kernel now. On my Host, I do make and make configure. Then, what files should I copy ...
2
votes
2answers
3k views

Kernel Panic - not syncing: VFS: Unable to mount root fs after new kernel compile

So I've been at this for a while and have been poking around for an answer for a few days, and figure it's about time to ask for help. I am running Ubuntu 10.10 in VMWare Fusion, and have downloaded ...
1
vote
3answers
49 views

Enabling IP forwarding at kernel compile time

I am compiling a kernel for a router. I know a way to enable IP forwarding in an existing Linux system. At compile time, CONFIG_IP_FORWARD is said to do the same task. I am configuring version ...
1
vote
1answer
369 views

“No such file or directory” when executing a cross-compiled program on a Raspberry Pi

I recently bought a Raspberry Pi. I already have configured it, and I install a cross compiler for arm on my desktop (amd64). I compiled a simple "hello world" program and then I copy it from my ...
1
vote
4answers
2k views

I can not get my Realtek 8723 driver source compiled

I have a Lenovo IdeaPad Yoga 13. WLAN won't work out of box with fedora 18. So I googled around and found this 2 links: ...
1
vote
2answers
651 views

Ubuntu: can't find ndbm.h

I need to compile an old apache version, 1.3 and compilation process fails because: mod_auth_dbm.c:77:18: fatal error: ndbm.h: File or directory not found where is it?
1
vote
0answers
203 views

Compiling libqwplot3d on armhf

This started as an attempt to compile GNURadio on armhf (Pandaboard & Beagleboard). Thanks to the answer by Mike Larsen. I tried to compile libqwplot3d. apt-get build-dep qwtplot3d apt-get source ...
1
vote
1answer
1k views

Unable to find headers in GCC

I am trying to compile a program using GCC in SCO, and I am unable to find the ctype.h file. I have managed to find the other files that were missing when compiling, like string.h etc. I was getting ...
1
vote
1answer
2k views

__modver_version_show undefined error during make

Platform: Ubuntu 11.10 64bit Kernel to be compiled: 3.2.1 Error after make: ERROR: "__modver_version_show" [drivers/staging/rts5139/rts5139.ko] undefined! To solve this I copied the .config file of ...
1
vote
2answers
586 views

Kernel module for Cisco VPN client doesn't compile under ubuntu 10.04 LTS?

I am trying to install a Cisco VPN client under Ubuntu 10.04 LTS. In the extracted folder I type: alex@alex-laptop:~/Downloads/cisco4.8/vpnclient$ sudo ./vpn_install and there is output of activity ...
1
vote
1answer
156 views

How can I install hulahop

I cloned hulahop via git and I'd like to use it and try to run this example. I have a problem to find out how to build and install it. I also tried to install it with apt-get but I don't have this ...
1
vote
2answers
140 views

DocBook DSSSL test failure

So I followed these (Linux From Scratch) instructions to test my build of DocBook DSSSL, and I get this: $ onsgmls -sv test.sgm onsgmls:I: "OpenSP" version "1.5.2" onsgmls:test.sgm:1:61:W: cannot ...
0
votes
0answers
19 views

How to generate a new rootfs and add blobs

Before reading this question please take two seconds to read my last questions : How to add folders and file before compiling kernel To sum up I want to add a folder @ rootfs which one has to hold ...
0
votes
1answer
70 views

Install libxcb from source

I try to install libxcb from source, but I have an error, I do not understand why, this the error: configure: error: Package requirements (pthread-stubs xau >= 0.99.2) were not met: No package ...
0
votes
2answers
50 views

compiling bash 4.2 with patches

I want to compile bash 4.2 from source. but http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz is more 2 years old. Should i apply all the patches from http://ftp.gnu.org/gnu/bash/bash-4.2-patches?