Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ruby]

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

1
vote
2answers
2k views

unable to access my rails using Public IP of my Ubuntu server in a browser

I have a Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-63-generic x86_64) server and my public IP is something like 183.xx.xxx.xx (curl -4 icanhazip.com).I have started my rails app using the command: rails s -...
0
votes
2answers
48 views

Ubuntu could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

I'm trying to create a new user form my rails application. I already ran psql -p 5432 -h localhsot -U postgres and created a new user. Then I added the user with sudo adduser user_name and afterwards ...
3
votes
1answer
1k views

Gem install producing “OpenSSL” error

For at least a week now i have been trying to install Bettercap on my Raspberry PI using gem but whenever i type in: sudo gem install bettercap i receive an error message that says ERROR: While ...
2
votes
1answer
344 views

EACCESS err while installing thin

I am trying to install thin in linux mint 17. I have installed ruby via rvm . I have already install the thin gem. When I ran thin install I got this error Installing thin service at /etc/init.d/...
1
vote
1answer
136 views

NixOS Ruby Development - Installing all needed devkit libraries and headers to build native extensions

I'm a Ruby developer thoroughly enjoying NixOS. I just need to know how to set up dependencies to build native dependencies on gems like FFI and Nokogiri. Currently I am getting this error: The ...
1
vote
1answer
141 views

Use RVM to point to custom Ruby path

I have my ruby-2.3.1 installed in /opt/rubies/ruby-2.3.1/bin/ruby, but by some problems with dependencies KDE downloads ruby-2.1 to /usr/bin/ruby and now my system uses that version. I've install RVM ...
1
vote
1answer
531 views

Proxychains DNS error but not with ping

I'm having a weird issue with proxychains. I set up the DNS server to be 8.8.8.8 (Google), and I have a valid proxy in the configuration. When I ping google using proxychains, it pings normally. But ...
1
vote
1answer
844 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
612 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
768 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
227 views

Ruby on NixOS — FFI Gem installation failing when building native extensions

I am a Rubyist of many years. I cannot determine what's missing to prevent FFI from installing. Here is the error from the make.out file (gotta love that name): make[3]: *** [Makefile:1048: ...
0
votes
1answer
59 views

where are codiad projects stored locally?

