Questions tagged [source]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

can we compile source code of windows programs?

Forgive my lack of expertise, but I'm wondering if a source code for an open source windows program can be compiled and its executable used on Linux (without Wine). In my case it's Ant Renamer, which ...
ChameleonScales's user avatar
11 votes
3 answers
1k views

Why doesn't source lib/* work?

I have a small program which contains the following folder structure: - main.sh - lib/ - clean.sh - get.sh - index.sh - test.sh Each file contains a single function which I use in main.sh. ...
Philip Kirkbride's user avatar
1 vote
0 answers
2k views

Failed to fetch 'InRelease' in Debian9's apt

I want to update the source of apt, so I execute: apt update Then, error message is printed: Failed to fetch http://ftp.us.debian.org/debian/dists/stretch/InRelease Clearsigned file isn't valid, ...
KidM's user avatar
  • 11
0 votes
2 answers
257 views

mandoc installation problem

I have downloaded mandoc from mandoc | UNIX manpage compiler. I execute these command in my Ubuntu 14.04 to install- tar -xzvf mandoc.tar.gz cd mandoc-1.14.3 ./configure Then sudo make install ...
alhelal's user avatar
  • 1,301
0 votes
1 answer
673 views

How to make a binary or .deb from application built from source?

I built OpenCV library from source on Raspberry Pi 3 and I don't want to repeat same, time consuming task on my other Raspberry Pis. Is there any way to generate binary or deb files of the built ...
Akash Jobanputra's user avatar
9 votes
1 answer
51k views

nohup: failed to run command `.': Permission denied

I tried execute my script using: nohup . test.sh and nohup . ./test.sh However, I got: nohup: failed to run command `.': Permission denied each time. What I'm really trying to do is in my script ...
user994165's user avatar
21 votes
1 answer
10k views

Where can I find the source code for /bin/ip? [closed]

I've been using the command /bin/ip: ip addr add 10.10.10.0 dev eth0 I would like to see the source code of how the ip command works. Is it available?
Chadness3's user avatar
  • 337
10 votes
1 answer
1k views

where, oh where, has xml2 gone?

I've recommended the xml2 package several times. It's a useful tool to convert reasonably well-formed XML data into a line-oriented format that can be searched with grep or awk etc for simple ...
cas's user avatar
  • 78.6k
4 votes
1 answer
2k views

What sources to add in order to install cuda toolkit with apt on Debian? [duplicate]

I am new to Debian and I want to install the NVIDIA CUDA toolkit, so I typed: apt install nvidia-cuda-toolkit but it did not work, I found out I need to add a source in /etc/apt/sources.list which ...
sharkant's user avatar
  • 3,720
0 votes
1 answer
117 views

where to store files from source [closed]

New to Linux (kinda) I'm wanting to set up my system for building from source. I have read that packages built from source should go into /usr/local/src. However, I have also seen on other forums ...
m147's user avatar
  • 63
1 vote
1 answer
199 views

Don't search PATH when sourcing a file

Is there anyway in bash, and hopefully other shells (some portable method), to prevent ./source from searching the PATH variable?
Melab's user avatar
  • 4,048
0 votes
0 answers
139 views

Cannot build source from FreeBSD live CD

I screwed up my FreeBSD system, so I'm going to fix it from a FreeBSD live CD. First, I boot into the live CD, mount the partition where the broken system resides in with mount -t ufs /dev/ada0p5 /...
nalzok's user avatar
  • 369
1 vote
1 answer
617 views

FreeBSD: everything exited on signal 12 after "make buildworld"

I downloaded and compiled the source code of FreeBSD with: git clone https://github.com/freebsd/freebsd.git /usr/src cd /usr/src make clean make buildworld and literally everything would exit on ...
nalzok's user avatar
  • 369
0 votes
1 answer
1k views

Is it possible to cross-compile C++ source code, that was originally written for Microsoft's Windows to Gnu/linux?

I am trying to compile software that was meant for windows from source. The software I am specifically trying to compile is an application called Keeperfx for Dungeon Keeper. I enjoy that game so I ...
Ookinder's user avatar
  • 319
4 votes
1 answer
943 views

Why the different punctuation in Debian package file names vs source directory?

In a Debian archive file, the package name and the version string is typically separated by an underscore, for instance foo-bar_1.2.3.tar.gz. The top directory in the archive, on the other hand, has a ...
August Karlstrom's user avatar
21 votes
4 answers
22k views

Standard location for holding software source files

Is there a standard location in Linux for holding source files for example OpenSSL. I am building Nginx from source with non default version of OpenSSL. I need to download and untar OpenSSL and I did ...
user3448600's user avatar
0 votes
1 answer
3k views

