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
1answer
42 views

How to study the linux kernel source? [closed]

I have finished studying Operating Systems about a year ago, and now I'm interested in linux. So I plan to study Linux from the source code. But when I look at the source code, it is really big in ...
1
vote
1answer
20 views

Merging text file directories

I have two directories: Libc-825 and Libc-1044. Imagine that version 1044 is newer, but buggy. Is there a way to merge these file trees? I have there C sources with not so big differences. I have ...
0
votes
1answer
19 views

JDK 1.4.2 - where can I download the source?

I want to install Java JRE 1.4.2 or JDK 1.4.2 on a recent Amazon Linux server. The best option so far seems to install from source. However - where can I download this? I believe 1.4 is still from the ...
0
votes
0answers
20 views

Putting RPM files along with Proprietary source code in common repository

We have a large Repository of Proprietary source code (C, C++, PerlScripts, MakeFiles) which does not contain the compiled object files. When running the Build Process on a workspace, the object files ...
0
votes
0answers
10 views

problems installing Banshee from source

I'm running VOID linux on a HP 6930p laptop, and I am trying to install Banshee from source. As I am working on getting all of the depends installed When I run ./configure I now get this message. ...
1
vote
1answer
45 views

Setting env variable through script on current session

Is there a possible way of setting env variable through script on current session. I have tried source option. But this works on the shell not through script. here is my script content source ...
27
votes
10answers
3k views

Why are programs not distributed in compiled format?

But they give instructions like cd downloaded_program ./configure make install This creates the ELF that is needed, and probably some .so files. Why not put those inside a zip file for download, ...
1
vote
2answers
34 views

OpenBSD: is safe to delete /usr/src?

After I successfully upgraded OpenBSD, I wanted to upgrade my sources. I want to know, is it safer to delete /usr/src and then extract src.tar.gz, or is it better to preserve the already existing ...
3
votes
3answers
98 views

common environment variable to set dark or light terminal background

I have written a number of debuggers that all can colorize source code text shown in a terminal session. They all understand that some terminals have a dark background and some have a light background ...
0
votes
0answers
58 views

Difference between two almost same command

Please consider two following command: $ echo ls | xargs -I cmd echo cmd | source /dev/stdin $ echo ls | source /dev/stdin What's the difference between these commands? In my machine the result of ...
0
votes
1answer
451 views

What happen to outdates sources.list files?

I have an old Kali Linux 1.1.0a on an USB stick and tried to install today on an old laptop. During installation i get errors fetching from web mirror and also after rebooting into the newly installed ...
5
votes
1answer
642 views

Where is `scanf` implementation source code?

I want to find C source code for scanf implementation on Linux machine. Googling to find scanf implementation does not tell me the way to find it. I tried to find that source code from gcc source tree ...
0
votes
1answer
86 views

Installing libusb 1.0.9 on Debian 8 Jessie

I am new to Linux so I don't really know how to install from source. I went to libusb.org and downloaded the latest version of libusb. Where do I put it? When I follow the install instructions, ...
0
votes
1answer
45 views

Building projects from source - determining / changing bin location?

I have pulled down a git repository for Ansible and followed the instructions to build it. I'm not familiar with the process of building from source and am somewhat confused. ...
1
vote
1answer
53 views

How to find my CPU's drivers source?

I would like to read my CPU's open source drivers. I assume that drivers are located in kernel sources - how can I find out what driver is my CPU using, and where can I find this driver?
0
votes
0answers
156 views

Error while trying to compile/install kernel, 4.1.6 on Ubuntu 15.04

I'm trying kernel compilation in Linux for the first time. I'm using the guide here to learn the basics. I'm able to pull the source code from the git repository, and can compile it. However, I run ...
6
votes
4answers
207 views

How to know the source repository of a package in debian?

In Debian, AFAIK some packages are maintained in subversion, while some are maintained in git, some are maintained in Subversion/SVN (famously team-pkg-gnome) and others in some other VCS. Is there ...
0
votes
0answers
86 views

Installing libx11-devel from source, error in string.h

