094cb18b58dd42d4ae4db4d5c6e8f13ff9ae3177
[AGL/documentation.git] / docs / 3_Developer_Guides / 2_Building_Microservices_Natively / 3_installing-binder-daemon.md
1 ---
2 edit_link: ''
3 title: Installing the Binder Daemon
4 origin_url: >-
5   https://raw.githubusercontent.com/automotive-grade-linux/docs-sources/master/agl-documentation/host-configuration/docs/3-installing-binder-daemon.md
6 ---
7
8 <!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/devguides/master/host-configuration-developer-guides-devguides-book.yml -->
9
10 # Installing the Binder Daemon
11
12 The Application Framework Binder Daemon (`afb-daemon`), which is a part of
13 the AGL Application Framework, provides a way to connect applications to
14 required services.\
15 It provides a fast way to securely offer APIs to applications that are
16 written in any language and that can run almost anywhere.
17
18 You can learn more about the AGL Application Framework in the
19 "[AGL Framework Overview](../../apis_services/reference/af-main/0-introduction.html)"
20 section.\
21 You can learn more about the `aft-daemon` in the
22 "[Binder Overview](../../apis_services/reference/af-binder/afb-overview.html)"
23 section.
24
25 ## Installing on Debian
26
27 Use the following commands if your native Linux machine uses the Debian
28 distribution:
29
30 ```bash
31 sudo apt-get install agl-app-framework-binder-dev
32 ```
33
34 ## Installing on OpenSUSE
35
36 Use the following commands if your native Linux machine uses the OpenSUSE
37 distribution:
38
39 ```bash
40 sudo zypper install agl-app-framework-binder-devel
41 ```
42
43 ## Installing on Fedora
44
45 Use the following commands if your native Linux machine uses the Fedora
46 distribution:
47
48 ```bash
49 sudo dnf install agl-app-framework-binder-devel
50 ```
51
52 ## Setting Your Environment Variables
53
54 Regardless of your system's distribution, you need to set certain environment
55 variables correctly in order to use the daemon (i.e. `app-framework-binder`).
56
57 Commands that define and export these environment variables exist in the
58 `agl-app-framework-binder.sh` file, which is created when
59 you install the daemon:
60
61 ```bash
62 #----------  AGL %{name} options Start ---------"
63 # Object: AGL cmake option for  binder/bindings
64 export LD_LIBRARY_PATH=/opt/AGL/lib64:${LD_LIBRARY_PATH}
65 export LIBRARY_PATH=/opt/AGL/lib64:${LIBRARY_PATH}
66 export PKG_CONFIG_PATH=/opt/AGL/lib64/pkgconfig:${PKG_CONFIG_PATH}
67 export PATH=/opt/AGL/bin:$PATH
68 #----------  AGL options End ---------
69 ```
70
71 You can make sure these environment variables are correctly set by doing
72 one of the following:
73
74 * **Logout and Log Back In:**
75
76   Logging out and then logging back in correctly sets the environment
77   variables.
78
79 * **Manually Source the `agl-app-framework-binder.sh` File:**
80
81   Source the following command:
82
83   ```bash
84   source /etc/profile.d/agl-app-framework-binder.sh
85   ```
86
87   **NOTE:**
88   Creating a new session automatically sources the `agl-app-framework-binder.sh`
89   file.