Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [source]

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

0
votes
0answers
16 views

Install udunits2-devel from source CentOS 7?

I'm getting the following error when trying to install the sf package in R (R/3.4.2/gcc7.2.0) on CentOS 7. install.packages('sf') ---------------------------------------------------------------------...
0
votes
1answer
39 views

How is source code reviewed/audited, prior to inclusion in linux mainline?

An answer to this question would provide insight and references about how the linux kernel source code is reviewed prior to be released? Particular interesting aspect of this question to me are: Who ...
1
vote
1answer
20 views

Locating source files for arch linux executables

Is there a simple way to retrieve the source files that built a given /usr/bin/* command (meaning also those placed there via AUR)? Is there a command I can issue through maybe a pacman wrapper that ...
1
vote
1answer
32 views

Difference in openjdk-6, openjdk-7, and openjdk-8 in terms of SLOC count?

I'm calculating SLOC (Source Lines of Code) count of some of the packages for my research purposes. I'm downloading source of packages for different years from Debian snapshots. For most of the ...
0
votes
0answers
22 views

Location of source code for gnome-desktop-item-edit

I can't seem to find the project code from: "gnome-desktop-item-edit". I've looked in the GitHub and GitLab mirrors but could not find anything with that name, or anything similar. I've also tried ...
0
votes
0answers
42 views

Adding some alias with bash script and sourcing the .bashrc file from within the script

Hi I am trying to automate some post-installation tasks and to have them documented on my github account. That's why I am writing a script to install some additional packets and to add couple of new ...
0
votes
2answers
56 views

Where should I put my source code? [duplicate]

I am using multiple tools developed by the suckless people which are not configured via a config file but via their source code (in this case C) and then simply installed through make install. So I am ...
0
votes
1answer
50 views

How to automate a source command

I have to run a command every morning after I log on to the server to enable certain company specific functionalities. The command looks like this: source /data/dev/int/default/somethingsomething.env ...
1
vote
0answers
66 views

Could NOT find LLVM (missing: LLVM_DIR)

I'm trying to install darktable from source on Fedora 27. I've installed all dependencies, but when I run cmake I got error: -- Could NOT find LLVM (missing: LLVM_DIR) CMake Warning at CMakeLists.txt:...
0
votes
1answer
38 views

The command can't execute in vim environment

The mycommand is a function in my lib/work.sh file. cat .bashrc source /home/lib/work.sh It means that mycommand was sourced in automatically. mycommand can execute in terminal. Now to edit a file ...
0
votes
1answer
67 views

Ubuntu from scratch

Is it possible to compile each and every package (that come up with Ubuntu Installation ISO) from scratch and come up with home-made-compiled Ubuntu variant ? Where I can see, what config parameters/...
2
votes
2answers
57 views

Source of Debian packages older than 2005

I want to download packages for years 2000, 2001, 2002, 2003 and 2004 but Debian snapshots are maintained from March 2005 only. How can I get the source of packages before 2005?
2
votes
2answers
327 views

How to correctly install Git 2.17.1 from source on CentOS 7.4?

I need help on installing the latest available git today (git-2.17.1), on CentOS 7.4, because some applications are complaining for it, and not only. I'm trying to install git-2.17.1 from source on ...
1
vote
1answer
37 views

Does `exec < somefile` behave the same as `source somefile`

$ cat somefile sleep 100 $ exec < somefile $ sleep 100 Does exec < somefile behave the same as source somefile except that its invoking process terminates upon its completion? Thanks.
0
votes
1answer
75 views

Error Whle compiling software. “Unable to find the 'dump_syms'”

I am trying to compile the Atom text editor from source, and I'm stuck at the following error. I think its related to java. I've looked online for information on this particular error, but I haven't ...
0
votes
5answers
87 views

Strategy for forgetting to run a script with `source`?

I would like to write a script to access the state of an interactive bash shell, e.g. the script contains commands such as jobs, dirs, pushd and popd. So my strategy is to source the script in the ...
0
votes
0answers
24 views

How can we get the pathname to a script within itself, when `source` it? [duplicate]

I have a script to verify the positional parameters it receives $ cat myscript #! /bin/bash echo $0 echo $1 echo $2 When I run it via different ways $ ./myscript ./myscript $ bash ./myscript ....
0
votes
1answer
60 views

What's the best, secure way to share some .bashrc source between users and root?

How's the best, secure way to have /root/.bashrc and /home/user/.bashrc include a common .bash.shared file? In other words like this: /root/.bashrc --sources--> .bash.shared <--sources-- /...
2
votes
1answer
2k views

How to Change Mirrors in sources.list Automatically? [duplicate]

This is what my sources.list looks like currently: deb http://ftp.us.debian.org/debian/ jessie main deb-src http://ftp.us.debian.org/debian/ jessie main deb http://security.debian.org/ jessie/...
0
votes
1answer
44 views

Bash function call from script file fails, while call from terminal succeeds

In Ubuntu 16.04 with Bash I created a file $HOME/ulcwe/software_internal.sh that contains a function rse() without a call. The file is sourced in ~/.bashrc (which was sourced by itself) and I can can ...
-2
votes
1answer
50 views

Where are stored sources of compiled programs? [closed]

I want to find exact source code of compiled program in Linux/Unix systems. for illustration: computer:/ username$ whereis ping /sbin/ping And the task is to find the source code of /sbin/ping.
-1
votes
1answer
56 views

Correct way to call a Bash function from all sessions

I use Ubuntu with Bash and I have a file hosting a script with 5 functions. Sometimes I want to call some function of these functions (but not all of them), directly from the CLI. I could say it's ...
-1
votes
1answer
51 views

I source a file each day - is it dangerous by means of filling up the disk drive? [closed]

I source a file each day - is it dangerous by means of filling up the disk drive (if something is written anywhere)? Someone once criticized me here in StackExchange for sourcing a file each minute (...
1
vote
1answer
182 views

Debian script to download source of installed packages fails

I used the next script from askububtu to automate the download of all installed packages in a fresh debian 9.3 LXDE installation. From here: #!/bin/bash dpkg --get-selections | while read line do ...
0
votes
0answers
39 views

How does FreeBSD create regional files used to define charset sort order (LC_COLLATE/locale/colldef)

Disclaimer: I am aware this is advanced stuff, "off the beaten track, and could blow up my system, cause a rain of frogs, or have unknowable strange unpredictable side effects. That said..... ...
1
vote
2answers
75 views

How to make apt read a different sources.list

I am trying to install a program for my user because I don't have sudo privileges. I tried to install dos2unix package as follows: apt-get source dos2unix ./configure --prefix=$HOME/myapps make ...
0
votes
0answers
22 views

export variables from a file [duplicate]

I found something interesting about export. Saying that I have such a script named t.sh as below: #!/bin/sh export TEST=1 If I do ./t.sh in a terminal and then execute echo $TEST, I will get ...
-2
votes
1answer
49 views

Sourcing works manually but fails when done from script [duplicate]

Using curl as in: bash <(curl -s https://raw.githubusercontent.com/user/repo/master/script.sh | tr -d '\r') I executed some remote script. The remote script includes the following two aspects: ...
-3
votes
1answer
73 views

Create/change a file and source it - both in one line

I desire a command that creates/changes some file and then source that file, all in one line, in Bash. It's important for me to know if it's possible (or why it isn't), as this could help saving a ...
6
votes
7answers
2k views

Opposite of the `source` command

I use the source command in my bash script in order to read/print the variables values more linuxmachines_mount_point.txt export linuxmachine01="sdb sdc sdf sdd sde sdg" export linuxmachine02="sde ...
3
votes
1answer
123 views

Can you put multiple executable scripts in one directory, and by sourcing that directory make all of those commands available?

I want to put a bunch of executable scripts in the .command dir (which is also executable), and then only have to source that directory in my .bash_profile. Is this possible? I can get this to work ...
2
votes
4answers
2k views

Usage of Bang (!) in bash

I am reading the bash source code, and the BNF grammar for bash would be: <pipeline_command> ::= <pipeline> | '!' <pipeline> | <timespec&...
1
vote
2answers
325 views

What does $_, and $0 represent in sourced bash? [duplicate]

I am having troubles understanding variables {_,0} in the following example. In script tmp.sh: func() { echo $_ echo $0 echo $1 } calling tmp.sh with parameter x: ~$ ./tmp.sh x ./tmp.sh ./tmp.sh ...
0
votes
0answers
24 views

How to download from an untrusted source on Gallium OS?

I am trying to download Minecraft (from the official website). It downloads off of the internet fine but when I try to open it I am told that this is from an untrusted source and cannot be downloaded. ...
1
vote
1answer
97 views

Which sources make up the dotnet-sdk-2.0.2 package?

I have installed dotnet-sdk-2.0.2 the .NET SDK as packaged for Debian but I can't find the source packages. What sources are used to compile this package and it's dependencies? I imagine it includes ...
0
votes
2answers
3k views

debian configure: error: “libcurl not found”

I'm running Debian 8.9 Jessie on a Linux 2.6.32-openvz-042stab120.11-amd64 OpenVZ container. I'm trying to use curlftpfs 0.9.1 as this version has a functionality that was removed in later versions - ...
0
votes
1answer
308 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 ...
11
votes
3answers
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. ...
1
vote
0answers
570 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, ...
0
votes
2answers
69 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 ...
0
votes
1answer
272 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 ...
3
votes
1answer
8k 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 ...
7
votes
1answer
2k 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?
4
votes
1answer
259 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 ...
3
votes
1answer
841 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 ...
0
votes
1answer
35 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 ...
0
votes
1answer
62 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?
0
votes
0answers
48 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 /...
1
vote
1answer
199 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 ...
0
votes
1answer
434 views

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

I would like to let you guys know before I start that I do have some knowledge of what I am doing, but I am completely new to compiling. I understand things like make and ./configure and that, but ...