I'm running Linux version 2.6.32-504.8.1.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) and trying to install libX11-devel from source on a ...
0
votes
1answer
47 views

/usr/share/src?

Source code is text; text is architecture-independent data (i.e., /usr/shareable). Would it be, for some reason, a bad idea to have /usr/src/ link into /usr/share/src in a Linux distro?
1
vote
2answers
101 views

Best way to make variables local in a source'd bash script?

I have a bash script that generates a report on the progress of some long-running jobs on the machine. Basically, this parent script loops through a list of child scripts (calling them all with ...
1
vote
2answers
159 views

How to get the name of USB driver in use in linux

I'm running Ubuntu 14.04 on my laptop. I'm having USB related issues in my laptop. It works sometimes and sometimes doesn't. I thought of fixing the issue myself. So, I wanted to know if there is a ...
0
votes
0answers
44 views

Man-pages don't include all relevant information

Consider the man-page of this function: sysconf It doesn't have all the information that I need (e.g. all the system variables to be queried). This is an example of what I need: ...
0
votes
1answer
110 views

How can I uninstall MySQL if I have compiled it from source?

I'm trying to uninstall MySQL but when I get inside the directory and type make uninstall It get: make: *** No rule to make target `uninstall'. Stop. I've read that I have to delete all ...
0
votes
1answer
20 views

Where is RAX-ARGOFFSET defined?

In Linux 3.16, in asm/x86/kernel/entry_64.S, the following line references RAX-ARGOFFSET (also see [src]): 424 movq %rax,RAX-ARGOFFSET(%rsp) But I can not find where RAX-ARGOFFSET is ...
1
vote
2answers
113 views

How to create source deb for package with binaries and non-binaries?

I am currently making a deb package with a collection of plain programs (e.g. shell scripts, python code, etc) and binaries (C code compiled with gcc). In order to meet the guidelines for package ...
0
votes
0answers
85 views

How to get source of packages in Manjaro

I am trying to study the source code of popular packages as a learning method. I am running Manjaro 0.8.13, and it says it is based on Arch Linux. I've used Arch before, so I know it has the ABS to ...
0
votes
1answer
198 views

Editing make process?

So.. I figure this is alright to ask around here. https://github.com/swarren/u-boot — I have this, need to get the binary so I can finally run something other than Raspbian on the Pi. The ...
1
vote
1answer
118 views

Compiling Python 2.7.10 Error

I want to add Python 2.7 to my Unix. I downloaded the sources to the VirtualBox on which the Unix is installed and run ./configure --prefix=/usr \ --enable-shared \ ...
-1
votes
2answers
651 views

Need advice fixing this source error in Kali Linux

W: GPG error: http://http.kali `enter code here`.org kali Release: The following signatures were invalid: BADSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org> *This is the result i ...
0
votes
1answer
1k views

Mediatomb apt source on Debian Jessie

I would like to install Mediatomb on my Debian Jessie. I keep seeing everywhere that people install it as simple as sudo apt-get install mediatomb but apparently I don't have mediatomb in my ...
3
votes
5answers
403 views

source multiple files and output one file

I have a file name "conf1" containing variables like: name='john' last='' custom='1000' and another file name conf2 like this: name='john' last='star' I want to merge between them to one file ...
4
votes
1answer
58 views

Do I have to publish kernel source if I release a custom kernel?

I have a kernel for an android phone ready for release. I always have the current source code already pushed to GitHub for release builds. However, I also have an experimental folder on my server ...
-1
votes
1answer
170 views

How can I execute and export in a single shellscript

I have two shell scripts. $ cat java_alternative_7 #!/bin/sh sudo update-java-alternatives -s java-7-oracle $ cat java_home_7 #!/bin/sh export JAVA_HOME=/usr/lib/jvm/java-7-oracle It's simple that ...
1
vote
2answers
53 views

Getting the diff of a package update

Before (or after) updating a package with apt-get update, how can I view the source code diff between the the new and the old version?
1
vote
1answer
110 views

How to manage Debian source code packages using aptitude or apt?

Background: I would like to regularly download and install source to /usr/src for certain important development packages. (For me: Qt5 and friends.) I have seen this other question about one-time ...
2
votes
1answer
1k views

Installing latest libcurl on debian from source

So I need libcurl (dev) on my debian 8 machine. I have two issues with this: A) apt-get install libcurl-dev gives me an error: E: Package 'libcurl-dev' has no installation candidate B) It's pretty ...
1
vote
3answers
75 views