In Firefox I installed codiad as: where is ruby_hello actually located? (When it asked for the absolute path, I wasn't able to put in /home/thufir/... because of permission, so just typed in "...
0
votes
1answer
34 views

How to install KDE without Ruby?

For a project I'm using Ruby 2.3.1, I'm using a CentOS7 OS with ruby 2.3.1 installed. When I run yum install kde-workspace it installs/downgrades to ruby 2.0.0.648-29.el7 which makes the application ...
0
votes
1answer
738 views

Ruby version issues

I have been practising setting up a production environment with puppet, and now I'm setting up everything to accommodate HTTP requests with Apache. Since Puppet runs on Ruby, I also need Passenger ...
0
votes
1answer
203 views

Error installing the rmagick gem in Ruby 1.8.6 rvm - “checking for InitializeMagick() in -lMagick… no”

I have an old Rails app I maintain which uses Ruby 1.8.6. I'm trying to get a new install of Linux Mint 18 up and running so I can develop for the app. I managed to install the same (almost) version ...
0
votes
1answer
887 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
12k 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
469 views

x64_mingw not a valid platform - Rails 5

Bluehost Shared Server ruby -v 2.2.2 rails -v 5.0.0.1 gem -v 2.4.5 ~/.bashrc export HPATH=$HOME export GEM_HOME=$HPATH/ruby/gems export GEM_PATH=$GEM_HOME:/lib64/ruby/gems/1.9.3 export GEM_CACHE=$...
2
votes
0answers
251 views

Metasploit ruby “bad interpreter: Permission denied”

When I'm typing in my terminal msfconsole I got something like this: bash: /usr/bin/msfconsole: /usr/share/metasploit-framework/ruby: bad interpreter: Permission denied ls -l /usr/share/metasploit-...
2
votes
0answers
39 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. /usr/local/bin/...
2
votes
0answers
258 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 lang/...
2
votes
0answers
224 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
74 views

How does 'Open with' a custom executable in Linux work?

I have a file called foo.txt. I want to associate my own program with the mime-type .txt so that my program opens a terminal and shows the contents of foo.txt as standard output. I would prefer Ruby, ...
1
vote
0answers
229 views

Can't install ruby on rails MacOSX

While trying to install ruby on rails with sudo gem install rails I get the following error Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed ...
1
vote
0answers
166 views

Can't access gems after installing ruby and gems with ansible

I'm working on an Ansible script to install my standard working environment (Ruby on Rails). Ansible runs under sudo, and the gems that have been installed are only accessable under sudo too. If I ...
1
vote
0answers
101 views

Sudden problem with a rack/passenger ruby app: “Connection closed”

I have a Ruby 1.8.7 app which runs under Phusion Passenger and Nginx, for one of my clients, on an Ubuntu VPS. It's been ticking away happily for years, but yesterday ran out of log space (sending me ...
1
vote
0answers
741 views

Issues Installing Ruby without sudo

I am migrating a website to a server that is running Ubuntu 14.04.2 LTS, the website is managed through git and built using Jekyll. Jekyll is installed as ruby gem and unfortunately the server does ...
1
vote
0answers
391 views

installed font not working in ec2 in rails app

I have downloaded font by running wget http://www.fontsquirrel.com/fonts/download/amatic inside my ec2 instance. Then I created a .fonts director and unzipped those files inside it. Then I ls ....
1
vote
0answers
558 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
993 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
18 views

Why is checkinstall freezing when I try to run “make install” for Ruby 2.5.5?

I'm compiling Ruby 2.5.5 with jemalloc in a Docker container, and I'm trying to build a deb package with the checkinstall tool. Here is the Dockerfile and build script I'm using. Steps to reproduce: ...
0
votes
0answers
26 views

Easier way to run remote and monitor remote commands

I'm currently leveraging Ruby in a docker image to run some commands on my local Linux system via SSH and Tmux. However, this isn't feasible since I can't figure out a way to actually monitor the ...
0
votes
0answers
55 views

Kali Linux error showing unmet dependencies

I'm getting the following error: The following packages have unmet dependencies: libwxgtk3.0-0v5 : Depends: libgtk2.0-0 (>= 2.24.0) but it is not going to be installed E: Error, ...
0
votes
0answers
17 views

Execution of Embedded ruby code

I have ruby code written for user add in DB. User Add Code : `<h1>New User Group</h1> <%= f.label :name, 'Name:' %> <%= f.text_field :name, :class => '...
0
votes
0answers
94 views

mysql.so: undefined symbol: vio_blocking

I'm trying to set up a Rails 2.2.2 installation (for an old app that I maintain) in a new Linux Mint 18 install. I've installed mysql (5.7.16-0ubuntu0.16.04.1 (Ubuntu)) and, using RVM, have installed ...
0
votes
0answers
518 views

Howto upgrade ruby on a Ubuntu 14.04.2 (Trusty) on a Raspberry Pi 2 (armhf architecture)

I need to install json via # gem install json --no-rdoc --no-ri but I get as result ERROR: Error installing json: json requires Ruby version ~> 2.0. I use Ubuntu Trusty (this image) and ...
0
votes
0answers
68 views

SSL error with rvm and ruby 2.2.2

I am getting the below error while doing a api call from one app to another: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed We are using using rvm ...
0
votes
0answers
768 views

Where in CentOS 7 should I install Ruby?

I am installing Ruby and rbenv on a CentOS 7 by following the instructions in this tutorial, with modifications. One of the recommended lines of code is cd followed by git clone commands. I assume ...
0
votes
0answers
468 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 '...