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

learn more… | top users | synonyms

0
votes
0answers
12 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
17 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 ...
0
votes
0answers
15 views

How to make a symlink to make it Compass on my Mac?

I have everything installed on my Mac that should do the job to run Sass and Compass, but it seems that the paths are not optimal. When I installed Compass and Sass I did it by following these ...
1
vote
1answer
31 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 ...
0
votes
0answers
13 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
28 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
112 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
40 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
0answers
31 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 ...
-1
votes
1answer
818 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
0answers
42 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
42 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
0
votes
2answers
8 views

Gem install to a specific version of ruby

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
0answers
37 views

Please explain the content of my snorby database.yml

I'm trying to reconfigure my Snorby (installed for MySQL) to work with already existing Snort database (Postgres). This is Snorby database.yml file: snorby: &snorby adapter: mysql username: ...
0
votes
1answer
61 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
16 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 ...
0
votes
0answers
58 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
32 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
46 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
89 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
76 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
27 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
27 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
0answers
101 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 ...
0
votes
1answer
49 views

Change default Ruby for all users with rbenv

I installed rbenv in vagrant this way: apt-get update apt-get install -y automake bison build-essential git-core libffi-dev libreadline6-dev libgdbm3 libgdbm-dev libncurses5-dev libssl-dev libtool ...
0
votes
1answer
579 views

Can't install Ruby 2.2.0 using rbenv

I installed rbenv from GitHub: git clone git://github.com/sstephenson/rbenv.git ~/.rbenv git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build I’m trying to install Ruby ...
0
votes
0answers
19 views

How to install Insoshi in Windows using Rails 3

I am trying to install Insoshi but don't know how to install it. I've tried the read-me file many times but get stuck in the Install script section. Whenever I use this line $ cp ...
4
votes
2answers
146 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 ...
2
votes
1answer
34 views

Customize “wrap” characters in Sublime Text

In Sublime Text, highlighting any text and pressing any of the following symbols: ' " ( { [ will cause the entire highlighted section(s) to be surrounded by the key you pressed (or its matching ...
0
votes
0answers
14 views

Ruby RuntimeError on launching terminal (Mac)

Whenever I open the terminal on Mac I get this error: /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby: invalid option --1 (-h will show valid options) (RuntimeError) ...
0
votes
1answer
207 views

Ruby using 100% CPU on OSX

I'm doing web development and have Ruby running a bunch of tasks.. Grunt serve, Sublime plugins, Brew etc... Nothing fancy. Just some npm installs and a grunt serve command inherited from ...
0
votes
0answers
118 views

How to avoid gem update error in windows?

Showing below error C:\Ruby21>gem update Updating installed gems ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: ...
0
votes
0answers
17 views

Can vim/gvim show “self” when editing a Ruby file?

When editing Ruby files in gvim, I'd like to be able to see which Ruby context the cursor is in. For example, if I have a file with several nested modules and classes, I want to be able to see what ...
2
votes
2answers
126 views

Windows 7 CLI not recognizing commands without specifying extension

I've apparently gone and mucked up my system in a strange way. Windows 7's cmd prompt is no longer recognizing any executable or batch files unless I explicitly type their extension. ...
1
vote
1answer
265 views

Homebrew error in OS X. Bad interpreter: Too Many levels of symbolic links. Undefined error: 0

I've been searching for an answer to this problem for a few weeks now, and while I've seen similar problems, none that I have found have been exactly like the error I'm experiencing. I've tried ...
0
votes
1answer
169 views

Force SublimeREPL to use specific version of Ruby

I installed SublimeREPL for use with Ruby. It attempts to run code on Ruby 1.8.7 and I would like it to run on 1.9.3, and later on other versions of Ruby. I'm not sure where it's inheriting the ...
0
votes
1answer
239 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 ...
1
vote
0answers
126 views

502 Bad, Gateway Ruby on Rails [closed]

Our website is currently down(hosted on Digital Ocean) with error code "502 Bad Gateway" and our web developer is currently out on Vacation. I am just an IT person on our network and I don't have web ...
1
vote
1answer
44 views

NoMethodError with Ruby when installing SoundCloud 2000 client for CLI

I’m trying to install SoundCloud2000 on my MacBook running Mac OS X 10.8.5. I have Ruby 2.2.0, mpg123, and portaudio installed. Installing SoundCloud 2000 as a GEM seems to work fine: gem install ...
0
votes
1answer
52 views

Losing line breaks when pasting code into Nitrous

When pasting a bloc of Ruby code from Atom or the Nitrous text editor into the Nitrous console, all line breaks are lost. Multiple lines of code are concatenated into one long string, separated by a ...
0
votes
0answers
446 views

Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (cannot load such file — mysql2) (LoadError)

I am trying to install Redmine on Ubuntu and currently having an error if open Redmine page: Please install the mysql2 adapter: gem install activerecord-mysql2-adapter (cannot load such file -- ...
0
votes
1answer
175 views

RVM wants me to edit PATH in .bash_profile - I fear it is a mess

I am trying to get an Omega sub-theme running on my local machine (OSX 10.10) with Acquia Desktop Dev. Trying to run isolated ruby in sub-theme directory. When I use rvm list I get: Warning! PATH is ...
0
votes
0answers
228 views

Gems installed with the --user-install option into the OS X home folder aren't working properly afterwards.

On previous OS X revisions i had installed my gems with sudo. With Yosemite i wanted to change that and install without sudo. To leave the default gems in /Library/Ruby/Gems/2.0.0 ...
0
votes
0answers
30 views

ActiveSupport requires ruby version >= 1.9.3., but Ruby 2.1.5 installed

I am getting this error when trying to install middleman: root@ThinkPad-T410:~# sudo gem install -V middleman root@ThinkPad-T410:~# ERROR: Error installing middleman: root@ThinkPad-T410:~# ...
0
votes
2answers
191 views

Why does systemd process stop as soon as it starts for foreman server process?

I am trying to export a simple Ruby app using foreman. Based on its usage for systemd, I appear to be doing things correctly. However, when I start the target/service, I get status messages along the ...
0
votes
1answer
438 views

Brew & Ruby no longer functioning properly due to a recursive trap

After updating to OS X 10.10 (Though this might have been irrelevant), I was not able to run any brew commands. Any command gave me this error: /usr/local/bin/brew: /usr/local/Library/brew.rb: ...
1
vote
1answer
602 views

Why can't nginx access puma socket on CentOS 7?

So I have a Ruby on Rails app in /var/www/ owned by nginx with 755 permissions. Said app is intended to be deployed via puma. Like so: rvmsudo -u nginx bundle exec puma -e production -d -b ...
0
votes
0answers
38 views

Unable to Uninstall JRuby on Windows

I'm unable to uninstall JRuby on Windows. When I run the uninstallation program the first time it finishes its work with an error: java.io.IOException: access denied, also it deletes the files.log ...
0
votes
1answer
24 views

How can I disable rvm's interactive help (pager?) i.e. more / less a la `man`?

I recently upgraded from rbenv to the newest version of rvm. If I type a command such as: rvm help Then it gives me the same sort of paging interface I would get with man rvm - but I just want it ...
13
votes
2answers
6k views

Ruby installation issues with RVM

I've been following the directions at http://installrails.com to get my Macbook Air setup for some ruby work but I am running in any issue with RVM. When I try to install Ruby I get the following ...