Skip to content

Instantly share code, notes, and snippets.

@Cryde
Last active August 29, 2015 14:22
Show Gist options
  • Save Cryde/c932d8f3697b61fd1b61 to your computer and use it in GitHub Desktop.
Save Cryde/c932d8f3697b61fd1b61 to your computer and use it in GitHub Desktop.
Install Appcelerator Studio on Debian Jessie (x64)

Don't open studio before this guide mentions it. ##Java Install Sun Java JDK (not Open JDK) (this content comes from : https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps)

  • first download Java JDK (x64, tar) from the Oracle server : http://www.oracle.com/technetwork/java/javase/downloads/index.html
  • login as root : sudo su
  • mkdir /opt/jdk
    The /opt directory is reserved for all the software and add-on packages that are not part of the default installation.
  • extract the file to the /opt/jdk dir : tar -zxf YOUR-FILE-x64.tar.gz -C /opt/jdk
  • check if directory exists: ls /opt/jdk
  • set Oracle JVM as default :
    update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_45/bin/java 6666
    AND
    update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_45/bin/javac 6666
    Set more than "6666" if java doesn't come the default JVM
  • check that
    update-alternatives --display java and update-alternatives --display javac output something like :
    java - auto mode
    link currently points to /opt/jdk/jdk1.8.0_05/bin/java
    /opt/jdk/jdk1.8.0_05/bin/java - priority 100
    Current 'best' version is '/opt/jdk/jdk1.8.0_05/bin/java'.

    javac - auto mode
    link currently points to /opt/jdk/jdk1.8.0_05/bin/javac
    /opt/jdk/jdk1.8.0_05/bin/javac - priority 100
    Current 'best' version is '/opt/jdk/jdk1.8.0_05/bin/javac'.

Or easier : java -version

  • Add the JAVA_HOME variable at the end of your .bashrc :
    export JAVA_HOME=/opt/jdk/jdk1.8.0_45/

Now we are done with Java

##NodeJS + NPM

  • apt-get install npm nodejs-legacy
    It will install node automatically
  • check node is correctly installed : node -v

##Appcelerator (cmd) sudo npm install appcelerator -g

##Titanium (cmd) sudo npm install titanium -g

##i386 + Misc

If you are on a x64 you will need to download some libs for Appcelerator Studio

  • sudo dpkg --add-architecture i386
  • sudo apt-get update
  • sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386
    Those 3 commands are needed because Appcelerator Studio doesn't support x64
  • sudo apt-get install libjpeg62 libwebkitgtk-1.0-0 : webkit for your dashboard (I guess?)
  • echo 'export MOZILLA_FIVE_HOME=/usr/lib/mozilla' >> ~/.bashrc

##Init Appcelerator (cmd)

appc setup

##Titanium check

ti setup
This will output errors (if there are errors). At this point it is possible that no Android SDK is installed.
Studio will install it later.

Appcelerator Studio (finally!)

  • Download it
  • Unzip it (I put it in /home/mylogin/bin/)
  • Bonus : create a launcher
  • sudo apt-get install --no-install-recommends gnome-panel
  • gnome-desktop-item-edit ~/.local/share/applications --create-new
  • Launch the Studio ! :)

###Note about the Android SDK Titanium SDK 4 does not support deployment for API version < 5. For more information, please check the compatibility matrix : http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_Compatibility_Matrix-section-29004837_TitaniumCompatibilityMatrix-RequiredAndroidPackages
If you still need to deploy on versions < 5, here are previous Titanium SDK versions : http://builds.appcelerator.com.s3.amazonaws.com/index.html#3.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment