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

How to use tar in ruby on rails?

So I want to make this script to also compress the files in /home/git/gitlab/public/uploads/files_which_should_be_compressed as a tar file and also to move this tar file to /home/git/gitlab/tmp/...
0
votes
1answer
23 views

Linux fails at creating an tar file for a backup

So I want to make a backup of git. I am using this script to do this (here:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md). But creating the tar file always fails ...
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
26 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 ...
0
votes
0answers
12 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]...
2
votes
2answers
32 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 ...
4
votes
1answer
235 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: /...
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 ...
1
vote
2answers
198 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
15 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
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
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
0answers
48 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
160 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
27 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
77 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
39 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 ...
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 ...
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
47 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
2answers
386 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
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 ...
1
vote
1answer
80 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
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....
0
votes
1answer
235 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
0answers
142 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 ...
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
0answers
72 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
50 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. ...
0
votes
1answer
32 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
107 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
0answers
21 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 changed....
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
72 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
107 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
30 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 while....
0
votes
0answers
51 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 bit,...
0
votes
1answer
148 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 ...
0
votes
0answers
187 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: ...
0
votes
0answers
73 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
87 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 ...
0
votes
1answer
724 views

/usr/bin/env is pointing to wrong ruby version. “No such file or directory”

If I type "rake spec" I get. /usr/bin/env: ruby1.9.1: No such file or directory This problem started happening when I uninstalled ruby 1.9.1 and used rvm to install the latest ruby version but ...
0
votes
0answers
24 views

How to access folders on Ruby

I have Windows PC. I am trying to access a folder I created in Windows explorer called "Ruby". I tried typing this in Ruby "$ cd ruby" but I get an error message " is not allowed as a global variable ...