Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.

learn more… | top users | synonyms

1
vote
1answer
11 views

Effective difference between “gem install --bindir ~/path/to/folder” and “--user-install” in Ruby

I don't have a desire at the moment to learn Ruby, but I just want to know what the difference is between gem install --bindir ~/path/ and gem install --user-install as long as each of the paths are ...
0
votes
2answers
24 views

Install Jekyll on Mac 10.11 without homebrew or sudo

I tried to install Jekyll on my Mac (OS X 10.11.6 El Capitan with Xcode cli tools installed) using gem install jekyll, but I received this error: $ gem install jekyll ERROR: While executing gem ...
36
votes
7answers
46k views

When to use Bash and when to use Perl/Python/Ruby?

We are doing all our scripting with Bash so far, but I'm starting to feel a bit silly about it. While we can of course do everything we want with Bash (it's quite powerful), I'm starting to wonder if ...
1
vote
2answers
379 views

Gem Installs not executing after update system-wide update Arch Linux

When trying to execute sass --watch scss:css inside of a target folder I get returned the message command not found I know I had sass installed. gem list doesn't show that it's installed anymore. I ...
0
votes
0answers
10 views

Teamcity: sorry, you must have a tty to run sudo when running “bundle install”

Background I am trying to run cucumber scenarios on centos (via teamcity). The first step of the build configuration is: bundle install However, this just gives me the following errors: [12:39:52]...
4
votes
1answer
225 views

brew upgrade broke Vim on OS X (dyld: Library not loaded)

I've not run brew update && brew upgrade for a long time. I just did a massive upgrade which turned out to broke my Vim. This is what I got after running vim: dyld: Library not loaded: /...
2
votes
2answers
30 views

Running a Ruby script once at Linux login

I have a Ruby script which takes quite a while to run (5-20 seconds in most cases) and its purpose is to generate configuration files for Conky and Fluxbox. At the moment I have the Ruby script set ...
2
votes
1answer
7k views

How to run bash script from windows using plink on linux

I'm trying to run a simple bat file from windows that will run a bash script on linux machine. The bash script is located on the linux machine. For example: I'm trying to run this bat file from ...
0
votes
0answers
16 views

Running ruby from host to VM

I'm running Linux on a Windows host through a VM using VMware workstation 12, however I want to use Ruby from my Windows host, and use the gems that are inside of my Windows host as the gem ...
0
votes
2answers
190 views

gem not working in Cygwin

On a freshly installed Windows 7 Professional 64 Bit I installed Cygwin (64) and some of its packages, including Ruby. I have also installed Ruby using the Ruby installer, because I'll likely need it ...
-1
votes
0answers
14 views

Change icon of ruby files [duplicate]

How do I change the icon of Ruby interpreter on Windows? It looks like this: http://i.stack.imgur.com/oipyZ.jpg I want to change the file icons associated with the ruby interpreter. I searched in ...
1
vote
1answer
23 views

How to install Ruby 2.1 from package on Debian Jessie?

I'm trying to install Ruby 2.1 on Debian Jessie. As far as I know, 2.1 is the default version available to Debian Jessie. I ran sudo apt-get install ruby-dev and it seemed to install everything ...
0
votes
0answers
64 views

Install ruby without root access on CentOS

I'm on a clean CentOS install without sudo-rights. I had installed ruby-build locally and then tried to install Ruby 2.3.1 with ruby-build 2.3.1 ~/.local/opt/ruby-2.3.1. I got this error The Ruby ...
1
vote
1answer
462 views

Fedora 21 - Gem: change EXECUTABLE DIRECTORY

I am using some locally installed gems in my environment and I would like to change the EXECUTABLE DIRECTORY path to ~/.gem/bin How could I achieve this? $gem env - RUBYGEMS VERSION: 2.2.2 - ...
1
vote
1answer
32 views

Installing ruby / gems / jekyll on mac

I tried to install newer version of ruby, because I needed it for install the Jekyll. Now when I try to use any gem command (i.e. gem install jekyll) I get a my little pony image in the Terminal and a ...
1
vote
1answer
2k views

Unable to find a Ruby executable

I tried installing Aptana Studio 3, but when I tried running it I got an error saying "Unable to find a Ruby executable." Here's a Picture:
2
votes
2answers
2k views

Installing Ruby with Homebrew

I'm trying to install Ruby 1.9 using Homebrew. I'm using Mac OS X Lion, so Ruby 1.8.7 is installed by default. I've got Homebrew installed at /usr/local/bin/brew (well that's what it says if I run '...
1
vote
0answers
4 views

