{"id":541,"date":"2011-10-27T21:48:06","date_gmt":"2011-10-27T21:48:06","guid":{"rendered":"http:\/\/41j.com\/blog\/?p=541"},"modified":"2011-10-27T21:48:06","modified_gmt":"2011-10-27T21:48:06","slug":"installing-rails-on-ubuntu-10-04-server","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2011\/10\/installing-rails-on-ubuntu-10-04-server\/","title":{"rendered":"Installing rails on ubuntu 10.04 Server"},"content":{"rendered":"<p>Installing rails on Ubuntu 10.04 Server was painful. Lessons I learnt were, don&#8217;t use the system ruby, don&#8217;t use the system gem, don&#8217;t try and use the system ruby with a downloaded copy of gem&#8230;<\/p>\n<p>I ended up using rvm (Ruby Version Manager) for the install, you also need to install nodejs from an external repository&#8230;<\/p>\n<p>sudo su # become root<\/p>\n<p>apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion<br \/>\nsudo apt-get install python-software-properties <\/p>\n<p>add-apt-repository ppa:chris-lea\/node.js<br \/>\napt-get update<br \/>\napt-get install nodejs<\/p>\n<p>bash < <(curl -s https:\/\/raw.github.com\/wayneeseguin\/rvm\/master\/binscripts\/rvm-installer )\n\n\/usr\/local\/rvm\/bin\/rvm install 1.9.2\n\/usr\/local\/rvm\/bin\/rvm use 1.9.2\n\n\/usr\/local\/rvm\/bin\/gem install rails\n\/usr\/local\/rvm\/bin\/gem install execjs\n\nexit # become a normal user again.\n\ncd ~  # your project directory, could change user here.\nrails new simpleweb # create a new rails project\n\ncd simpleweb\n\nrake db:create # create application databases (sqlite)\n\nrails server # start the rails server!\n[\/sourcecode]\n\nPoint a web browser at http:\/\/localhost:3000 and you should see the example Ruby site.\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing rails on Ubuntu 10.04 Server was painful. Lessons I learnt were, don&#8217;t use the system ruby, don&#8217;t use the system gem, don&#8217;t try and use the system ruby with a downloaded copy of gem&#8230; I ended up using rvm (Ruby Version Manager) for the install, you also need to install nodejs from an external [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-541","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-8J","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/comments?post=541"}],"version-history":[{"count":1,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/541\/revisions"}],"predecessor-version":[{"id":542,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/541\/revisions\/542"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}