Stack Exchange Network

Stack Exchange network consists of 174 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, open source programming language with a focus on simplicity and productivity.

0
votes
0answers
15 views

How to update ruby version 2.4.1 to 2.5.0 on Ubuntu 18.04

I have run the code: sudo apt-get install ruby 2.5.0 then: update-alternatives --query ruby which throws error: update-alternatives: error: no alternatives for ruby I also used the code: wget ...
0
votes
0answers
10 views

Get the requested class name inside module in ruby [on hold]

I have a module "Test". I am making a call to the module using Test::Klass.method(). Here Klass will be automatically created as per the request. It throws NameError if the class does not exist. I ...
0
votes
0answers
8 views

I'm trying to intergrate gitlab with active directory and I'm getting this error

This happens when I try to run gitlab rake. Also, the server is showing a 502 error. I'm fairly sure they are connected, but I can't make sense of this error. rake aborted! Errno::ENOENT: No such ...
0
votes
0answers
15 views

gems executables will not run

I am trying to install a gem from sh file. sh file code is as below: cat > /tmp/install_bandshell.sh <<EOF #!/bin/sh -e cd /tmp git clone git://github.com/concerto/bandshell.git cd bandshell ...
0
votes
0answers
41 views

Unable to install any ruby versions using RVM in macOS Mojave 10.14.2

