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

-3
votes
2answers
207 views

How do I run as a limited user while logged in as Root, and another question

Is there a way to, on linux, do: run as limited user when logged in as root? (like sudo but vice versa, so instead of GRANTING rights, it limits them, i.e., for use with "bundle install" for missing ...
1
vote
1answer
328 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
404 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
241 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
384 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
236 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
41 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
18 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
190 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
149 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
24 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
176 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 ...
1
vote
0answers
446 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
113 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
498 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
6 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
8 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
7 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
14 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
140 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
72 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
101 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
111 views

Install Rails on linux

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