Linux filter which convert data coming from pipe to chunked transfer encoding

I usually use Open3.popen3 in my Ruby CGI scripts to start a Linux command, parse its standard output and converting the bytes to the chunked transfer encoding ( https://en.wikipedia.org/wiki/...
1
vote
0answers
46 views

Beef installation problem in Windows 10 - 64 bit

I am trying to install Beef in a WIndows 10 - 64 bit PC. I followed the instructions provided in the following link: https://github.com/beefproject/beef/blob/master/INSTALL.txt But I keep getting ...
0
votes
0answers
156 views

An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue

I have install ruby on rails on my fedora 23. and when i am trying to create application "rails new appnam", it shows the following erros. $ An error occurred while installing debug_inspector (0.0.2),...
0
votes
0answers
24 views

How to make guard/listen work on Mac/Vagrant

I'm trying to set up Guard and Listen in order to forward fs events from host Mac system to guest Linux. Maybe it's just me but the documentation is not clear to me - I have not been able to make it ...
0
votes
0answers
72 views

Can't connect to local MySQL server through socket - Fedora

I am a new Fedora user and I am installing ROR on my machine. But when I try to enter the following command rake db:create it shows the following errors. Can any one please tell me how can I solve ...
0
votes
0answers
9 views

Ruby on raills the system couldn't find path specifed

Open the Registry Editor(press + R, type regedit and hit Enter) . Navigate to HKCU\Software\Microsoft\Command Processor\AutoRun and clear the values. Also check HKLM\Software\Microsoft\Command ...
0
votes
0answers
29 views

“Cannot connect to the debugged process” with Ruby on Netbeans

I have installed Netbeans 8.1 on Ubuntu 14.04. I have installed the plugin 1434628827_ruby_and_rails. I have ruby-debug, version 0.10.5.rc2, installed along with ruby-debug-base(0.10.5.rc2 java) and ...
1
vote
0answers
36 views

Troubleshooting tips for SSH issue on proprietary software

I am having an issue establishing a channel with a piece of hardware that we purchased. I can SSH into the VXworks OS using both Putty (on Windows) and the Ubuntu's CLI, however, when I send commands ...
-2
votes
1answer
15 views

How to find & replace a pattern with string in ruby?

My file is: [root@test etc]# cat nrpe.cfg command[check_users]=/usr/local/nagios/libexec/check_users -w 30 -c 35 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c ...
1
vote
2answers
868 views

-bash Mac OS X Lion “puts” returns “command not found”

I'm trying to follow along with this tutorial and the puts command returns command not found and I am not sure why. I've followed this article and looked in the various folders and do not see a puts ...
15
votes
3answers
37k views

How can I fix a Broken Pipe error?

I recently reinstalled RVM (following the instructions at http://rvm.io) after a fresh install of Ubuntu 12.10 when I got an SSD Drive. Now, when I type: type rvm | head -1 I receive the following ...
0
votes
1answer
376 views

Which version of rails should I install with ruby 2.0.0 installed?

Hi I am building a ROR development environment on a windows 7, I have Ruby version 2.0.0 and Gems version 2.2.2 installed. Which version of Rails should I install? I saw this on rubyonrails.org/...
0
votes
0answers
21 views

Ruby won't read from TCP socket when run in background

I was writing a Slack bot in Ruby under Windows and everything worked just fine until I decided to run it on a Linux server. When I access my shell and run the script it works correctly in the ...
2
votes
4answers
1k views

Bootstrap - Jekyll: Forbidden - no access permission to `/'

I'm doing a tutorial on Twitter Bootstrap and apparently I need to install Jekyll for this. I've followed the installation procedure, but now I'm stuck getting Jekyll to work. In the terminal (Ubuntu ...
1
vote
4answers
1k views

Creating TAGS for Ruby and Emacs

I ran the following from my top level Ruby on Rails directory. find . -name "*.rb" | etags - Then within Emacs I visited that tag file. This works reasonably well to find some of the methods and ...
0
votes
1answer
232 views

rvm requirements fails due to unmet dependencies

I'm trying to get rvm up and running on ubuntu 14.04 and having a tough time figuring out why I can't meet the dependencies. I have done multiple apt-get update && spt-get upgrades but still ...
0
votes
1answer
77 views

Install ruby >= 1.8.7 on CentOS release 5.11

I’m trying to install SASS, so I need GEMS, which requires Ruby 1.8.7 or higher. The Yum installer installs Ruby 1.8.5. Can’t seem to find a tutorial on the interwebs for successfully installing ruby >...
0
votes
0answers
64 views

Homebrew installation

I installed homebrew, because I wanted to install ruby. I also installed rbenv and than tried to change the ruby version to 2.2.2. But I can't do any command on my terminal now. For example when I ...
1
vote
0answers
46 views

chruby's Ruby $PATH variable changing on its own when current working directory changes?

I installed Ruby and Rails using a guide I found here: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/ Notably, this guide uses ruby-install and chruby scripts to allow the ...
0
votes
0answers
15 views

Gulp, Pygemnts error on OSx (Jekyll)

I got this error when I run gulp. First, it asked me to install Pygments, so I installed it. Then I ran again and this showed up; Please, help me out!
1
vote
1answer
79 views

rdiscount Ruby gem fail to install

My system OS: openSUSE Leap 42.1 Kernel: x86_64 Linux 3.16.7-29-desktop Shell: zsh 5.0.5 CPU: Intel Core i7-3610QM CPU @ 3.3GHz gem -v : 2.2.2 What I'm trying to do I'm trying to install Nesta ...
0
votes
0answers
38 views

Killing ruby processes that refuse to die

Often when restarting my web app the originally ruby process doesn't die. After a few hours I'm left with dozens of ruby processes each taking up a significant amount of resources. Is there a command ...
2
votes
1answer
5k views

Upgraded to Mavericks, C compiler cannot create executables

Upgrading to Mavericks, I appear to have broken my Ruby on Rails development environment, which requires ruby 1.9.3 because of various gem dependencies. Within that app directory, I'm trying to ...
0
votes
1answer
24 views

Logfile for ruby bundler?

I have got a ruby project defining a Gemfile. When I run bundle update, already installed gems are getting updated, probably, e.g. Installing rake 10.5.0 (was 10.4.2) Using CFPropertyList 2.2....
6
votes
2answers
5k views

How to install and use different versions of ruby?

I'm learning rails from different books that use different versions of both ruby and rails. Right now I have ruby 1.87 installed on my Mac OS X Snow Leopard (in /usr/bin), but need to also use ruby 1....
0
votes
1answer
59 views

Error creating a Ruby launchd task with RVM in OS X

I want to periodically run a ruby gem based command. I am using RVM and following the tutorial set out here. My ruby task is called daily_checks.rb and is as follows: #!/usr/bin/env ruby puts 'in ...
0
votes
2answers
542 views

Why is this cronjob not working?

I have a ruby script in ~/custom_scripts/get_all_products.rb. I want it to run every night at 04:00. Here's what the cronjob in crontab -e looks like: MAILTO="<email>" 0 4 * * * ruby ~/...
0
votes
0answers
141 views

Failed to install native Ruby Gem wdm 0.1.1 on Windows 7 x64 (Ruby 2.2.0)

Outdated Story (find the update below the next heading) I can't find out why wdm won't install on my computer. I have tried using the Cygwin bash, Windows cmd and GIT bash. Console output: $ gem ...
11
votes
3answers
2k views

Installing Homebrew packages without linking

I'd like to install several versions of Ruby (or really any Homebrew package) without linking any of them. Basically, I'd like to treat any formula as keg-only. I can't seem to find a way to do this, ...
2
votes
1answer
318 views

Jekyll installation successful but 'command not found'

I am trying to install Jekyll following http://jekyllrb.com/docs/installation/ ○ → sudo gem install jekyll Password: Fetching: jekyll-2.5.3.gem (100%) Successfully installed jekyll-2.5.3 Parsing ...
9
votes
3answers
778 views

How can I get Syntastic to recognize newer Ruby syntax?

I'm using Syntastic in Vim, and it highlights newer Ruby syntax as errors. For example, if I use required keyword arguments (introduced in Ruby 2.1), like this: def distance(from:, to:) # whatever ...
13
votes
3answers
12k views

I need a simple way to backup files to Amazon glacier from the command line?

I have a CentOS server online with a directory of cPmove files I need to back up to Amazon Glacier. I only have command line access, no GUI. I need a command line client that is relatively easy to ...
1
vote
1answer
203 views

Issue installing gem

So I'm trying to install this gem but hitting an error. https://github.com/cgore/ruby-btce The actual README says to do a gem install, so I guess I didn't need to clone the git repo? Anyway, I had to ...