Hot answers tagged ruby
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 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 use sudo.* It's better ...
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 ...
you can install latest rvm and ruby by : $ \curl -L https://get.rvm.io | bash -s stable --ruby and check all the ruby version with stability $ rvm list known can also check details here : http://www.ruby-lang.org/en/downloads/ $ rvm install ruby 2.0.0-p247 Use when you want to download specific version or know this is stable.
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 ...
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 get.rvm.io | bash -s stable Load RVM: source ~/.rvm/scripts/rvm Find the requirements (follow the instructions): rvm ...
The following command will install latest stable version of ruby: rvm install ruby --latest
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 ...
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).
gem list should give you a list of all your gems with version number in brackets behind it
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 https://get.rvm.io | 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
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
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 ...
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 ...
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 ...
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 ( https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager ) Especially if you're ...
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
The answer was to do: sudo apt-get install libxslt-dev
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 ...
sudo gem install rdoc Then sudo gem install jekyll you can see the answer at https://github.com/mojombo/jekyll/issues/762
Debian version of Ruby does not support several ruby installations on the same system. Debian obsoleted the package and Ubuntu just removed it from the repositories. You should use rbenv to switch between different ruby versions. This is the recommended way by ruby-switch package description and was the method that has been discussed in bug 737782 as ...
Are you sure that its not just RVM not being started ? Check .rvm/scripts/rvm exists in your home directory. If it does, then its probably not being started, check in your .bashrc for lines below. If they are not there you need to add the calls to initialise RVM in your .bashrc by running the following command: echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] ...
First of all, there are a few things that need to be said: Ruby on Debian (and therefore by extension, Ubuntu) has a horrible setup with ruby. As such, the "recommended" solution is to compile and install your own version of ruby - this is made fairly painless with railsready. wget --no-check-certificate ...
I found a solution - edit gemspec files by opening an admin "session": Alt+F2 then type gksudo nautilus and browse to, edit and save .gemspec files. Both problem files require the dates edited from 2011-11-10 00:00:00.000000000Z to 2011-11-10
Some more hints can be found here: http://rbjl.net/22-rubybuntu-4-make-gedit-better-than-any-ide. Some commands for the "external commands" plugin (e.g. "run in irb") can be found in this post: http://rbjl.net/23-gedit-external-tools-ruby-helpers-git-integration-and-more I'll update the post with some newer plugins soon (e.g. the useful zoom plugin) and ...
Only top voted, non community-wiki answers of a minimum length are eligible