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

learn more… | top users | synonyms

0
votes
0answers
10 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
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
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
838 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 ...
13
votes
3answers
32k 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
334 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
148 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
38 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
52 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 ...
0
votes
0answers
30 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
106 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
54 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
23 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
17 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
53 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
451 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
102 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
296 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
691 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
196 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
54 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
40 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
73 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
552 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
41k 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
17 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
181 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
26 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
90 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
39 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 ...
0
votes
2answers
2k views

Reinstall Ruby framework on OS X Yosemite

I installed home brew on Yosemite and it messed up the System built-in framework. I couldn't use the Ruby gems already installed or the new ones installed after Homebrew. Instead of fixing all the ...
0
votes
1answer
102 views

Problems getting cocoapods to work in Mac OS X

I try: pod -v This is my response i get back -bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory I installed cocoapods with sudo, like it says on ...
5
votes
4answers
1k views

finding geolocation from an ip address

How can I find a location such as city/state or country from an ip address? Is there a ruby gem or python module to do this? Or if there is a website which has an API.
0
votes
0answers
137 views

Canvas lms open sourse installation

Hope you are doing fine. I am facing a lot of problem while configuring canvas using ubuntu 14.04 following the steps described in https://github.com/instructure/canvas-lms/wiki/Quick-Start Step 1: ...
2
votes
1answer
316 views

Error “Insecure world writable dir /Volumes/BOOTCAMP in path, mode 040777”

I tried the answer sudo chmod go-w in my /Volumes/BOOTCAMP but I'm still getting the warning It says Insecure world writable dir /Volumes/BOOTCAMP in PATH, mode 040777 And when I echo $PATH ...
0
votes
0answers
57 views

How to increase OSX Terminal's “refresh rate”?

When I'm tabbed over refreshing a page on a ruby app, it sometimes takes a second (or a few) for the logs to appear in the terminal window, but I know for a fact the results are sent to $stdout almost ...
0
votes
0answers
70 views

How to downgrade rubygem2.4.8 to lower gems version which matches to my ruby version 1.9.1

I'm very new to Linux and to Calabash automation. and I roamed around Google, several sites, blogs to resolve my above problem but could not get the exact way to resolve it. I tried different commands ...