Everything that includes the source code of Unix programs for example compiling, installing or how to retrieve the code for studying.

learn more… | top users | synonyms

1
vote
2answers
176 views

How can I compile unclutter to my embedded linux? (newbie)

I got the source code of unclutter using apt-get source unclutter, and copied the files to my embedded system. Now, how can I compile it? --update I've tried this answer: How to compile and install ...
3
votes
2answers
6k views

Passing a variable to a bash script when sourcing it in another bash script?

Suppose I have in main.sh: NAME="$HOME" if [ -f "$HOME/install.sh" ] then . "$HOME/install.sh" "$NAME" fi and in install.sh: echo $1 This is supposed to echo /home/user/, but it echoes ...
20
votes
6answers
8k views

determining path to sourced shell script

Is there a way for a sourced shell script to find out the path to itself? I'm mainly concerned with bash, though I have some coworkers who use tcsh. I'm guessing I may not have a ton of luck here, ...
1
vote
3answers
88 views

What's up with the metadata in the source? Are there tools for it?

I'm comparing two different kernel versions (one official, one from a manufacturer); there are thousands of file whose only difference is in metadata in the files. The metadata looks like '$:Key: ...
5
votes
4answers
106 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?
3
votes
3answers
104 views

Where can I find sources for

Emacs lisp source code for .elc files? e.g. cal-mayan.elc Files in the /bin directory? e.g. cat, split, and echo
285
votes
7answers
25k views

How can I find the implementations of Linux kernel system calls?

I am trying to understand how a function, say mkdir, works by looking at the kernel source. This is an attempt to understand the kernel internals and navigate between various functions. I know mkdir ...
3
votes
1answer
513 views

What does 'mergemaster' do that 'make distribution' doesn't?

After calling make installworld (or make world), there are two ways of updating source files in the new world: calling mergemaster -p or make distribution. I know that mergemaster calls make ...
15
votes
5answers
941 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 ...
14
votes
13answers
1k views

Distros that support compiling from source

A long time ago I used to use FreeBSD with its ports system and after that Gentoo for portage in order to install applications via compiling from source. I did this in order to directly target my ...