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

learn more… | top users | synonyms

2
votes
1answer
6k 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 ...
1
vote
0answers
21 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
24 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
votes
0answers
12 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
36 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
8 views

Ruby creating a hash containing nested hashes [migrated]

I currently have a hash that contains a nested hash. The nested hash will be created based on the actors name which will be the key, this works fine. What i need to do is add a new hash, a hash of ...
0
votes
0answers
6 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
18 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
20 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
14 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
847 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
33k 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
344 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 ...
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
172 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
46 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
55 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
36 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
14 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
0answers
153 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 ...
1
vote
1answer
61 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
24 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
18 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 ...
5
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 ...
0
votes
1answer
55 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
486 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
112 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
1k 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
305 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
717 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
11k 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
199 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 ...
0
votes
0answers
59 views

Deploying ruby app with Apache 2.4

I'm trying to run two different apps with Apache 2.4 and Passenger under OSX 10.10.5. Snorby(rails driven app) uses port 3000 and Ntopng( lua based - also uses port 3000) Have two virtual hosts for ...
1
vote
0answers
42 views

Could not initialize MySQL client library in Justhost

I am trying to configure redmine in justhost. following link was used for configuration. Link: https://my.justhost.com/cgi/help/redmine I am getting error - Could not initialize MySQL client library. ...
4
votes
3answers
4k views

Can't vagrant install a plugin: gem dependency fails despite being installed

I am attempting to install the vagrant-vbguest plugin in Windows 7 from within cygwin 64. $ vagrant plugin install vagrant-vbguest Installing the 'vagrant-vbguest' plugin. This can take a few ...
0
votes
1answer
30 views

Which risks after a chown on /usr/local/

First of all sorry for my english I'm french. I was trying to install rvm on OS X El Capitan, and an error stopped the installation, said me to check that brew update run correctly and surprise, it ...
0
votes
1answer
82 views

Access Denied when trying to change directories in command prompt

I'm trying to learn Ruby, and I'm pretty new to anything related to the command line, but so far everything seems to be working okay other than when I change directories. I can write ruby scripts, and ...
0
votes
2answers
1k views

Amazon EC2 and eventmachine encryption issues

I'm testing out an Amazon EC2 instance (Amazon Linux AMI 2011.09, EBS boot, 32-bit architecture with Amazon EC2 AMI Tools.) to see if it'll serve my purposes. I've written a small backend in Ruby ...
1
vote
1answer
573 views

Remove all Ruby from Ubuntu

I’m trying to start a new project with RadiantCMS, but I’m having lots of problems, because in the server are 2 different Ruby installations. The first one, was installed following this tutorial and ...
31
votes
7answers
43k 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 ...
0
votes
0answers
20 views

Sync copy directory contents with Rakefile

Part of Rakefile is: task :js do   FileUtils.cp_r('js-src/script/.', 'js/') end This command copy all files from scr to dest. But files need to copy if in in src it was ...
1
vote
4answers
221 views

Installing a Ruby Gem for a specific version of Ruby in Ubuntu

I have Ruby 1.8 and Ruby 1.9.1 on my Ubuntu operating system. When I do a gem install php_http_build_query, it installs the gem to Ruby 1.8. How do I get it to install it to Ruby 1.9.1?
0
votes
1answer
28 views

Is installing Rails via Debian APT package a best practice?

I've been recently reading the Debian website and found a page called Don't Break Debian (https://wiki.debian.org/DontBreakDebian) where they tell that it is not a best practice to install software ...
0
votes
1answer
62 views

Issues running ruby script as cron job

I have a ruby script which i want to run as cron job.It runs perfectly fine when i run through command prompt on a linux machine. But when i run that same script using a cron job it fails. I get ...
0
votes
0answers
96 views

Can't migrate ruby windows to ruby cygwin

On my windows 8.1+cygwin install, I had an windows ruby install. As I use mostly cygwin and cygwin and non-cygwin tools tend not to work well with each other, I wanted to move ruby to cygwin. ...
0
votes
0answers
27 views

how to install pg_array_parser gem on windows?

when I want install pg_array_parser gem in windows 7 64bit see this error : C:\metasploit\apps\pro\msf3>gem install pg_array_parser -v 0.0.9 Building native extensions. This could take a ...
0
votes
0answers
43 views

How to print japanese text in PDF along with English characters using rghost?

I want to generate a PDF with English characters along with some Japanese characters also; using Rghost but unable to text. There is a ruby config file in Ruby 1.9.3, external encoding was ascii-8 ...