Programming, science, engineering, and more…
RSS icon Home icon English Spanish
  • Installing Geonode in a debian lenny platform

    Posted on {17-Mar-2011} Frank Vielma No comments

    GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.

    • Step 1. In first time, you need to install and purge some packages:
       sudo aptitude install git-arch subversion libgeos-dev gdal-bin g++ make ant zlib-bin zlib1g-dev libreadline5-dev tcl8.5-dev tk8.5-dev libssl-dev libsqlite3-dev libbz2-dev libgdbm-dev
       
       sudo aptitude purge gij-4.3 bsh bsh-gcj java-gcj-compat java-gcj-compat-headless libbcel-java libhsqldb-java libhsqldb-java-gcj libjaxp1.3-java libjaxp1.3-java-gcj libjline-java liblog4j1.2-java libmx4j-java libregexp-java libservlet2.4-java libxalan2-java libxalan2-java-gcj libxerces2-java libxerces2-java-gcj openoffice.org openoffice.org-base openoffice.org-evolution openoffice.org-filter-mobiledev openoffice.org-gcj openoffice.org-java-common openoffice.org-officebean openoffice.org-report-builder-bin openoffice.org-writer2latex
    • Step 2. Install sun-java. You need modfy /etc/apt/sources.list and add non-free to the Debian Lenny repositories:
      deb http://volatile.debian.org/debian-volatile lenny/volatile main
      deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
       
      deb http://mirrors.kernel.org/debian/ lenny main non-free
      deb http://security.debian.org/ lenny/updates main non-free

      and run:

      sudo aptitude update
      sudo aptitude install sun-java6-jdk
    • Step 3. Download, compile and install python 2.6.
      wget http://python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2
      tar -xvjf Python-2.6.6.tar.bz2
      cd Python-2.6.6
      ./configure --with-threads --enable-shared
      make -j 2
      sudo make install
      sudo ln -s /usr/include/libpython2.6.so.1.0 /usr/lib/
      sudo ln -s /usr/include/libpython2.6.so /usr

      To run python -V and you would get:
      Python 2.6.6

    • Step 4. Download, compile and install maven
      wget http://www.carfab.com/apachesoftware//maven/binaries/apache-maven-2.2.1-bin.tar.gz
      sudo tar -xvzf apache-maven-2.2.1-bin.tar.gz -C /usr/local/

      Add at the end of ~/.bashrc file

      export PATH=$PATH:/usr/local/apache-maven-2.2.1/bin/
      export JAVA_HOME=/usr

      and run:

      source ~/.bashrc

      so, you would to get when run mvn -v:

      Apache Maven 2.2.1 (r801777; 2009-08-06 14:46:01-0430)
      Java version: 1.6.0_22
      Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux" version: "2.6.26-2-686" arch: "i386" Family: "unix"
    • Step 5. Installing geonode. The first thing is clone the repository:
      git clone git://github.com/GeoNode/geonode.git geonode

      then,

      cd geonode
      git submodule update --init
      python bootstrap.py --no-site-packages
      source bin/activate
      paver build
      django-admin.py createsuperuser --settings=geonode.settings
      paver host

    Development GeoNode should be running at http://localhost:8000/

    Leave a reply

    *
best web hosting