Skip to content

Instantly share code, notes, and snippets.

@zarkosusnjar
Created June 22, 2011 20:29
Show Gist options
  • Save zarkosusnjar/1041074 to your computer and use it in GitHub Desktop.
Save zarkosusnjar/1041074 to your computer and use it in GitHub Desktop.
RoR installation on Ubuntu Linux
# instalira curl, git, ssl, mysql, imagemagick itd.
sudo apt-get update
sudo apt-get -y install curl git build-essential bison openssl libreadline6 libreadli ne6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev imagemagick libcurl4-openssl-dev mysql-server libmysqlclient-dev libmysql-ruby mysql-admin
# instalira rvm
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm); echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc;
source ~/.bashrc;
#skida i kompajlira ruby, gem command, rails i par osnovnih gem-ova
rvm install 1.9.2; rvm use 1.9.2 --default
gem update --system ; gem update
gem install bundler
gem install rails
gem install mysql2
#test da ali je sve ok
rails new testapp -d mysql
cd testapp/
rails server
#ako test aplikacija ispise gresku u kojoj se pominje baza podataka,
#zaustavite server, izvrsite sledecu komandu i pokrenite ponovo server
rake db:create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment