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

learn more… | top users | synonyms

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
1k views

How to get Ruby, when called from a shell script, to see RVM default Ruby

my ruby prog: #echoHW.rb while 1 < 2 sleep(10) puts "hey!" end the bash(?) script that calls it: #echoHW.sh ruby -v ruby echoHW.rb "$@" & I installed rvm, trying both "single user" ...
0
votes
1answer
2k views

Using rvm within a bash script on CentOS 6.2

I'm trying to write a script that does goes through all the steps for installing and setting up a graylog2 server and web interface on CentOS 6.2. Here is the section that I'm having trouble with: ...
1
vote
1answer
1k views

libxslt is missing installing Nokogiri with RVM

It's been one month I'm trying to install the Nokogiri gem on Fedora 16 to run a friend's Rails project. I installed Ruby with RVM. Using gem install nokogiri returns libxslt is missing. please ...
0
votes
1answer
586 views

Problems installing Ruby 1.9.2 and rvm on Debian Lenny

I have currently have Ruby 1.9.1 (bad) and want to install 1.9.3 under rvm. However, rvm requirements gives a long list, most of which installed fine: install build-essential openssl libreadline6 ...
1
vote
2answers
1k views

sublime 2 rails multi line comments key command

when coding ruby in sublime text 2, are their key commands for multi line commentS? class Myclass include MyMethods def instance_method puts "hi from the instance method" ...
0
votes
1answer
701 views

Problems installing ruby 1.9.3 on Snow Leopard

I am trying to install ruby 1.9.3 (I am running xCode 4.2) with the following command: rvm install 1.9.3 --with-gcc=clang Fetching yaml-0.1.4.tar.gz to /Users/myusername/.rvm/archives Extracting ...
2
votes
1answer
1k views

Ruby Gem “mechanize” missing libxml2 on Mac OS X 10.7.2 (Lion)

I'm trying to run a Ruby script, so I installed Ruby together with Ruby gems on my Mac OS X 10.7 system. The script requires the Rubygem "mechanize" so I tried to install it by using: sudo gem ...
0
votes
2answers
353 views

How do I input Terminal commands when running a rails server?

I just started using Rails a few days ago, and I'm having trouble with terminal commands. The textbook I am reading keeps telling me to run Terminal commands while having a Rails server running. This ...
0
votes
2answers
871 views

Amazon EC2 and eventmachine encryption issues

I'm testing out an Amazon EC2 instance (Amazon Linux AMI 2011.09, EBS boot, 32-bit architecture with Amazon EC2 AMI Tools.) to see if it'll serve my purposes. I've written a small backend in Ruby ...
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 ...
1
vote
2answers
205 views

How can I update Ruby and Rails on MacOS 10.6?

I just got a Macbook laptop that is running 10.6.3 AKA "Snow Leopard". I know it comes with Ruby 1.8.7 and Rails 2.3, but I was wondering what the best way is to update those to Ruby 1.9.2 and Rails ...
4
votes
2answers
4k views

Why can't I set the default Ruby version in Ubuntu?

