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

learn more… | top users | synonyms

0
votes
1answer
34 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 ...
0
votes
2answers
19 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
19 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 ...
1
vote
1answer
35 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
22 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
4answers
6k views

Can't run compass after install

This is a beginner mistake I am sure as I am new to terminal etc. I am trying to get compass working on my mac, I have already installed sass and got it working but when I try to install compass even ...
-1
votes
1answer
900 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 ...
2
votes
1answer
5k 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 ...
0
votes
1answer
66 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
179 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
16 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
1answer
3k 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 ...
1
vote
0answers
29 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
122 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 >= ...
7
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, ...
0
votes
0answers
50 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
34 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 ...
5
votes
4answers
6k views

~/.profile is not loaded when using SSH (Ubuntu)

Edited to reflect the problem I really wanted to solve: I need to set up my ruby environment so I can deploy via Capistrano. export PATH=$HOME/.rbenv/bin:$PATH eval "$(rbenv init -)" I put these ...
0
votes
0answers
47 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
2answers
9 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?
2
votes
3answers
2k views

How install gem rails for all users in arch-linux

When install rails with sudo gem install rails or with root user, this install in $HOME/.gem and only works for actual user, how install for all users in the system ?
0
votes
1answer
17 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 ...
2
votes
2answers
133 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. ...
0
votes
0answers
43 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
4
votes
3answers
2k 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
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: ...
4
votes
2answers
152 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 ...
0
votes
0answers
40 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: ...
3
votes
1answer
17k views

How to completely remove Ruby, Ruby gems on Mac OS X 10.6.4

Most rubyists might be shocked when they'll read this, but I'd like to know if it's possible to completely remove the Ruby framework as well as all the tools and gems that ship with Mac OS X 10.6.4. ...
0
votes
0answers
59 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
33 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
48 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
92 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
29 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 : ...
1
vote
1answer
84 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 ...
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
103 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
0answers
91 views

How to indent multiline ruby method chaining code like this in emacs?

I wish to have such indentation: some_object.method_1(args) .method_2(args) .method_3(args) While by default ruby-mode will indent the code like: some_object.method_1(args) ...
2
votes
2answers
12k views

Why am I getting “rvm: command not found” on Ubuntu?

I am trying to set up Siri Proxy, and I come up to the steps: rvmsudo rvm install 1.9.3 rvm use 1.9.3 --default rvmsudo gem install eventmachine CFPropertyList httparty json uuidtools But I can't ...
0
votes
1answer
52 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
597 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 ...
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
216 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
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 ...
0
votes
1answer
258 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
1answer
279 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
178 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 ...
10
votes
5answers
17k views

Is it possible to reinstall/fix Mac OS X's system ruby without doing a complete OS reinstall?

Is it possible? I'm running into various issues at least once a week since it got corrupted or something, especially with homebrew. If it is possible, but would just be a better idea to start from a ...