Skip to content

Instantly share code, notes, and snippets.

@lunhg
Last active May 13, 2024 22:21
Show Gist options
  • Save lunhg/5d836bdec50820d09b012f34aa75438d to your computer and use it in GitHub Desktop.
Save lunhg/5d836bdec50820d09b012f34aa75438d to your computer and use it in GitHub Desktop.
Install App-inventor in ArchLinux

Appinventor

Download dependencies

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.

Archlinux

Now you must update pacman sources and install lib32-zlib and lib32-gcc-libs:

[user@host]$ sudo pacman -Sy lib32-zlib lib32-gcc-libs 

Download .tar.gz file

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

Decompress file and copy it to /usr/google/appinventor/commands-for-Appinventor

[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

Identify appinventor binaries in $PATH

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

Check aiStarter

[user@host]$ which aiStarter

Test 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment