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

learn more… | top users | synonyms

0
votes
0answers
15 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
9 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 ...
-1
votes
0answers
259 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
23 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 ...
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
2answers
5 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
8 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
91 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
28 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
108 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: ...
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 ...
4
votes
2answers
101 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
24 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
0answers
45 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] ...
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
39 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
23 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
38 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
65 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
24 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
50 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
22 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
89 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
82 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
3answers
11k 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
35 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
455 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
18 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
26 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
13 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
177 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
156 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
208 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
113 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
16k 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 ...
0
votes
0answers
876 views

Removing or Uninstalling Ruby, Rails, and/or Gems from Mac OS X 10.9.4

I had some health issues and was away from my iMac for about 6-8 months. I’m not exactly sure which version of OS X was running when I stopped using it, but I had just installed Rails and was about ...
1
vote
0answers
116 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 ...
0
votes
2answers
950 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
1answer
37 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 ...
3
votes
2answers
4k views

Installing Ruby with RVM in Ubuntu 14.04

I installed RVM using the following command \curl -L https://get.rvm.io | bash -s stable Then I restarted the terminal and executed this commands source ~/.rvm/scripts/rvm rvm requirements rvm ...
0
votes
1answer
48 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 ...
18
votes
3answers
19k views

how can I uninstall using homebrew?

Can I uninstall something I installed via homebrew using homebrew?
0
votes
0answers
381 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 -- ...
2
votes
4answers
641 views

How can I allow files to be dropped onto a Ruby script in Windows Explorer

In Windows Explorer (Win7) I can drop a file onto a batch (.bat) file, and the batch file is executed with the path to the dropped file as the first command line argument. How can I do the same thing ...
0
votes
0answers
143 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
207 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 ...