How do I find all and any 'C' files which are in Debian archive (either in source or in binary)

How do I find all the files either in source or in binary form in Debian package archive? I tried the following but results were not helpful at all: apt-file search *.c and apt-file search *.cc ...
1
vote
2answers
119 views

How to test modified FreeBSD source code?

I am trying to modify the default congestion control algorithm in FreeBSD (NewReno) by creating a copy of the source file (cc_newreno.c, located in /usr/src/sys/netinet/cc) called cc_newreno_mod.c and ...
1
vote
1answer
18 views

Recreation of apt based source download

Source for a apt package can be obtained with the command: apt-get source foo This produces a directory with four entries in it: a directory of source and three files, foo*****.dsc, foo*****.tar.gz ...
1
vote
2answers
104 views

Unpacking source Debian package that has a tar.xz

I've download the .tar.gz, .dsc and .diff.gz of the bash package from Wheezy: https://packages.debian.org/wheezy/bash. Then I ran dpkg-source -x on the dsc file to unpack it, and this is the result: ...
5
votes
1answer
74 views

Find out which kernel source files were used when kernel was compiled

I am compiling the Linux kernel for my specific hardware and I only select the drivers/options which I really need. This is in contrast to a typical distribution kernel, where they compile almost ...
0
votes
1answer
233 views

How to fetch source iproute(2.6.32.130) not patches

I want to look at the source of below package. [root@ovs-1 ~]# rpm -qa | grep iproute iproute-2.6.32-130.el6ost.netns.3.x86_64 I tried to install the src rpm as below, it showing below error. ...
4
votes
1answer
407 views

Get kernel source: apt-get install vs apt-get source

I'm looking forward to download a Linux Kernel to get to know how to modify it and how to compile it. I am using Debian distribution and I'm interested in the Debian-modified Linux Kernel rather than ...
1
vote
0answers
128 views

Source code of the patches for Shellshock

I have a project for my grad level OS class, and I have decided to choose the Shellshock vulnerability bugs as my topic. There is a lot of great information out there, but I was curious if it is ...
3
votes
1answer
214 views

Source code location for debugging on Debian?

From Debian's DebugPackage, I know the debug information file for an executable goes in /usr/lib/debug when creating two part executables (i.e., stripping the executable of its symbols and placing ...
4
votes
1answer
127 views

Is there any automatic tool for installing required libraries to compile a program from source?

I want to know if there is any tool that, given the output of configure, cmake, autoconf or whatever library/dependencies matcher you have; installs the required packages/sources for you from your ...
3
votes
1answer
66 views

How to update all Debian packages from source code?

For building packages from source code, there is apt-get source --compile pkg-name. But for it to work, one has to run apt-get build-dep pkg-name beforehand, which downloads binary packages. Is it ...
1
vote
1answer
63 views

Looking for ancient kernel source

I'm looking for an specific old kernel source namely 2.6.26.5 to build an exact replicate of an cross toolchain for an embedded target. Unfortunately all I can find is 2.6.26 in the kernel.org ...
2
votes
0answers
60 views

How to define ffmpeg's path during compilation of another software?

I'm trying to compile an opensource software that needs bleeding-edge ffmpeg, so I successfully compiled ffmpeg, but I don't want to run make install as it's not easy to be removed after my tests. ...
1
vote
0answers
299 views

Unable to source .profile and .nvm/nvm.sh from .bashrc

I have configured my Ubuntu 14.04 with dotfiles found here Mathias Dotfiles. Everything is going smooth, I installed both RVM(Ruby Version Manager) and NVM(Node Version Manager). In order for both of ...