Blog

How to Install the IBM Cloud Functions on Linux Mint

[{"Id":"201908192136440761","ParentId":"20190819205814809855","Type":"Text","Sequence":1,"Attributes":{"Text":"Attempting to install the IBM Cloud Developer Tools on Linux Mint 19.2 (Tina) will throw an error like the one below."}},{"Id":"201908192140410046","ParentId":"20190819205814809855","Type":"Code","Sequence":2,"Attributes":{"Language":"html","Code":"[main] --==[ IBM Cloud Developer Tools for Linux/MacOS - Installer, v1.2.3 ]==--\r\n[main] WARN: Linux has only been tested on Ubuntu, RedHat, Centos, Debian and Fedora distrubutions please let us know if you use this utility on other Distros\r\n[install] Starting Installation...\r\n[install] Note: You may be prompted for your 'sudo' password during install.\r\n[install_deps] ERROR: This script has not been updated for use with your linux distribution (Linux Mint 19.2 Tina) "}},{"Id":"201908192138410743","ParentId":"20190819205814809855","Type":"Text","Sequence":3,"Attributes":{"Text":"In any case none of this is making sense as Linux Mint is actually based on Ubuntu. Therefore anything that works on Ubuntu should pretty much automatically work on Linux Mint."}},{"Id":"201908192147330418","ParentId":"20190819205814809855","Type":"Heading","Sequence":4,"Attributes":{"Level":"2","Text":"Solution. Do a Small Change to the IBM Cloud Developer Tools Installer"}},{"Id":"201908192148300563","ParentId":"20190819205814809855","Type":"Text","Sequence":5,"Attributes":{"Text":"1) Download the installer"}},{"Id":"201908192147150828","ParentId":"20190819205814809855","Type":"Code","Sequence":6,"Attributes":{"Language":"html","Code":"wget https://ibm.biz/idt-installer"}},{"Id":"201908192148520533","ParentId":"20190819205814809855","Type":"Text","Sequence":7,"Attributes":{"Text":"2) Edit the installer and replace the line below to include Linux Mint. "}},{"Id":"201908192151040870","ParentId":"20190819205814809855","Type":"Code","Sequence":8,"Attributes":{"Language":"","Code":"if [[ \"${DISTRO}\" == *Ubuntu* || \"${DISTRO}\" == *Debian*]]; then"}},{"Id":"201908192151040476","ParentId":"20190819205814809855","Type":"Code","Sequence":9,"Attributes":{"Language":"html","Code":"if [[ \"${DISTRO}\" == *Ubuntu* || \"${DISTRO}\" == *Debian* || \"${DISTRO}\" == *Mint* ]]; then\r\n"}},{"Id":"201908192148530234","ParentId":"20190819205814809855","Type":"Text","Sequence":10,"Attributes":{"Text":"Execute the installer to complete the installation."}},{"Id":"201908192151030154","ParentId":"20190819205814809855","Type":"Code","Sequence":11,"Attributes":{"Language":"html","Code":"bash idt-installer"}},{"Id":"201908192148530752","ParentId":"20190819205814809855","Type":"Text","Sequence":12,"Attributes":{"Text":"Execute the following commands to complete the setup of the IBM Cloud Developer Tools."}},{"Id":"201908192151030869","ParentId":"20190819205814809855","Type":"Code","Sequence":13,"Attributes":{"Language":"html","Code":"ibmcloud dev help\r\nibmcloud login\r\nibmcloud login -o ORGANISATION -s SPACE\r\nibmcloud wsk property get --auth"}},{"Id":"201908192148540236","ParentId":"20190819205814809855","Type":"Text","Sequence":14,"Attributes":{"Text":"Hooray, you have successfully installed IBM Cloud Developer Tools on your Linux Mint OS."}}]