Compiling is the process of transforming source code into byte codes for a particular computer architecture.
14
votes
5answers
352 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 ...
43
votes
16answers
3k 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?
13
votes
5answers
594 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
2k 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 ...
8
votes
2answers
173 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 ...
4
votes
3answers
541 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 ...
0
votes
1answer
155 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)
...
53
votes
12answers
4k 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?
14
votes
5answers
907 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 ...
19
votes
2answers
1k 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 ...
6
votes
2answers
950 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
207 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
341 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 ...
4
votes
2answers
163 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
1answer
255 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
868 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 ...
3
votes
1answer
129 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
4answers
1k 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.
...
2
votes
2answers
238 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
2answers
2k 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 ...
2
votes
4answers
611 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 ...
2
votes
3answers
1k 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
2answers
171 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 ...
1
vote
2answers
123 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
128 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
563 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
1k 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
1answer
397 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
140 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
130 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 ...
