Ruby is a dynamic, reflective, general-purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features.

learn more… | top users | synonyms

1
vote
1answer
552 views

Installing ruby 2.1 on Ubuntu 12.04 using ruby-install application

I've been through a couple of tutorials on how to install ruby 2.1.* My system currently has ruby 1.9.3 and I want the latest one. I'm following the following tutorial on how to install it from here: ...
1
vote
1answer
443 views

“Failed to build gem native extension” when installing xively-rb for raspberry Pi

I'm trying to install the xively Ruby gem on the Raspberry Pi - http://rubygems.org/gems/xively-rb However, during install the following occurs: gem install xively-rb Building native extensions. ...
1
vote
1answer
283 views

Ubuntu LTS : best practice for installing gems

Ubuntu 12.04 LTS Server I'm relatively new to Unix/Ubuntu. I need to install the ruby gem libopenssl-ruby. I know that Ubuntu LTS versions maintain lists of authorized package versions. apt-get ...
1
vote
1answer
423 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
1answer
301 views

`rvm list remote` not showing binaries for Ubuntu 14.04 box

I'm trying to provision a dev box with rvm on Ubuntu 14.04 (via Vagrant and Ansible). I've installed rvm: gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 \curl -sSL https://get.rvm.io | ...
-1
votes
1answer
1k views

How to install Ruby 2.0.0 in kali linux?

Currently i have version 1.9 of Ruby installed. I need to install arachni we scanner which requires version 2.0.0. or later. How can i upgrade it to v 2.0.0?
2
votes
0answers
22 views

problems running brew

I have a macbook pro running OS X 10.10.1 with home-brew installed, but it is giving me some problems. When I tried to run brew doctor after having installed it I got the message. ...
2
votes
0answers
199 views

FreeBSD 8.4 pkgdb fails after upgrade to Ruby 1.9

I just upgrade Ruby 1.8 to Ruby 1.9. After the upgrade I followed the instructions in the UPDATING file located in /usr/ports. I issued the following two commands: portmaster -o lang/ruby19 ...
2
votes
0answers
161 views

Ubuntu : puppet f5 device config : Partition '' doesn't exist

This is a Puppet question that I've posted on the PuppetLabs forums with no response. I'm also posting here because I'm hoping that with a wider audience I might find someone knowledgeable re Puppet ...
1
vote
0answers
26 views

How can I syntax highlight Ruby range bounds in gtksourceview3.0?

I do most of my coding in gedit, which highlights integers and other syntax. When I use an integer range in Ruby, represented as 0..3 for example, the integers are not properly highlighted and are ...
1
vote
0answers
469 views

How to install Ruby Test to Sublime Text 2

I am quite new to Ubuntu, so I am running into some problems. I was following this tutorial to install Ruby Tests for Sublime Text 2: https://github.com/maltize/sublime-text-2-ruby-tests There is ...
1
vote
0answers
116 views

Ruby on Rails missing Thor

When trying to run rails g migration a, I get the following message Thor is not available. If you ran this command from a git checkout of Rails, please make sure thor is installed, and run this ...
1
vote
0answers
538 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 ...
0
votes
0answers
14 views

umask issue with apache phusion passenger

We have a rails application where a unix account will write to directory belonging to another unix account. I have added both the accounts to a common group. The new file which is getting created does ...
0
votes
0answers
24 views

yum update conflict rubygem-passenger-native-libs from passenger repository vs centOS updates

yum update on a puppet dashboard throws up following error. How do we resolve it safely? Error: Package: 1:rubygem-passenger-native-libs-3.0.19- 1.el6_1.8.7.352.x86_64 (passenger-centos6-x86_64) ...
0
votes
0answers
26 views

Openssl support for ruby not found in passenger installation on redhat 6

I have openssl 1.0.1e-42.el6 already installed. Also tried to compile openssl from ext/openssl directory which failed with below error ossl_pkey_ec.c:815: error: ‘EC_GROUP_new_curve_GF2m’ undeclared ...
0
votes
0answers
41 views

How to check if Nginx + Ruby on Rails web application is down?

I am very new to *nix system. I have below setup: OS - Ubuntu 14.14 Web Server - Nginx with Passenger Web Application Ruby on Rails web application Please tell me what tools to use to achieve: ...
0
votes
0answers
12 views

Trouble with postfix configuration to communicate with ruby application

This could be such a wide range of things but i hope posting here would narrow it down, i have this application installed and running in a web browser https://bitbucket.org/naushniki/qamail/src and ...
0
votes
0answers
11 views

Tab separated output for multipath -ll, uname -a , ifconfig -a , hostname using Ruby

I'll like to use Ruby to produce a tab separated output file of mutipath -ll, ifconfig -a , uname , cat /etc/sysconfig/network-scripts/route-eth0 comands
0
votes
0answers
23 views

Im using Whonix, How to set Directory where I upload my website to on local machine

Im using whonix Gateway and Workstation. I have them installed correctly and I can access the tor through them. Im trying to publish an .onion website. I have a website written in Ruby Rails. How ...
0
votes
0answers
320 views

How can I run script without root to sniff network (libpcap)?

I have a script (in ruby): require 'ffi/pcap' pcap = FFI::PCap::Live.new(:dev => "wlan0", :timeout => 1) pcap.loop() do |this,pkt| puts pkt.body end When I try to run the script , I get ...
0
votes
0answers
208 views

Curl takes JSON file as input but not the content of a JSON file

I am uploading a JSON file using curl. I give the following in the command line as: $ curl -v --header "Content-Type: application/json" -X POST \ http://site -d @test.json where test.json is ...
0
votes
0answers
92 views

Unable to log into Heroku: syntax error, unexpected

I'm new to Heroku. After downloading the script and installing I get an error when I try to login: $ wget -qO- https://toolbelt.heroku.com/install.sh | sh This script requires superuser access to ...
0
votes
0answers
128 views

Is there a difference between `command rspec` and `rspec`?

I want to call bundle exec rspec if Gemfile exists in current directory, and if it doesn't exists, call rspec itself. So I wrote like this. function rspec() { if [ -e 'Gemfile' ]; then echo ...
0
votes
0answers
112 views

Install Rails on linux

I am trying to install Ruby on Rails and I have followed the following link for the install ...