source inside a shell script [closed]

config.sh hi="/home/user" date_sec=`date '+%s'` this is my file1. main.sh source config.sh cd $hi echo "$date_sec" The source is not working in main.sh
Madura's user avatar
  • 11
0 votes
1 answer
89 views

Easy way to determine what what functions from a package are used by a dependent package?

I'm working on stripping a system to the least amount of files, packages, etc.. that it needs to provide the functionality I desire. I'm finding that a lot of packages I would like to keep have ...
blanket_cat's user avatar
0 votes
1 answer
40 views

Can a non-shell executable `source` a file for the active shell?

When I'm using a shell, it is (AFAIK) impossible for a shell script which contains a source somefile line to affect the parent shell (unless the script was itself sourced, of course). I want to ...
iconoclast's user avatar
  • 9,198
-1 votes
1 answer
84 views

Modifying linux kernel GNU

How can I modify the kernel by modifying the GNU/linux line I need to change the finish line: #1 SMP Sun Mar 19 19:09:00 UTC 2017 i686 GNU/Linux #1 SMP Sun Mar 19 19:09:00 UTC 2017 i686 windows/...
Maximo's user avatar
  • 1
1 vote
1 answer
98 views

Building software from source on a rolling release distribution [closed]

On a rolling release distribution like openSUSE Tumbleweed, if one wanted to build some software from source, how often would these programs need to be rebuilt considering that dependencies installed ...
user981178's user avatar
  • 1,047
2 votes
1 answer
6k views

Understanding include directory in the linux kernel

Can anyone please explain me why the header files are separted into include directory as well as under arch? If I want to link my source code to include the header files, where should I actually take ...
infoclogged's user avatar
2 votes
1 answer
2k views

Why would a source file have the execute bit set?

In the standard library for ecliptic curve cryptography one of the C source files has the executable bit set, qv: As you can see there are multiple C files, but only the secp2561k1.c file is ...
Tyler Durden's user avatar
  • 5,651
2 votes
1 answer
89 views

Is there a way to query size of source files when downloading from Debian?

When we run apt, apt-get or aptitude we always know how much space would be needed in / and it's children (excepting /home/$username of course) . Now when we do an apt-get source (in userspace) there ...
shirish's user avatar
  • 12.4k
0 votes
2 answers
1k views

"merge" the contents of one shell script file into another

