Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get -y update
- sudo apt-get -y install build-essential wget zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl git-core python-software-properties libxml2-dev libxslt-dev autoconf libc6-dev libncurses5-dev automake libtool bison nodejs ruby-dev openjdk-7-jdk tesseract-ocr tesseract-ocr-fra tesseract-ocr-eng tesseract-ocr-spa graphicsmagick pdftk libreoffice poppler-utils poppler-data ghostscript graphviz imagemagick qt4-default libqt4-dev libmagic1 libmagic-dev
- sudo nano /etc/environment
- sudo apt-get install postgresql-9.1 postgresql-server-dev-9.1 libpq-dev pgadmin3
- sudo nano /etc/postgresql/9.1/main/pg_hba.conf
- sudo service postgresql restart
- sudo su postgres
- sudo -i -u postgres
- sudo apt-get install python-software-properties
- sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get update
- sudo apt-get install libjson0 libjson0-dev
- sudo apt-get install postgis postgresql-9.1-postgis-2.1
- sudo apt-get -y install ruby1.9.1 ruby1.9.1-dev
- sudo gem install bundler
- git clone https://github.com/ekylibre/ekylibre.git /home/ekylibre/ekylibre
- cd ekylibre
- sudo bundle install
- sudo gem install rdoc-data; rdoc-data --install
- cd config
- cp database.postgis.yml database.yml
- nano database.yml
- rake db:create db:migrate
- rake first_run max=50
- rails server
- ************************************
- Contenu de database.yml
- ************************************
- # PostgreSQL. Versions 7.4 and 8.x are supported.
- #
- # Install the ruby-postgres driver:
- # gem install ruby-postgres
- # On Mac OS X:
- # gem install ruby-postgres -- --include=/usr/local/pgsql
- # On Windows:
- # gem install ruby-postgres
- # Choose the win32 build.
- # Install PostgreSQL and put its /bin directory on your path.
- development:
- adapter: postgis
- host: 127.0.0.1
- encoding: unicode
- database: ekylibre_development
- pool: 5
- username: ekylibre
- password: ekylibre
- script_dir: /usr/share/postgresql/9.1/contrib/postgis-2.1
- postgis_extension: true
- su_username: ekylibre
- su_password: ekylibre
- schema_search_path: public,postgis
- # Connect on a TCP socket. Omitted by default since the client uses a
- # domain socket that doesn't need configuration. Windows does not have
- # domain sockets, so uncomment these lines.
- #host: localhost
- #port: 5432
- # Schema search path. The server defaults to $user,public
- #schema_search_path: myapp,sharedapp,public
- # Minimum log levels, in increasing order:
- # debug5, debug4, debug3, debug2, debug1,
- # log, notice, warning, error, fatal, and panic
- # The server defaults to notice.
- #min_messages: warning
- # Warning: The database defined as "test" will be erased and
- # re-generated from your development database when you run "rake".
- # Do not set this db to the same as development or production.
- test:
- adapter: postgis
- host: 127.0.0.1
- encoding: unicode
- database: ekylibre_test
- pool: 5
- username: ekylibre
- password: ekylibre
- script_dir: /usr/share/postgresql/9.1/contrib/postgis-2.1
- postgis_extension: true
- su_username: ekylibre
- su_password: ekylibre
- schema_search_path: public,postgis
- production:
- adapter: postgis
- host: 127.0.0.1
- encoding: unicode
- database: ekylibre_production
- pool: 5
- username: ekylibre
- password: ekylibre
- script_dir: /usr/share/postgresql/9.1/contrib/postgis-2.1
- postgis_extension: true
- su_username: ekylibre
- su_password: ekylibre
- schema_search_path: public, postgis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement