{"issue":{"created_at":"2011-12-14T19:14:13Z","state":"open","updated_at":"2011-12-14T19:14:13Z","user":{"gravatar_id":"7e79074e1437f3a60483609ff17c5e29","id":931258,"url":"https://api.github.com/users/jluis859","login":"jluis859","avatar_url":"https://secure.gravatar.com/avatar/7e79074e1437f3a60483609ff17c5e29?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"GUIDE Instalation ODK BUILD CentOS by jluis859\r\n\r\n#Create a dir install \"mycentos\" is your centos dir\r\nmkdir /home/mycentos/install/\r\ncd /home/mycentos/install/\r\n\r\n#Install dependencies\r\nsudo yum install httpd-devel\\\r\n  openssl-devel\\\r\n  zlib-devel\\\r\n  gcc\\\r\n  gcc-c++\\\r\n  curl-devel\\\r\n  expat-devel\\\r\n  gettext-devel\\\r\n  mysql-server\\\r\n  mysql-devel\r\n\r\n#Install ruby\r\n\r\nwget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz\r\ntar xzvf yaml-0.1.4.tar.gz\r\ncd yaml-0.1.4\r\n./configure --prefix=/usr/local\r\nmake\r\nmake install\r\n\r\n#back\r\ncd ..\r\n\r\nwget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz\r\ntar xzvf ruby-1.9.3-p0.tar.gz\r\ncd ruby-1.9.3-p0\r\n./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib\r\nmake\r\nmake install\r\n\r\n#back\r\ncd ..\r\n\r\n#Install Rails\r\nsudo gem install rails\r\n\r\n\r\n#Install Bundle\r\nsudo gem install bundle\r\n\r\n#Install Tokyo Tyrant DB for odk build, IMPORTANT\r\n# Some libs\r\nyum install gzip bzip2 bzip2-devel\r\n\r\n#Tokyo cabinet\r\nwget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz\r\ntar zxf tokyocabinet-1.4.47.tar.gz\r\ncd tokyocabinet-1.4.47\r\n./configure\r\nmake\r\nmake install\r\n\r\n#back\r\ncd ..\r\n\r\n#Tokyo tyrant\r\nwget http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz\r\ntar zxf tokyotyrant-1.1.41.tar.gz\r\ncd tokyotyrant-1.1.41\r\n./configure\r\nmake\r\nmake install\r\n\r\n#back\r\ncd ..\r\n\r\n#Install git\r\n# Add the repository\r\nrpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm\r\n\r\n# Install the latest version of git\r\nyum install --enablerepo=webtatic git-all\r\n\r\n#Download odk from github with git\r\nmkdir odk\r\ncd odk\r\ngit clone git://github.com/clint-tseng/odkbuild.git\r\n\r\n#Install gemfile\r\ncd odkbuild\r\nbundle install --path .rubygems\r\n\r\n#Copy and rename config.yml.sample to config.yml\r\ncp config.yml.sample config.yml\r\n\r\n#Start DB TokyoTyrant\r\nrake db:dev:start\r\n\r\n#Start Default Server Webrick with 8084 port\r\nbundle exec rackup config.ru -p 8084\r\n\r\n\r\n#If webrick doesnt work with external private Ips install Thin\r\n\r\n#Install alternative server thin\r\nsudo gem install thin\r\n\r\n#Start Server with thin -p myport start and that's all, if have problems with rake 1.3.4\r\n#maybe you should change the gemfile and bundle install again\r\nthin -p 8084 start","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2556568,"number":10,"labels":[],"title":"GUIDE Instalation ODK BUILD CentOS by jluis859","html_url":"https://github.com/clint-tseng/odkbuild/issues/10","closed_at":null,"url":"https://api.github.com/repos/clint-tseng/odkbuild/issues/10","milestone":null},"action":"opened"}