Hot answers tagged


you can install latest rvm and ruby by : $ \curl -L | bash -s stable --ruby and check all the ruby version with stability $ rvm list known can also check details here : $ rvm install ruby 2.0.0-p247 Use when you want to download specific version or know this is stable.


On my 13.04 and 14.04 systems, things worked for me after installing the ruby-dev package, then running the gem install: sudo apt-get install ruby1.9.1-dev (or try: ruby-dev instead) gem install jekyll # if this fails then sudo gem install jekyll After that, jekyll was installed correctly. Note that for the gem install instruction, it is better not to ...


The following command will install latest stable version of ruby: rvm install ruby --latest


I'm not entirely sure if by compiler you want something that will automatically compile your less files on the fly or on the server. Because otherwise you can $ sudo apt-get install node-less yui-compressor (On Ubuntu 12.04, the node-less package is called node-less.) and then, $ lessc example.less > compiled_example.css $ yui-compressor -o ...


Is there a problem with having both installed? And using the versions from the repositories? I would install ruby 1.9.2 with: sudo apt-get install ruby1.9.1-full And then update the "alternatives" system to use ruby 1.9: $ sudo update-alternatives --config ruby There are 2 choices for the alternative ruby (providing /usr/bin/ruby). Selection Path ...


gem list should give you a list of all your gems with version number in brackets behind it


For 14.04 I found the following PPAs that come with Ruby 2.x Adds Ruby 2.1 to Ubuntu 14.04 sudo add-apt-repository ppa:brightbox/ruby-ng I also found in GoRails a set of instructions to install Ruby on 14.04 but I am guessing since they are long you would want a PPA instead. Adds Ruby 1.9, 2.0 or 2.1 to Ubuntu 14.04 sudo add-apt-repository ppa:...


A simple way to install RVM is to follow the instructions at the developer's site (in fact, the site says "Please use the install process(es) from this site only, as this is the only supported installation types and methods."): curl -L | bash -s stable Load RVM: source ~/.rvm/scripts/rvm Find the requirements (follow the instructions): rvm ...


simply sudo apt-add-repository ppa:ubuntu-on-rails/ppa sudo apt-get update sudo apt-get install gedit-gmate and activate the plugins you want from options menu. It will activate sintax highlighting for erb files and many snippets for RoR developing.


You could use the following PPA: sudo add-apt-repository ppa:brightbox/ruby-ng-experimental sudo apt-get update sudo apt-get install -y ruby2.0 ruby2.0-dev ruby2.0-doc Optional: sudo apt-get install -y mysql-server mysql-workbench sudo gem install rails Now you can go ahead and download your preferred IDE and start having fun with Ruby 2.0 and Rails 4. ...


If you're using Ubuntu Packages run sudo apt-get purge <packages> So that should be something like: sudo apt-get purge ruby rubygems From the apt-get man page: purge purge is identical to remove except that packages are removed and purged (any configuration files are deleted too).


There are many ways of install ruby. RVM. This is the 'traditional' way that is used by many rubyists. rbenv. From packages. From source (answer coming).


CURL is needed for rvm, specifically it is used for the installer script (which is made to be 'run everywhere'), and since Mac doesn't ship with wget but does with curl, they use curl. From CURL man page curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, ...


To install RVM stable with ruby, run the following command: \curl -L | bash -s stable --ruby Note: There is a backslash before curl. This prevents misbehaving if you have aliased it with configuration in your ~/.curlrc file. Source


You just need to install libmysqlclient-dev sudo apt-get install libmysqlclient-dev


/usr/bin/ruby is usually a link to /etc/alternatives/ruby, which in turn links to the executable of the default ruby version (e. g. /usr/bin/ruby1.9). You can change the configured default version with: sudo update-alternatives --config ruby If the desired version did not set up itself as alternative for ruby (e. g. if it isn't set up by the package ...


Use sudo apt-get install openssl, or use the software center to find it. When I look for packages, I generally use apt-cache search whatever. For openssl, here's what I see on my system: $ apt-cache search ^openssl openssl - Secure Socket Layer (SSL) binary and related cryptographic tools openssl-blacklist - Blacklists for OpenSSL RSA keys and tools ...


Run these commands on terminal to install Ruby 2.0. sudo apt-get update sudo apt-get install ruby2.0 ruby2.0-dev To check the ruby version,run this ruby2.0 --version


Generally you can use the "build-dep" command of "apt-get" to fetch dependencies to a package. Use it like this: sudo apt-get build-dep [package name] Or more specifically for gvim: sudo apt-get build-dep vim-gnome After that you should be able to compile gvim/vim either without further intervention or with only small set of dependencies to ...


You have two options. You can use a script that will do this for you, or you can follow the guide manually - they'll both have the same results, and they'll both do the same thing, the only difference is that the script won't require you to copy/paste anything after you select the method of installation in the script itself. Keep in mind that the script ...


Your prompt says: Peter@ubuntu:~$ The part between : and $ is: ~ That represents the folder you're currently in. ~ is shorthand for your home folder (/home/Peter). See this section of the Ubuntu community documentation for more information about abbreviations in directory names, and related concepts. You ran the command cd Rubyscript. The folder name ...


Well to start with, you wouldn't need to write a C application - a simple bash ditty would do you fine. I think the cleanest possible solution would involve the update-alternatives system. This is how, for example, Ubuntu manages to keep various Java virtual machines separated while installed alongside each other. The problem is you need to set it up ...


You need to change to your ruby ext/openssl/ directory, then run ruby extconf.rb make make install then try passenger-install-nginx-module again


Most simple way is to install nodejs with its package manager npm. Nodejs is in the repositories, but that one is a bit outdated, instead you could use this ppa: sudo apt-add-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs ( ) Especially if you're ...


The answer was to do: sudo apt-get install libxslt-dev


In your source location, cd ext/openssl and then ruby extconf.rb. This will generate a makefile in the ext/openssl directory. Simply make && sudo make install it to build the ruby openssl extension, and install the .so into the appropriate location. Ditto ext/readline for readline support. Then you should be able to make ruby properly. Edit: in ...


You get that message when the executable you are trying to run is not in your PATH. You simply need to add the rails installation path to your PATH variable, export PATH="$PATH:/path/to/rails" replacing /path/to/rails with the installation directory (probably something like $HOME/.rvm/.../bin/rails). For convenience, you can add the above line to the ...


Does sudo apt-get install libmysql-ruby fetch the required gem?


If you are using RVM why bother even uninstalling the system ruby? I install both 1.8.7 and 1.9.2-rc via RVM. After you have installed RVM you can set the RVM 1.8.7 to be your default ruby installation. Just don't install RVM as root. For those wondering, has the RVM install instructions. Make sure you read the instructions on what ...

Only top voted, non community-wiki answers of a minimum length are eligible