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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [source]

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

1
vote
0answers
13 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
26 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
54 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
56 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
273 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
36 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
0answers
54 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
83 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
23 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
51 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-- /...
1
vote
1answer
804 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
42 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
48 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
55 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
50 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
137 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
27 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
63 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
19 views

export variables from a file [duplicate]

I'm a newbie on Linux and 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 ...
-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
6answers
1k 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
120 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
1k 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
228 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
23 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
85 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 ...
-1
votes
2answers
2k 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
243 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
470 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
61 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
266 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
7k 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 ...
6
votes
1answer
1k 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
215 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
707 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
34 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
52 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
44 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
181 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
367 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 ...
4
votes
1answer
137 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 ...
12
votes
4answers
3k 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 ...
-1
votes
1answer
1k 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
0
votes
1answer
21 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 ...
0
votes
1answer
32 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 ...
-1
votes
1answer
46 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/...
1
vote
1answer
58 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 ...
1
vote
1answer
950 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 ...