RSS .92| RSS 2.0| ATOM 0.3
  • Home
  • TURTED
  • xosofox?
  •  

    Get your APE up-to-date

    After developing an APE application for quite some time now, it was time for me to install an APE server on the future production environment.

    Since it created some hassle for me, not doing THIS every day, here’s a small log that might help you (or me some time later) to do the same, Upadate your APE server to the latest git version

    I’m doing this on a debian 32 bit.

    Since I am lazy, I will first install the deb package so I get all the nice entries in /etc/init.d, have the lib files placed in the correct directories…
    And in a second step replace the ape version with the current one from github.

    1: Install the “old” 1.0 package from the website

    Download your package (like APE_Server-1.0.i386.deb) from http://www.ape-project.org/download/APE_Server.html to the machine.

    Run dpkg -i APE_Server-1.0.i386.deb

    In case this already fails, you might need to check if there are any libraries missing (see below)

    2: Get the latest version

    To get the latest version from github, I usually do

    svn co http://svn.github.com/APE-Project/APE_Server.git
    or
    git clone http://github.com/APE-Project/APE_Server.git

    This will create a APE_Server.git directory in your current location. Now compile it:

    3: Compile the new version

    cd APE_Server.git
    sh build.sh

    You can have different types of errors here, most of them related to the fact that you might not have all compilers or libraries installed. If this happens, try:

    aptitude install make
    aptitude install gcc
    aptitude install g++
    aptitude install python
    aptitude install zip
    aptitude install mysql

    To be honest, I am not sure which libraries are required exactly – but this did the job for me. And if I could have installed the specific required libraries only I don’t care… as long as I get what I need.

    After a finished compile (it can take a couple of seconds/minutes, warnings flying by…) you are ready to replace the existing ones.

    4: Replace old files

    Basically have to replace two files:

    aped and libmod_spidermonkey.so

    If running, stop your ape

    /etc/init.d/ape-server stop

    Copy the new files from your compile dir to their designated locations:

    cp bin/aped /usr/bin/aped
    cp modules/lib/libmod_spidermonkey.so /usr/lib/ape/libmod_spidermonkey.so

    (Paths may vary depending on system and linux distribution)

    Restart your ape

    /etc/init.d/ape-server start

    If you connect to your ape server (e. g. http://127.0.0.1:6969/) with your browser, it should show you the version info with current build time

    Corrections, additions, suggestions and comments welcome

    3 Responses to “Get your APE up-to-date”

    1. Ryan says:

      Hi. Thanks for this guide. I am using Centos5. Do you know where the paths would be in Centos 5? I ran “locate libmod_spidermonkey.so” and it only found one file in my original “/usr/lib/ape/libmod_spidermonkey.so” directory. So I can’t a file to replace the existing “/usr/lib/ape/libmod_spidermonkey.so” file anywhere. Thank you for your time.

      Ryan

    2. KaroDidi says:

      The new file would be INSIDE your compiled directory – if the compile succeeds.

      Do
      cd modules/lib/
      ls -l
      after the compile and check

    3. Ryan says:

      I actually had an older version of MYSQL that was causing the install to hangup. Once I upgraded that, I saw was able to complete the install going off of your guide. Thank you very much!

      Take care,

      Ryan

    Leave a Reply