Now you can install the gems you need for your project. The last step will be to check that ruby is correctly installed. 146 To setup you Ruby development environment on Windows: Install Ruby via RubyInstaller: Check your ruby version: Start - Run - type in cmd to open a windows console Type in ruby -v You will get something like that: ruby 2.0. Note: the install command may take a little while and doesn't really give you feedback. As of writing this, the stable linux version is 2.3.1 rbenv install 2.3.1 Now we can install the specific version of ruby that we want and set it to be the default. Next will be the ruby installer plugin: git clone git:///sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-buildĮcho 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' > ~/.bashrc rbenvĮcho 'export PATH="$HOME/.rbenv/bin:$PATH"' > ~/.bashrcĮcho 'eval "$(rbenv init -)"' > ~/.bashrc Let's start by setting up rbenv in your user folder. So: to compile sqlite3 for Ruby 2.0, you need: sqlite3 headers and libraries compiled and available force installation of sqlite3 to use 'ruby' platform (as indicated in the notes) and provide the directory where it will find sqlite3 headers and libraries. By default, Rails uses sqlite3, but you may want to install MySQL. In other words, it allows you to install different versions of ruby on the same machine, you can have different projects that run different versions of ruby on the same machine. This is an exe file rubyinstaller-2.2.2.x.exe and will be installed in a single click. It is a version management tool for ruby. Reference describes the classes and functions this module defines. This document includes four main sections: Tutorial teaches how to use the sqlite3 module. It provides an SQL interface compliant with the DB-API 2.0 specification described by PEP 249, and requires SQLite 3.7.15 or newer. Sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev The sqlite3 module was written by Gerhard Hring. Downloading Packages: Installing Packages: To check if Ruby installed correctly, perform a version check for the same using the following command on the command-line: ruby -v. Let's start first with installing the dependencies. On Linux it does require a little more work. The current version installed will be displayed. The Rails team chose SQLite as the default because it’s often already installed on Mac or Linux and because it doesn’t need a database server. Rails tries to use the SQLite database engine. To make sure it works, open the command line and type the following: > ruby -v RubyInstaller provides you with a straightforward, mostly GUI-based experience to get Ruby up and running on your older Windows machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |