Tagged Questions

Ruby is an open-source dynamic object-oriented interpreted language that combines the good bits from Perl, Smalltalk and Lisp. It supports multiple programming paradigms. Ruby's primary purpose is to "help every programmer in the world to be productive, and to enjoy programming, and to be happy." ...

learn more… | top users | synonyms

1
vote
2answers
35 views

Can't install pg gem

I cant get the pg gem to install. I have tried --with-pg_config and it didnt work. Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. ...
0
votes
0answers
17 views

How to install Sublime Text 2 Ruby Tests

I have followed these instructions, but I am not able to get the Ruby test to run in Sublime Text 2. Why would this be? What could I be doing wrong?
1
vote
1answer
36 views

Customize Emacs Ruby Mode for PuppetLabs conifguration

I predominantly use emacs for editing my Puppet configuration files. I use the following settings in my .emacs to load Ruby mode and use it for Puppet config files (*.pp): (autoload 'ruby-mode ...
1
vote
1answer
73 views

Why doesn't Ruby's configure script detect my executables and header files?

I'm trying to compile Ruby and really understanding what's going on while doing so. I've used and written Makefiles before, but not autoconf's configure.in files, so maybe the result I'm getting is by ...
1
vote
0answers
68 views

Manually setting environment variables for Metasploit

How do I set manually environment variables for metasploit, when I execute db_driver I get this message: [*] No Active Driver [*] Available: [*] DB Support: Enable the postgresql driver ...
1
vote
1answer
111 views

Opening a file with space from Ruby

When I need to progmatically open in emacs a file that has a space in its name, how can I do that? I've tried these commands from a Ruby script, inside backquotes or popen(…): emacs "foo bar" or ...
1
vote
1answer
79 views

Why do I have to stop/restart cups in redhat linux in order to use a custom filter?

A colleague wrote a filter utility for me in ruby that allows me to print barcodes from a textfile. (The filter replaces @{blah} with the proper PCL and a barcode checksum character so that "blah" ...
0
votes
0answers
55 views

Which Linux distrobution should I use? [closed]

I am learning to develop in Ruby on Rails. I'm currently using a Windows 7 machine. Its been a pain to have to worry about all of the extra configuration and lack of support. So, I'd like to install ...
0
votes
0answers
69 views

rdoc-data --install failing

No clue what is going on here, tried goggling, without success. I am running Arch Linux. [greg@m1ndpixel ~]$ rdoc-data --verbose --install cd /usr/lib/ruby/gems/1.9.1/gems/rdoc-data-2.5.3/data/1.9.3 ...
1
vote
1answer
54 views

How to add methods to rush (Ruby shell)?

I am starting to learn the basics of rush (ruby shell), and I know it is possible to invoke methods such as home['foobar.c'].vi. However, say I wanted to edit it with GNU Emacs, how do I add a new ...
0
votes
1answer
52 views

Why doesn't 'which ruby' output anything?

On Debian 6, I uninstalled Ruby 1.8 and installed 1.9.1. Now if I run which ruby it doesn't output anything. Why can't it find ruby anymore?
1
vote
3answers
101 views

What's the best way to determine the source directory for UNIX process using 'ps'?

I am running a Ruby command line script (rufus.sh)which ultimately calls Thread.new, which spawns a UNIX process as shown below. I run this script for more than 1 directory as the output of the ps ...
2
votes
1answer
228 views

TinyCore Linux & RVM

I'm running TinyCore Linux and when I tried to install RVM (needed a portable linux distro for QA Automation) I keep getting an error sh: syntax error:unexpected redirection. I am unsure why I am ...
1
vote
2answers
94 views

Check the Existence of a Network Interface Card Redhat

I'm aware that I can use ethtool eth0|eth1|eth2 to check the existence of a NIC. But I wonder where the files are on the machine that contain information of an existing interface, as I need to use ...
0
votes
2answers
164 views

Ruby and Git refuse to update. (Mac)

I've been trying to update Git for a while. I'm currently stuck on 1.7.3.4, and I've tried updating to 1.7.4.x, and 1.7.5.x but it never works. Today I compiled and installed Ruby 1.9.2, but it still ...
2
votes
1answer
128 views

I shouldn't use root on my new ubuntu cloud instance, right?

I am playing with ubuntu on my new Rackspace cloud instance. However, the information they give me is for root access -- that doesn't seem like a best practice for doing development on this thing. ...
6
votes
2answers
3k views

Best way to upgrade vim/gvim to 7.3 in Ubuntu 10.04?

I have to use Ubuntu 10.04 at work, and cant upgrade it. I'm using Vim/gVim 7.2. I want to upgrade it to 7.3 (with python and ruby extensions support). Which is the best way? Add an entry in ...