Having a "library" with constants and functions (lib.sh), I can include it in my script (script.sh) . /myfolder/lib.sh ...... Is there a way to merge the included file in the script (i.e. replace ./...
Ciprian Constantinescu's user avatar
-3 votes
1 answer
2k views

How to source a .csh file as well as open xilinx application in the terminal? [duplicate]

The environment variables are written to settings[32|64].(c)sh at /opt/Xilinx/14.7/ISE_DS. To launch the Xilinx tools, first source the settings script: C-shell 64 bit environment: source /opt/...
caleb's user avatar
  • 41
2 votes
1 answer
17k views

Bash: Syntax error near unexpected token `)'

I have created a shell script that uses information stored in a config file. The issue I am facing is when I try to pass certain values stored in the config file, for use by the shell script, I get a ...
Mitchell Cash's user avatar
1 vote
2 answers
3k views

Please explain linux kernel source code directories

Could someone explain how different folders in linux are connected? There a lot of interesting stuff like /arch, /security, /samples, /crypto and etc. Where do this files "go" after compilation? ...
shegeley's user avatar
2 votes
2 answers
3k views

Why isn't my .bashrc file being read from .profile

in my .profile file I have the line: # source bashrc if it exists if [ -f ~/.bashrc ]; then source ~/.bashrc fi to make sure that my .bashrc file is sourced if it exists. I also have a set up ...
Startec's user avatar
  • 1,879
20 votes
2 answers
102k views

bash: cannot set terminal process group (-1): Inappropriate ioctl for device

Trying to execute the source command using "lfs" user on ubuntu 14.04 and getting this: root@linux:~/lfs# su lfs - -c "source ~/.bash_profile" bash: cannot set terminal process group (-1): ...
sprocket12's user avatar
1 vote
2 answers
932 views

Call other scripts with source and make the call conditional with if statements

I have an rsync script which I have on various servers. Rather than re-writing it for specifics on each VM I thought of creting other scripts for the specifics and calling them with source. I'd ...
eekfonky's user avatar
  • 665
0 votes
0 answers
44 views

How can I find functions containing direct memory access in a device driver?

In a given Linux distribution's source code, how can I track down the files and functions that directly access memory registers for peripherals? I'm doing embedded development on several different ...
Jason's user avatar
  • 101
0 votes
1 answer
613 views

Installing only a certain subpackage from src.RPM, Raspbian

Attempting to install setroubleshoot-server from source, as there are no ARM71 packages(error recieved from Alien rpm package installer when using arm7hl). Default compilation from an extracted src....
99ytrewq911's user avatar
0 votes
0 answers
2k views

Why can't I install bc on my Raspberry Pi? [duplicate]

When I try to run the command sudo apt-get install bc I get the following error message: Reading package lists... Done Building dependency tree Reading state information... Done Package munin-...
Isabel Alphonse's user avatar
0 votes
1 answer
223 views

Command that indents lines of a C source file

I need a way to auto-indent blocks on a C source file within the terminal. According to the norms. Before: int main() { puts("Hello world"); } After: int main() { puts("Hello world"); }
Cosmin Serdean's user avatar
5 votes
1 answer
11k views

Install OpenSSL from source [duplicate]

I installed OpenSSL from source by: wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz tar -xvzf openssl-1.0.2h.tar.gz cd openssl-1.0.2h/ ./config --prefix=/usr/local/openssl --openssldir=/usr/...
Alex's user avatar
  • 407
66 votes
8 answers
14k views

Why does Bash's source not need the execution bit?

With Bash's source it is possible to execute a script without an execution bit set. This is documented and expected behaviour, but isn't this against the use of an execution bit? I know, that source ...
Motte001's user avatar
  • 1,220
5 votes
0 answers
2k views

Boost: compile latest source or use add-apt-repository? [closed]

Boost: compile latest source or use add-apt-repository I’m at a junction should I go one way or another…? Boost 1.55 is part of Raspian Jessie stable, and the advice when installing Domoticz is to ...
Geoff's user avatar
  • 196
2 votes
2 answers
2k views

bash source script.sh with exit 0

I use a lot of external files in my scripts. But I have a problem, that if I source a file with exit in the contents of the file, the script exits from loading and the strings that I want to use are ...
Gorgone Impertinence's user avatar
4 votes
2 answers
4k views

Where to find the source code for the Almquist Shell?

I'm learning the Unix shell command language looking for a repository that contains the source code for the Almquist shell ("ash" / "dash") but I could not find it. Can you help me find the source? I'...
Niklas Rosencrantz's user avatar
9 votes
2 answers
8k views

Systemd bash builtins

I have an application that needs to use the commando source for setting his environment file. [Unit] Description=Programname After=syslog.target network.target [Service] User=root ExecStartPre=...
Tom's user avatar
  • 221
1 vote
1 answer
1k views

Why do the Linux kernel headers contain references to nonexistent headers?

I'm trying to build IBCS (source here) on Ubuntu 15.10 (Linux 4.2.35). This module is obviously pretty old, because its CONFIG.i386 file gives gcc an option -m486, which doesn't exist anymore, but ...
cat's user avatar
  • 3,468
0 votes
1 answer
381 views

Where is the kernel source for a cross-complied kernel rpi

I have cross-compiled and installed the Linux kernel with the real-time patch, version 3.18.16-rt13-v7+, on a raspberrypi but then I can't find the current kernel source in /usr/src. Then I tried the ...
luhan's user avatar
  • 1
2 votes
2 answers
19k views

Can't find source package with apt-get source on Debian Squeeze

I have an old server running Debian Squeeze. I'm trying to download the source of some package so that I can patch it manually. However, apt-get source fails for every package I try. An example: root@...
Echows's user avatar
  • 247
6 votes
2 answers
13k views

What is a kernel-source-tree?

What is the Linux kernel source tree? What does it contain and what is its purpose? I'm trying to build an external module and the tutorial I'm using says to make sure that a kernel source tree is ...
TheEagle's user avatar
0 votes
1 answer
6k views

How to change Linux kernel version

I have downloaded and unzipped the Linux Kernel. What file(s) in kernel source file(s) are responsible for displaying Version string in uname ? I want set version to 10, without dots 10.0.5 # uname -...
Oleg Repetko's user avatar
0 votes
3 answers
245 views

See content of sourced script

When I source a script in bash, is there a possibility to look at the script, that I just sourced, without accessing the script itself?
pfnuesel's user avatar
  • 5,837
1 vote
1 answer
598 views

Can't find GNU Icecat (or Firefox) source code

I've been using GNU Icecat Browser (libre Firefox version made by Gnuzilla) for some weeks. I've been diving through its menus and I found an error: When I get into the 'Customize Mode' (the one that ...
xvlaze's user avatar
  • 289
1 vote
1 answer
52 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 ...
Top Sekret's user avatar
1 vote
2 answers
5k 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 ...
SPRBRN's user avatar
  • 1,117

1 2 3
4
5
7