chariot.js
Version:
An extremely lightweight and extensible Eris client framework
1 lines • 5.65 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{222:function(e,t,n){"use strict";n.r(t);var o=n(0),i=Object(o.a)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"content"},[e._m(0),e._v(" "),n("p",[e._v("Chariot.js can be installed with optional native dependencies which aren't required for running but enhance performance the larger the bot becomes. "),n("strong",[e._v("Skip to the "),n("router-link",{attrs:{to:"./installation.html"}},[e._v("Installation")]),e._v(" instructions if no optional dependencies are wished to be used.")],1)]),e._v(" "),n("p",[e._v("In order to successfully install Chariot.js with all optional native dependencies a working compiler environment needs to be running which node-gyp can use to build needed packages from source.")]),e._v(" "),e._m(1),e._v(" "),n("ul",[e._m(2),e._v(" "),e._m(3),e._v(" "),n("li",[e._v("A working C++ compiler toolset, like "),n("a",{attrs:{href:"https://gcc.gnu.org/",target:"_blank",rel:"noopener noreferrer"}},[e._v("GCC"),n("OutboundLink")],1)])]),e._v(" "),e._m(4),e._v(" "),e._m(5),e._v(" "),e._m(6),e._v(" "),e._m(7),e._v(" "),e._m(8),e._v(" "),n("p",[e._v("Python is already pre-installed on modern versions of macOS. To install Xcode, head over to the App Store ("),n("a",{attrs:{href:"https://developer.apple.com/xcode/download/",target:"_blank",rel:"noopener noreferrer"}},[e._v("or click here"),n("OutboundLink")],1),e._v(") and download Xcode. Follow the instructions to install Xcode. In addition to Xcode you'll also need the "),n("code",[e._v("Command Line Tools")]),e._v(". You can install those directly within Xcode. Open Xcode, then navigate to "),n("code",[e._v("Preferences")]),e._v(" or click "),n("code",[e._v("⌘ + ,")]),e._v(", then head to "),n("code",[e._v("Locations")]),e._v(". Alternatively, you can run this command in your Terminal of choice: "),n("code",[e._v("xcode-select --install")]),e._v(". This step will install "),n("code",[e._v("gcc")]),e._v(" and all related tools including e.g. "),n("code",[e._v("make")]),e._v(" needed to compile with node-gyp.")]),e._v(" "),e._m(9),e._v(" "),n("p",[e._v("You can install all required tools needed to compile with node-gyp by installing Microsoft's "),n("a",{attrs:{href:"https://github.com/felixrieseberg/windows-build-tools",target:"_blank",rel:"noopener noreferrer"}},[e._v("windows-build-tools"),n("OutboundLink")],1),e._v(" running following command in either an elevated PowerShell or CMD.exe (or any Terminal you like to use) running as administrator: "),n("code",[e._v("npm install --global --production windows-build-tools")]),e._v(".")])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("h1",{attrs:{id:"prerequisites"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[this._v("#")]),this._v(" Prerequisites")])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{attrs:{id:"🐧-on-unix"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#🐧-on-unix"}},[this._v("#")]),this._v(" 🐧 On Unix")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",[n("code",[e._v("python")]),e._v(" with a recommended version of "),n("code",[e._v("2.7")]),e._v(", "),n("code",[e._v("3.5")]),e._v(", "),n("code",[e._v("3.6")]),e._v(" or "),n("code",[e._v("3.7")]),e._v(" "),n("ul",[n("li",[n("strong",[e._v("Note:")]),e._v(" Python 3 is only officially supported as of node-gyp version "),n("code",[e._v("^5.0.5")])])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("code",[this._v("make")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("h4",{attrs:{id:"installation"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[this._v("#")]),this._v(" Installation:")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v("If using Ubuntu or any other Debian based flavor of Linux, Python usually is already installed, however if Python were to be missing, it can easily be install with "),n("code",[e._v("sudo apt-get install python")]),e._v(". Make sure a working Python installation is in place by checking the version number with "),n("code",[e._v("python -V")]),e._v(" or "),n("code",[e._v("python3 -V")]),e._v(". After assuring that Python is installed, installing a compiler toolset is as easy as running "),n("code",[e._v("sudo apt-get install build-essential")]),e._v(" to install all build tools needed for node-gyp.")])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{attrs:{id:"🍏-on-macos"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#🍏-on-macos"}},[this._v("#")]),this._v(" 🍏 On macOS")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",[n("li",[n("code",[e._v("python")]),e._v(" with a recommended version of "),n("code",[e._v("2.7")]),e._v(", "),n("code",[e._v("3.5")]),e._v(", "),n("code",[e._v("3.6")]),e._v(" or "),n("code",[e._v("3.7")]),e._v(" "),n("ul",[n("li",[n("strong",[e._v("Note:")]),e._v(" Python 3 is only officially supported as of node-gyp version "),n("code",[e._v("^5.0.5")])])])]),e._v(" "),n("li",[e._v("Xcode")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("h4",{attrs:{id:"installation-2"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#installation-2"}},[this._v("#")]),this._v(" Installation:")])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{attrs:{id:"🖥-on-windows"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#🖥-on-windows"}},[this._v("#")]),this._v(" 🖥 On Windows")])}],!1,null,null,null);t.default=i.exports}}]);