summaryrefslogtreecommitdiffstats
path: root/docs/3_Developer_Guides/2_Building_Microservices_Natively/3_installing-binder-daemon.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/3_Developer_Guides/2_Building_Microservices_Natively/3_installing-binder-daemon.md')
-rw-r--r--docs/3_Developer_Guides/2_Building_Microservices_Natively/3_installing-binder-daemon.md89
1 files changed, 89 insertions, 0 deletions
diff --git a/docs/3_Developer_Guides/2_Building_Microservices_Natively/3_installing-binder-daemon.md b/docs/3_Developer_Guides/2_Building_Microservices_Natively/3_installing-binder-daemon.md
new file mode 100644
index 0000000..094cb18
--- /dev/null
+++ b/docs/3_Developer_Guides/2_Building_Microservices_Natively/3_installing-binder-daemon.md
@@ -0,0 +1,89 @@
+---
+edit_link: ''
+title: Installing the Binder Daemon
+origin_url: >-
+ https://raw.githubusercontent.com/automotive-grade-linux/docs-sources/master/agl-documentation/host-configuration/docs/3-installing-binder-daemon.md
+---
+
+<!-- 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 -->
+
+# Installing the Binder Daemon
+
+The Application Framework Binder Daemon (`afb-daemon`), which is a part of
+the AGL Application Framework, provides a way to connect applications to
+required services.\
+It provides a fast way to securely offer APIs to applications that are
+written in any language and that can run almost anywhere.
+
+You can learn more about the AGL Application Framework in the
+"[AGL Framework Overview](../../apis_services/reference/af-main/0-introduction.html)"
+section.\
+You can learn more about the `aft-daemon` in the
+"[Binder Overview](../../apis_services/reference/af-binder/afb-overview.html)"
+section.
+
+## Installing on Debian
+
+Use the following commands if your native Linux machine uses the Debian
+distribution:
+
+```bash
+sudo apt-get install agl-app-framework-binder-dev
+```
+
+## Installing on OpenSUSE
+
+Use the following commands if your native Linux machine uses the OpenSUSE
+distribution:
+
+```bash
+sudo zypper install agl-app-framework-binder-devel
+```
+
+## Installing on Fedora
+
+Use the following commands if your native Linux machine uses the Fedora
+distribution:
+
+```bash
+sudo dnf install agl-app-framework-binder-devel
+```
+
+## Setting Your Environment Variables
+
+Regardless of your system's distribution, you need to set certain environment
+variables correctly in order to use the daemon (i.e. `app-framework-binder`).
+
+Commands that define and export these environment variables exist in the
+`agl-app-framework-binder.sh` file, which is created when
+you install the daemon:
+
+```bash
+#---------- AGL %{name} options Start ---------"
+# Object: AGL cmake option for binder/bindings
+export LD_LIBRARY_PATH=/opt/AGL/lib64:${LD_LIBRARY_PATH}
+export LIBRARY_PATH=/opt/AGL/lib64:${LIBRARY_PATH}
+export PKG_CONFIG_PATH=/opt/AGL/lib64/pkgconfig:${PKG_CONFIG_PATH}
+export PATH=/opt/AGL/bin:$PATH
+#---------- AGL options End ---------
+```
+
+You can make sure these environment variables are correctly set by doing
+one of the following:
+
+* **Logout and Log Back In:**
+
+ Logging out and then logging back in correctly sets the environment
+ variables.
+
+* **Manually Source the `agl-app-framework-binder.sh` File:**
+
+ Source the following command:
+
+ ```bash
+ source /etc/profile.d/agl-app-framework-binder.sh
+ ```
+
+ **NOTE:**
+ Creating a new session automatically sources the `agl-app-framework-binder.sh`
+ file.