Created
June 22, 2011 20:29
-
-
Save zarkosusnjar/1041074 to your computer and use it in GitHub Desktop.
RoR installation on Ubuntu Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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