If you use a x86_64 operating system, you will need to install lib32-* packages.
For do this you must add multilib sources at /etc/pacman.conf and uncomment these lines:
#[multilib]
#Include = /etc/pacman.d/mirrorlist
If you use another operating system, try find specific ways of your package manager.
In Archlinux is pacman, yay or yaourt.
Now you must update pacman sources and install lib32-zlib and lib32-gcc-libs:
[user@host]$ sudo pacman -Sy lib32-zlib lib32-gcc-libs
I suggest <mypath> equals to /tmp:
[user@host]$ cd <mypath>
[user@host]$ wget -O appinventor2-setup_2.3.tar.gz http://appinv.us/aisetup_linux_other
[user@host]$ tar -xvzf appinventor2-setup_2.3.tar.gz
[user@host]$ sudo mkdir -p /usr/google/appinventor/commands-for-Appinventor
[user@host]$ cp -rf <mypath>/appinventor2-setup_2.3/appinventor/commands-for-Appinventor /usr/google/appinventor/commands-for-Appinventor
Go to your ~/.bashrc or ~/.bash_profile and add these lines:
APPINVENTOR=/usr/google/appinventor/commands-for-Appinventor
export PATH=$PATH:$APPINVENTOR
Return to terminal and execute:
[user@host]$ source ~/.bash_profile
[user@host]$ which aiStarter
Run aiStarter (in foreground):
[user@host]$ aiStarter
Access Test appinventor page
You must see messages like this:
Bottle server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8004/
Hit Ctrl-C to quit.
127.0.0.1 - [<some datetime>] "GET /ping/ HTTP1.1" 200 38
127.0.0.1 - [<some datetime>] "GET /utest/ HTTP1.1" 200 38