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

learn more… | top users | synonyms

0
votes
0answers
11 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 ...
0
votes
1answer
19 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
9 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 ...
0
votes
0answers
59 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
51 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 ...
1
vote
1answer
36 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
33 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
33 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
27 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
51 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
15 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 ...
0
votes
1answer
22 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
54 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
70 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
21 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
30 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
1answer
64 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
90 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
43 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
59 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
366 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
17 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 ...
0
votes
0answers
196 views

FFMpeg keeps hanging/crashing and causing memory allocation issues on Production RHEL Server

I'm working on adding video conversion to a Ruby on Rails (Ruby 2.1.5 Rails 4.1.5) app that I'm working on. I'm utilizing the Streamio-FFMpeg gem within the app so that I can run the necessary ...
0
votes
0answers
17 views

How to stop control/focus leaving the terminal when I start a GUI application

I have a Ruby script that launches Image viewer (eog) based on certain keyevents from the user. However Focus leaves the terminal(cursor stops blinking) when the first input is given. Until I click ...
0
votes
1answer
41 views

ruby installation as normal ubuntu user

I am trying to automate ruby installation through script in amazon ec2 ubuntu instance. Through script I can download, configure and make ruby from source but while trying to install ( make install ) ...
1
vote
0answers
193 views

Nginx + Passenger not working — client requests hang until timeout

I'm running on an EC2 instance with Amazon Linux installed and Nginx was installed via passenger-install-nginx-module. The full install process followed was similar to this. The primary difference was ...
3
votes
1answer
2k views

Gem installation failling with “The compiler failed to generate an executable file” on cygwin

Trying to install multiple gems on cygwin, I keep getting this error: /usr/share/ruby/2.2.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) This error is ...
0
votes
2answers
97 views

ruby gem install to 1.9.1 instead of 1.8

I ran the following lines in linux gem install mysql And it installed the mysql gem to /var/lib/gems/1.8/gems. That's not where I want it. I wnat it at /var/lib/gems/1.9.1/gems. I could just copy ...
0
votes
1answer
105 views

How would I write this VIM command for `sed`?

I have a .csv with special characters that are wrecking an import I need to do. In VIM, I discovered away to remove the special characters with : :%s/\r//g This removes ^M from some of my broken ...
0
votes
0answers
80 views

Mumble-Ruby openssl error when running scripts

First things first here are the instructions I am working off and system details: http://wiki.natenom.com/w/Mumble-Ruby_installation and this is for SuperBot a mumble ruby plugin. This is running ...
1
vote
1answer
155 views

Pathogen - only some of vim plugins work

So recently I installed Pathogen along with a few plugins like NerdTree, and Solarized and they both work really well. Today I tried to install Ruby indentation plugin ...
1
vote
0answers
83 views

Running ruby script through php as www-data

I am running a php application on an apache server. From the php application I need to run a ruby script on the command line. I have verified that running the script directly from a terminal as user, ...
1
vote
0answers
31 views

Will creating a restore point save my Ruby installation

I am running Ruby and Rails on a Win 8.1 PC, and want to know whether creating a Restore Point via System Properties will allow me to go back to my original Ruby version if I was to install a newer ...
0
votes
0answers
359 views

Problems installing Metasploit Mac OS X 10.10: Claims wrong Ruby version is installed

I am trying to install Metasploit on Mac OS X 10.10 (Yosemite), but it doesn’t work because it says I have the wrong version of Ruby. Gem::InstallError: metasploit-concern requires Ruby version >= ...
0
votes
0answers
196 views

Sequel::AdapterNotFound: LoadError: cannot load such file — java

I have installed jruby-1.7.16 using rvm and having java open jdk version 1.7.0_75. bundle install gets success below are the errors when I run the bundle exec rake db:migrate --trace ...
2
votes
1answer
262 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 ...
0
votes
1answer
5k views

Metasploit Install Fails. Requires >= Ruby 2.1 but I have 2.2

I’ve literally been trying to install metasploit for 2 days now and I think that's a ridiculous amount of time just to install some software. I have Arch linux and I am trying to install ...
0
votes
1answer
168 views

How to run Node.js on Mac after successfully installing it with gem?

On Mac OSX Yosemite I have successfully installed node: # sudo gem install node Fetching: eventmachine-1.0.7.gem (100%) Building native extensions. This could take a while... Successfully installed ...
0
votes
0answers
128 views

Permission denied error everytime I try to use npm in terminal

This occurs anytime I use npm in terminal and cannot seem to figure out where it is coming from" -bash: /usr/local/bin/rbenv: /usr/bin/env: bad interpreter: Permission denied
1
vote
4answers
108 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
148 views

Snorby with PostgreSQL installation issue in Mac OS X 10.10.2 (Yosemite)

Trying to setup Snorby for Snort with PostgreSQL on Mac OS X 10.10.2 (Yosemite) Snort 2.9.7.2 GRE (Build 177) PostgreSQL 9.4.1 ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin14.1.0] ...
0
votes
1answer
76 views

Installing TaskJuggler results in timeout

I'm trying to install TaskJuggler. As far as I can tell, I have successfully installed Ruby and Gem. The command I'm trying to execute and the error message is: C:\...>gem install ...
1
vote
1answer
313 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 - ...
0
votes
0answers
126 views

How to start an external process in a ruby windows service?

I use this as a template to start an external task from a service LOG_FILE = 'C:\\Tmp\\win32_daemon_test.log' begin require 'rubygems' require 'win32/daemon' include Win32 class DemoDaemon ...
2
votes
1answer
420 views

How can I upgrade the Ruby version on Passenger?

How can I uprgade the Ruby version installed on my passenger module for Apache? I on Debian 7 and it's running Ruby 1.9.1 but I want 2.2.0
0
votes
0answers
203 views

Error loading gem hipchat in ruby

I can confirm that the gem is installed vagrant@vagrant-ubuntu-trusty-64:~$ /opt/sensu/embedded/bin/gem list| grep hipchat hipchat (1.4.0) I have verified that EMBEDDED_RUBY is already set $ cat ...
1
vote
1answer
442 views

What to do when “apt-get update” gets stuck in 100%?

I'm setupping a VirtualBox VM to do my development work with Ruby on Rails. My problem is that apt-get update is taking very long, ~30 minutes instead of seconds. I can install things with apt-get ...
1
vote
1answer
61 views

Ruby Compile error Windows 7 x64

Getting this error when using nmake on Windows7 x64 to compile Ruby 2.2.0 I've never done this before, so I have been following this and this advice: generating ripper-x64-mswin64_100.def NMAKE : ...
0
votes
0answers
47 views

How can I install a hipchat gem?

This is the command and the output $ sudo gem install hipchat Password: ERROR: While executing gem ... ...
0
votes
1answer
342 views

`require': cannot load such file — mkmf

I ran the following command and got a ``require': cannot load such file -- mkmf ` error message $ sudo gem install sensu-plugin --no-rdoc --no-ri ...