After upgrading to Mojave 10.14.2 I tried to install any ruby versions using RVM. I get the following error message related to OpenSSL. I have latest command line tools (Command_Line_Tools_macOS_10....
0
votes
0answers
15 views

How to setup Ruby on Rails static web pages behind Nginx reverse proxy

Summary of question is what is the method to setup Nginx to serve static pages for site, and how and where is this Nginx server installed (is it supposed to be on same server where Ruby on Rails ...
0
votes
1answer
34 views

Why is my Ruby or ADB network command very slow inside my docker container, but fine for the host?

Recently, two unrelated commands started behaving very poorly inside a Docker container with host-networking: Android adb took some 12 seconds to connect to another machine's adb server to use its ...
-1
votes
0answers
34 views

'bundle install' says I'm using 2.3.3, but 'ruby -v' shows 2.3.1

I'm trying to run a sample ruby server as part of a heroku tutorial. I downloaded ruby 2.3.1 specifically since the gemfile requests that version, but whenever I try to run 'bundle install' I get this ...
0
votes
0answers
10 views

Error installing do mysql latest version '0.10.17'

Building native extensions. This could take a while... ERROR: Error installing do_mysql: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.5.0/gems/do_mysql-0....
-1
votes
0answers
93 views

Why i am getting rubygems/core_ext/kernel_require.rb:55:in `require'(load error) when i am trying pod setup

On mac os 10.14.2,when i am trying to setup pod by step by step i am getting this error. sudo gem update --system sudo gem install -n /usr/local/bin cocoapods pod setup-->In this step it shows error ...
0
votes
1answer
107 views

Why am I getting a load error when I try to use gem commands on my Mac?

I am trying to install sass on my mac, but every time I try to use any gem command like gem install sass or gem update --system I get the following errors: /System/Library/Frameworks/Ruby.framework/...
0
votes
0answers
4 views

Rails app calling api server refuses connection when api server calls back

We have a temporary situation with our rails application, due to an architectural migration. This requires us to initiate an api request from our puma rails server to our goliath api server, which in ...
0
votes
0answers
12 views

Rails Mailer sending to old email after update

I'm using Rails ActionMailer to send emails in a Rails app. One of these emails is a daily status update that gets sent to our agency's alert email address. We recently changed the address, so I went ...
1
vote
0answers
51 views

Installing Ruby 2.4 on CentOS 7

I installed CentOS 7.4 minimal setup on my system. My next task is to setup Redmine. It needs ruby language. For Redmine version 3.4.x and future maintenance, I think it would be better to install ...
1
vote
0answers
30 views

Source Code Pro font issue in JetBrains editors

I'm having trouble with Source Code Pro font for few years now on all JetBrains IDE's. I have installed Source Code Pro. When I set the font: I have these weird bugs, mainly in Ruby: But this bug ...
0
votes
0answers
48 views

Issues with Ruby on Rails- part 1

I've installed Rails on my Ubuntu machine, and everything seems to be working except my attempts to start the rails server. It returns an error code stating that nokogiri is not installed. I use 'gem ...
0
votes
1answer
26 views

RVM thinks that ruby is both installed and not installed

If I try rvm use or most other commands that would reference a specific version, it says that the version is not installed. If I try to install it, I am told that it's already installed. Regardless, ...
0
votes
1answer
23 views

Deauth frames showing up as ethernet II frames under wirshark

I'm trying to write a simple deauth attack script, but when I when fire up wireshark instead of deauth frames I only see Ethernet II frames; in addition the frames have no effect on any of my network'...
0
votes
1answer
18 views

Is there a difference running Ruby on Rails on Ubuntu locally vs Ubuntu on Virtual Machine?

More or less - as in the topic. I'm planning to format my PC, currently I have dual-boot with Win 7/Ubuntu 16.04. For my daily job I'm working mainly with Windows software but have quite a lot of ...
0
votes
0answers
50 views

Vagrant + VirtualBox + Ruby application CPU >100%

Problem: CPU usage hits over 100% after doing anything with bundle exec ... in the virtualbox guest. In ActivityMonitor it's hitting 145% in the Virtual environment it's more like 60-70% but still ...
1
vote
1answer
203 views

Ruby version 2.3.3 Gemfile 2.3.0 (Sprockets Update)

I'm a newbie at Ruby on Rails. I'm trying to update the Gemfile but it keeps giving me this error: "Your Ruby version is 2.3.3, but your Gemfile specified 2.3.0" The reason I'm trying to update the ...
1
vote
0answers
38 views

ruby inside vim causes a segfault

Every time I try to run a ruby command from inside vim, I get a segfault. If I try to run :ruby puts 1, for example, vim crashes immediately: $ vim Vim: Caught deadly signal SEGV Vim: Finished. ...
1
vote
0answers
120 views

'XXX.rb' is not recognized as an internal or external command, operable program or batch file

Installed Ruby without a hitch, installed ruby gems, ensured the environment variables path have C:\Ruby25-x64\bin in them, wrote a script went to run the script and received the following: "'XXX.rb' ...
0
votes
0answers
169 views

How to resolve “Depends: ruby (<= 1:2.5~1)” when install Metasploit on Kali Linux?

When I would like to install Metasploit on Kali Linux wget https://Kali.sh/metasploit.sh chmod -R 0755 metasploit.sh ./metasploit.sh But I got this problem message: Some packages could not be ...
0
votes
0answers
36 views

Install Ruby Gem God in SCL Ruby193

I've installed Ruby 1.9.3 on Centos 7: ruby 1.9.3p484 (2013-11-22) [x86_64-linux] I'm trying to install the "god" gem. # gem install god Building native extensions. This could take a while... ...
0
votes
0answers
178 views

Puppet source a template, run one command, source another template for same file, run command

I've had a good crack at this and am struggling a little bit. I've got a PHP5 console file called parameters.yml. This contains some metadata to connect to a DB, run some commands and exit. The ...
0
votes
0answers
120 views

Could not load library msvcrt-ruby240.dll

I have installed the last version of the x86 version of vim 8 and I have an issue whith the ruby integration. My plugins like LustyExplorer can’t work and when I enter ruby –version I get the ...
0
votes
1answer
480 views

Unable to install rmagick ruby gem on CentOS 7

gem install rmagick gives me: Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb ...
1
vote
1answer
912 views

rvm Error running './configure

Description After I migrating my Macbook to the new one, I encounter an error during reinstalling rvm Steps to reproduce ⋊> rvm install 2.3.3 Environment OSX 10.13.3 rvm version: rvm 1.29.3 (...
0
votes
1answer
134 views

Missing Ruby Development Libraries on OpenSuse

I might have jumped off the deep end when getting back into Linux and am stuck trying to install a new version of Ruby on OpenSuse with rbenv. me@linux-tzyj:~> rbenv install 2.4.0 Downloading ruby-...
0
votes
0answers
532 views

Vagrant ruby path issues with cmder

I recently installed cmder, a terminal that is more customizable / visually easier than windows command prompt. When I run a command like vagrant ssh in cmder, I get this error: Exec error: exec: "...
0
votes
1answer
68 views

How to use airodump command in system(gnome-terminal ) (ruby)?

I used this instruction in my ruby script: system "gnome-terminal -e bash -c sudo timeout 20 airodump-ng wlp2s0mon -w mt --output-format csv --write-interval 20" With this instruction I would like ...
1
vote
0answers
13 views

extend gnome-shell PATH for access to ruby binary with RVM

I have a terminal written in ruby that I install with a gem. I want to be able to launch this terminal when I hit Alt+F2 in gnome-shell. When I used the ruby version of my system, I just have to ...
2
votes
4answers
4k views

Open browser in host system from Windows Subsystem for Linux?

I have a ruby script that does contains this line: system("open '#{html_path}'") html_path is the path to a local .html file. So the script opens a browser where I can normally inspect and view this ...
0
votes
1answer
40 views

How about make a home made VPN. Am short of money to renew my VPN

Is it possible? For instance I create process that listen 80 and 443 port, collect data, crypt it with special key inside. Then send it to server. Server decrypt data and check key, if key okay, it ...
0
votes
1answer
203 views

Rails 5.1 w/ Webpacker cannot find assets while working via local wifi

I'm using Rails 5.1 with the Webpacker configuration that is now by default integrated in Rails. I've followed this article "Rails 5.1 loves Javascript" to get me on the right track. So far so good. ...
0
votes
1answer
17 views

CloudFoundry - how to get Python 3.5 support in Ruby app

I have a Ruby On Rails application that I'm deploying through CloudFoundry using the default Ruby Buildpack. Unfortunately at some point my app needs to execute a Python 3.5 script. I have already ...
0
votes
0answers
63 views

Is the coderay syntax-highlighting plugin built into redmine, or does it have to be installed separately?

I have installed a recent version of redmine - 3.3.3 but there is no syntax highlighting plugin included in the default installation. Most redmine searches mention coderay. Is that something I have ...
0
votes
1answer
94 views

Hourly Cron job will not run but will manually run fine

Background - the system has two different versions of ruby installed. I need to use the latest version to run this monitor script i've created This is my crontab line: 0 * * * * /usr/local/rvm/...
0
votes
1answer
292 views

Can't load Powershell profile using Ruby 2.3 on Windows

After upgrading from Ruby 2.2 to Ruby 2.3 powershell calls stopped working because powershell profiles are not loaded. 1) If I open a command prompt, it works: C:\Users\administrador>powershell....
0
votes
2answers
661 views

Running Ruby on Rails as systemd

OS: Centos 7 I am trying to run Snorby as systemd but the scripts are not starting correctly I can do bundle exec rails server -e development -b 0.0.0.0 on the command line while in Snorby folder ...
0
votes
0answers
554 views

Remove old versions of gems… gem cleanup is not doing it

This is the list of gems of my system after issuing a sudo gem cleanup command: activesupport (4.2.6) addressable (2.5.0) babosa (1.0.2) bigdecimal (1.3.1, default: 1.2.0) bundler (1.14.4) capybara (...
-3
votes
1answer
3k views

Raspberry Pi install Metasploit

I will install Metasploit on my Raspi with Raspbian, but I get an error. I don't know how I can fix it, PLEASE HELP ME The Error is: root@raspberrypi:/opt/metasploit-framework# ./msfconsole Could ...
1
vote
0answers
179 views

High Disk I/O spike followed by jumps in memory on Ubuntu server

I'm running a server on Ubuntu with Ruby, Sinatra, Unicorn and Nginx. I start everything up and it builds to about 66%, where it remains for a while. Then after a few hours, there's a large Disk I/O ...
0
votes
1answer
3k views

how to install ruby 2.4 on Centos 6.5

Because yum install ruby results in a version 1.8, while most tools require at least ruby version 1.9, so I install from tar. wget http://ftp.ruby-lang.org/pub/ruby/ruby-2.4.1.tar.gz tar zxf ...
0
votes
1answer
108 views

RVM Installation Issues Linux

I have Elementary OS installed on my PC and have installed RVM through the terminal. However, when I type this type rvm | head -1, instead of "rvm is a function", I get rvm is hashed (/home/edson/....
0
votes
1answer
191 views

Error compiling nginx with passenger support

I've just installed passenger by: gem install passenger cd /usr/local/rvm/gems/ruby-2.4.0/gems/passenger-5.1.2 env NOEXEC_DISABLE=1 /usr/local/rvm/gems/ruby-2.4.0/wrappers/rake nginx:clean nginx ...
2
votes
1answer
3k views

Rails “Cannot read termcap database;”

Whenever I start my rails console I'm running into two problems: I'm getting these cryptic errors messages. My control-L isn't working (it's intended use it to clear the screen) Console output: $ ...
0
votes
1answer
1k views

running curl command inside a rails application

I am trying to execute a curl command inside my rails application. My rails application simply creates a ticket and for that I have to enter some information. When person clicks on Save then it saves ...
0
votes
1answer
61 views

Excel or Rails, Capitalize first letter, change all caps to capitalized, but respect capitalization mid name

Given names like below: richard should be Richard RICHARD should be Richard richAnne should be RichAnne I'd rather this be done in excel, but my other option is using Rails.