File: profile

package info (click to toggle)
linuxbrew-wrapper 20180923-1
  • links: PTS, VCS
  • area: contrib
  • in suites: buster
  • size: 160 kB
  • sloc: ruby: 677; sh: 73; makefile: 6
file content (51 lines) | stat: -rw-r--r-- 1,714 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Linuxbrew profile/bashrc example

# === [ Recommended ] ===
# Generally they are useful.

# for elf executables
export PATH="${HOME}/.linuxbrew/bin:${PATH}"
 
# for manpages
export MANPATH="${HOME}/.linuxbrew/share/man:${MANPATH}"
 
# for info pages
export INFOPATH="${HOME}/.linuxbrew/share/info:${INFOPATH}"
 
# === [ Extra ] ===
# Perhaps they are useful.

# [HOMEBREW_BOTTLE_DOMAIN]
#   Just like apt's sources.list, we can switch upstream to a mirror.
#   See upstream brew manpage.
#
#   export HOMEBREW_BOTTLE_DOMAIN=<HTTPS_YOUR_PREFERED_MIRROR_SITE>

# [LD_LIBRARY_PATH]
#   This environment variable tells ld.so where else to find .so files.
#   This is useful when you have built some programs which are linked with
#   the library packages installed with linuxbrew.
#   Note, this is NOT a new variable. See manpage ld.so (8).
#
#   export LD_LIBRARY_PATH="${HOME}/.linuxbrew/lib:${LD_LIBRARY_PATH}"

# [BREW_INCLUDE]
#   linuxbrew's include directory (development files)
#   this can be appended to the compiler argument list when you are
#   including library headers installed with linuxbrew, like this
#     $ gcc -I$BREW_INCLUDE ...
#
#   export BREW_INCLUDE="${HOME}/.linuxbrew/include"

# [BREW_LIB]
#   linuxbrew's library directory (shared objects)
#   this can be appended to compiler argument list when you are
#   linking to libraries installed with linuxbrew, like this 
#     $ gcc -L$BREW_LIB -l${THE_LIB_YOU_ARE_LINKING_WITH} ...
#
#   export BREW_LIB="${HOME}/.linuxbrew/lib"

# Hint: compiling and executing a C program linked against libraries
#       installed by linuxbrew.
#   $ gcc -I$BREW_INCLUDE -L$BREW_LIB -l$REQUIRED_LIBS foo.c
#   $ LD_LIBRARY_PATH=~/.linuxbrew/lib ./foo