I'm trying to set my Ruby version to be 1.9.2, but I can't change it from the system Ruby installation. What am I doing wrong? My terminal output is: $ rvm list rvm rubies => ruby-1.9.2-p180 [ ...
1
vote
0answers
104 views

How do I execute a Ruby 1.9.3 program from Windows Explorer on Windows 7?

I wrote a Ruby program that will check a *.log file for key words and phrases. The program is called "Check_Log.rb". I use Windows 7 and I'd like to be able to right click the log file in Windows ...
7
votes
5answers
3k views

How do I alias a Homebrew installed Ruby 1.9 gem binary in /usr/local/bin?

Homebrew's Ruby 1.9 ships with rubygems. Doing gem install ... installs files and binaries into some long-winded path. For example, bundler is installed at: ...
0
votes
1answer
174 views

Host OS slow to find web brick server running on linux as guest OS in VirtualBox

I am running VirtualBox 4.1.6 on Windows 7 on fairly quick machine with 12G of ram. I have a virtual machine running Ubuntu 11 on which I am doing rails development using ruby 1.9.3 and rails 3. When ...
0
votes
1answer
336 views

why doesn't “which ruby” output anything?

I'm using Debian 6. I uninstalled ruby1.8, and then I installed ruby1.9.1. If I type "which ruby" at the command line, it doesn't output anything. It seems like it doesn't recognize it.
0
votes
1answer
340 views

Process monitor service in Windows

I need something that runs in the background as a service (Windows), watches defined process and when it crosses thresholds it restarts/stop/starts the process again? (similar functionality of rubygem ...
2
votes
1answer
2k views

Installing Ruby with Homebrew

I'm trying to install Ruby 1.9 using Homebrew. I'm using Mac OS X Lion, so Ruby 1.8.7 is installed by default. I've got Homebrew installed at /usr/local/bin/brew (well that's what it says if I run ...
9
votes
5answers
3k views

Homebrew keeps saying XCode is not installed

I'm trying to installed Ruby using Homebrew, the OSX package manager. When I run 'brew install ruby' I keep getting the message 'Warning: XCode is not installed!'. XCode is installed, it's lying. ...
2
votes
2answers
1k views

Ubuntu - Ruby Daemon script creates two processes - sh and ruby - PID file points at sh, not ruby

The PID file for a ruby process I have running as a daemon is getting the wrong PID. It appears that running /etc/init.d/sinatra start creates two processes - sh and ruby, and the PID that ends up in ...
0
votes
1answer
97 views

How to keep gems in sync for two ruby versions?

I use MacPorts to install and update two versions of ruby (1.8.7 and 1.9.2). How to make gems of both versions be in sync? Is it possible to use same directory for gems, but make native extensions to ...
1
vote
1answer
1k views

Redmine installation issues rake command issue, MySQL database issue?

I have somewhat of a complex issue involving several different programs including redmine, MySQL, Ruby, Ruby on Rails etc. This is on Windows XP. I am following the redmine instructions here: ...
5
votes
2answers
440 views

Set the OS X clipboard to a rich text link in a Ruby or shell script

I'm trying to generate a report by using a Ruby script to parse an XML document. I'm pulling link text and the actual URL and I'd like to be able to format those in a way that I could simply ...
2
votes
1answer
208 views

Problems with git and bundler

I'm trying to set up Gitorious on my Server with this tutorial and having problems over problems with gem/git. After fixing a lot of libs and dependancies, bundler now won't work with git ...
2
votes
1answer
282 views

Can't find sqlite3 in this ruby/rails version using rvm

I installed rvm and am using 1.9.2 with rails 3.05. I was able to create a new application but once I moved into the directory and tried to start the server ("rails s"), I got this error message ...
2
votes
1answer
1k views

How to create a GEM_HOME for rvm?

I'm learning how to set up different versions of ruby with different versions of rails using rvm. Here's a link for the instructions http://beginrescueend.com/gemsets/basics/. It says Let's say, ...
1
vote
1answer
502 views

“Git: command not found” error while installing RVM on OS X

Working from my command line on Mac OS X Snow Leopard in directory /Users/michael, I did the installation line recommended by the RVM site: bash < <(curl -s ...
2
votes
2answers
3k views

How to install and use different versions of ruby?

I'm learning rails from different books that use different versions of both ruby and rails. Right now I have ruby 1.87 installed on my Mac OS X Snow Leopard (in /usr/bin), but need to also use ruby ...
4
votes
1answer
2k views

How do I set up Ruby + Thin server in Windows? [closed]

I need to setup the "Thin" server on Windows, but I'm running into some issues, anyone able to help?
2
votes
0answers
260 views

Are there any Google Chrome extensions for inserting Furigana over Kanji?

Are there any Google Chrome extensions or userscripts for automatically inserting Furigana characters over Kanji in web pages? Please don't suggest Furigana Injector, because it doesn't work and is ...
1
vote
1answer
121 views

Upgrading Rails Dev Unit from Snow Leopard to Lion

Should I take any considerations for my Rails 3.0/3.1, Ruby 1.9.2 development machine running OS X 10.6 Snow Leopard before upgrading to OS X 10.7 Lion? Will there be anything that I need to ...
3
votes
4answers
5k views

What is the simplest way to download a gem without installing rubygems?

I would like to download a gem without installing all the required gems for a given gem. Specifically for the Rails 3 gem. It has a lot of dependencies, and I need to install it on a closed server ...
1
vote
0answers
591 views

Installation on Linux & Win7: Aptana, PostgreSQL, Ruby, JQuery (WWW on Apache)

Basically I have 2 systems, where I want to develop (and use) my application: A Linux (Debian) system. This is my server. Here I have PostgreSQL (& phpPgAdmin), Apache, Ruby. Typically I use ...
1
vote
2answers
592 views

Rake, Rspec and Windows

If I try and run the simplest of rake rspec tests in my windows environment (which I have basically no experience in) I get the following error: >ruby "D:\Ruby191\bin\rake" test ...
3
votes
3answers
1k views

Where can I find the rails executable in Debian?

I am having a problem with my installation of Ruby/Rails on Debian. I've installed Ruby 1.9.1(1.9.2) using the package manager and I've created links to ruby1.9.1 and whatnot to allow me to use the ...
1
vote
1answer
4k views

Change the path for ruby and irb to 1.9.2 in OSX

I recently used Homebrew to install Ruby 1.9.2 on OSX. The binary for the new version seems to be in /usr/local/bin. When I type "ruby" (or "irb") in a terminal, I want the binaries corresponding to ...
1
vote
0answers
212 views

How do I make Gedit run a custom command when I save a certain type of file?

Can I tell Gedit to automatically run a command like slimrb -p foo.slim foo.html whenever I save a file ending in .slim?
3
votes
1answer
788 views

How to set the default language in Notepad++ for Rails View files

Similar question to this but my question goes a step further. I'm developing in rails and would like Notepad++ to automatically use html formatting on files with the extension html.erb. For example ...
5
votes
4answers
7k views

Errors when installing Ruby to Mac OSX Lion via RVM

I was trying to install the newest version of Ruby via RVM, after I upgraded my Mac to Lion and installed the new Xcode 4.1 from the App store. I get this error in the log: [2011-07-20 16:57:15] ...
2
votes
0answers
54 views

Customize netbeans rails module

The Netbeans rails plugin has a simple a project structure: However, I have encountered the following problems: I cant access config.ru file I cant access app/uploaders dir (carrierwave gem) ...
1
vote
1answer
638 views

Character encoding after shebang in shell scripts?

I came across some Ruby scripts on Github. The first line is the normal shebang (#!/usr/bin/ruby), but the second line is the following: # -*- coding: utf-8 -*- I didn't know this method of ...
0
votes
1answer
531 views

Why do I not have permissions to run this method?

I'm using a Ruby gem called IMGKit and when I use the gem's to_img method in the console I get this error: IMGKit::CommandFailedError: Command failed: /rubyprograms/search --format jpg ...
0
votes
1answer
589 views

Redcar Install through RVM

I am trying to install Redcar on Ubuntu using RVM. I have read countless articles about it and i still get this error message. I followed this article in particular. ...
3
votes
1answer
190 views

what does STOP service do in Windows?

I start my web server as web service on Windows XP. How it was done is described here My web server is coded in ruby/sinatra and I start it C:\Ruby187\bin\ruby c:\web\web2.rb. That code the service ...
1
vote
1answer
976 views

How to run script as a Windows XP service?

I want to run my ruby web server as a Windows XP service. Somebody can advice how to do that? I changed (removed the word ruby) the title so more people can find the answer. It will work for any ...
4
votes
3answers
611 views

finding geolocation from an ip address

How can I find a location such as city/state or country from an ip address? Is there a ruby gem or python module to do this? Or if there is a website which has an API.
2
votes
2answers
848 views

Create a local DNS TLD for development

I do a lot of web dev, mainly RoR and PHP, I've got a VMs which holds my dev environments and handling multiple clients on them is a pain. With PHP you just create a subdir, but with RoR it's a little ...
0
votes
1answer
950 views

How to install Ruby on RHEL 5.3

I am trying to install the latest Ruby on RHEL 5.3 with the following: [root@anjanb logs]# yum install ruby-full Repository engineering-update is listed more than once in the configuration Repository ...
14
votes
2answers
12k views

How to install the latest version of Ruby and Ruby on Rails in Ubuntu?

I installed Ruby with the command apt-get install ruby1.9.1, but when I enter ruby in the console, nothing happens. I have to use the command ruby1.9.1-v ruby 1.9.2p0 (2010-08-18 revision 29036) ...