Questions tagged [ruby]

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Set up Ruby file association for second user on Windows 10

When installing Ruby on Windows there is a check box labelled "Associate .rb and .rbw files with this Ruby installation" (and one saying "Add Ruby executables to your PATH") ...
0
votes
0answers
5 views

update ruby gems in $GEM_HOME (but not distro-installed ones)?

Is there a way to update just the "local" gems installed in $GEM_HOME (I've set it to /usr/local/lib/gems), without considering distro-installed ones? I've tried gem update but it tried to ...
0
votes
1answer
163 views

Broken `/Library/Ruby/Site/2.6.0` on MacOS, cannot run `brew`

To start, I had these following annoying output when opening my terminal: Ignoring bigdecimal-2.0.0 because its extensions are not built. Try: gem pristine bigdecimal --version 2.0.0 Ignoring ...
0
votes
0answers
269 views

Why is my Ruby broken and how do I fix it?

I recently got myself a MacBook with the M1, performed Migration Assistant and I was happy. Then I tried installing the ARM "Beta" of Homebrew and started running into problems. I don't ...
0
votes
2answers
869 views

How to run Ruby on Rails on new MacBook Air M1?

I am running Ruby version 2.7.2 and I have been trying to run Ruby on Rails but nothing seems to work. I tried rvm, rbenv and now asdf but everytime I try to run rails server in an old project after ...
1
vote
1answer
26 views

Is it posible to run Ruby(as a language) in a sidecar in Kubernetes

I'm working on Python Pod to do one main job. However, for a single step, I need different versions of Ruby, so instead of installing all ruby versions in the "main" python container, I was ...
0
votes
1answer
33 views

How can I adjust the ruby text height?

Thanks to @phuclv who answered the question How to type characters for phonetic guide over a word in Microsoft Word? to use ruby text to solve my issue. However the ruby the text height and offset ...
0
votes
0answers
85 views

Rubymine project mapping issues cannot run debugger wsl2

I have WSL2 and rubymine setup. I have the project cloned within WSL within the home directory. The default mappings do not work that are automaticly setup, so I tried to point them to the correct ...
0
votes
0answers
47 views

Ruby Gem Change SPEC CACHE DIRECTORY from non-existing disk to path

When trying to install a gem i receive an error: ERROR: While executing gem... (Errno:ENXIO) No such device or address @ rb_file_s_stat - Z:/ when checking the gem environment variables i get the ...
0
votes
1answer
48 views

Add domain url to wget result page

i'm trying to make a list of websites into static websites, and i'm using this wget command wget --quiet -E -H -k -nd -K -p -e robots=off #{url} the result is mostly what i want, but all the urls on ...
0
votes
0answers
78 views

bash: /home/user/.rvm/scripts/initialize: No such file or directory

I deleted rvm using rvm implode and then cd'ed into a project file and it gave me this error bash: /home/user/.rvm/scripts/initialize: No such file or directory bash: /home/user/.rvm/scripts/hook: No ...
0
votes
1answer
105 views

How do I upgrade to the latest ruby in Ubuntu 16.04 properly?

I am trying to upgrade Ruby to the latest in Ubuntu 16.04. I can't use virtual environment for ruby because I need to use latest version of Ruby inside python virtual env. So I decided to upgrade ...
0
votes
1answer
2k views

“bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: No such file or directory” error when trying to install something

I apologize, I don't have much experience with Linux. So I have ruby installed on my machine and I'm trying to install rails. When I do gem install rails I get a proper response Successfully installed ...
1
vote
0answers
153 views

How to find all previously-installed Ruby artifacts (files, etc) so I can remove _all_ of them from my OS?

Other than the pre-bundled-with-my-default-OS install (eg: /usr/bin/ruby on macOS 10.14), I want to completely wipe my OS clean of Ruby before I reinstall Ruby to a "known state." Specifically, I want ...
1
vote
0answers
15 views

can't find bash history executed via ruby net::sh library

In the hope for getting the commands that run via ruby net::ssh tool which is described as follow: Net::SSH is a pure-Ruby implementation of the SSH2 client protocol. It allows you to write ...
3
votes
1answer
520 views

How do I install Ruby 2.6 with Chocolatey?

I tried to list all version of Ruby but it only lists one. choco list ruby --exact --all ruby 2.7.0.1 [Approved] 1 packages found. Nokogiri won't work with the latest Ruby. Gem::...
0
votes
2answers
274 views

Trying to install Dradis on Mac OS X Catalina gives me an error, “You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.”

I'm trying install Dradis in my Mac OS X Catalina git clone https://github.com/dradis/dradis-ce.git cd dradis-ce/ ./bin/setup I kept getting You don't have write permissions for the /Library/Ruby/...
0
votes
0answers
398 views

How can I update an existing ruby installation to support additional OSs?

I have an existing ruby 2.5.1 installation that was created sometime back by compiling from source. The installation is in afs and is accessed by several operating systems (linux-RH6 on x86 and aix ...
0
votes
1answer
238 views

Can't install ruby on MacOS Mojave

I have a new MBP running Mojave and am trying to install ruby v2.6.5. I've installed Homebrew and am trying to install ruby via asdf, which uses ruby-build. The installation keeps hanging with the ...
0
votes
1answer
62 views

Error installing Gosu on Ubuntu

Getting the following error when attempting to install the Gosu gem on Ubuntu. I have already installed the dependencies. Here is the error message: compilation terminated. Makefile:235: recipe for ...
4
votes
4answers
9k views

zsh returns bad interpreter after Catalina upgrade

I am getting an error message after upgrading to macOS Catalina. zsh: /usr/local/bin/colorls: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: no such file or ...
0
votes
0answers
146 views

WSL > Ruby (Rails) Server

I am starting the ruby (rails) server on WSL (using Ruby Mine on Windows) and open the browser but I get the message in windows browsers (used chrome): Thanks for your help! Julian PS: it worked ...
3
votes
1answer
2k views

Jekyll serve error after updating Ruby, Bundler, and Jekyll

I tried updating Jekyll and am now running into an issue. Luckily I can still build my sites by using bundle exec jekyll serve, but when I run jekyll serve I get the following: Traceback (most ...
0
votes
0answers
153 views

How to solve error on Ruby Gems install Hiptest-publisher?

I am working to setup a Configuration around Robot-Testing Framework on Ubuntu 18.04 - 64bit architecture. In order to run some tests onto my server I need to run the following application. hiptest-...
1
vote
0answers
262 views

Cannot run rails new myapp -d postgresql

I was following the tutorial here: https://gorails.com/setup/windows/10 I reached the part where I run to create my app and it starts then I run into this error: create create README.md ...
1
vote
0answers
61 views

Gollum Wiki editing fails because of a permission issue

I have been using the gollum wiki and it has worked fine so far. After mainly updating conda (which should have nothing to do with gollum), I get the following error message when I try to save edits ...
1
vote
0answers
147 views

Logstash 7.2 file input plugin network path wildcard didn’t produce any out on Windows x64

I have a remote file storage with thousands having 10mb average size text files. I'm using this code: input { file { path => "//foldername/**/*.dat" start_position => "beginning" } } output { ...
0
votes
0answers
2k views

502 Whoops, GitLab is taking too much time to respond

I am new to gitlab and I am trying to re run an up an old git server which was down for few weeks. It was working a month back, but suddenly it stopped working. I have also tried to upgrade the GitLab....
0
votes
0answers
125 views

Why is the time to use RubyGems with the LoadError?

My PC (Gnu/Linux Fedora 30) was running a crawling program that was turned off because of the power outage, After that, my crawler and any other Ruby Gem did not work,and displays the following error ...
1
vote
0answers
92 views

Trouble uninstalling gem bundler

I'm running the following software: Ruby 2.3.3 Rails 4.2.10 Gem bundle 1.17.3 & 1.12.5 Git keeps defaulting to 1.17.3 but rails is only compatible with 1.12.5. I cannot uninstall 1.17.3 to use 1....
0
votes
0answers
19 views

What data are safe to publish from the “config.log” and what not?

I am totally new to programming world and I don't succeed in finding a solution to download Ruby. The question I asked isn't answered so far. Therefore I want to publish my config.log. But I really ...
1
vote
0answers
377 views

rbenv install 2.3.1 gives "BUILD FAILED (OS X 10.14.5) and configure: error: C compiler cannot create executables

I feel ashamed to ask a question here since I just want to start learning programming and now already spend a day to try all solutions offered. So far nothing helped. (base) [ruby-build (master)]$ ...
1
vote
0answers
106 views

I have ruby installed greater than 2.3.0 but it says requires greater than 2.3.0 for i18n to be installed

I have ruby version 2.5.1p57 when ran ruby -v command. While installing a cookbook which requires i18n, it throws error i18n requires Ruby version >= 2.3.0. Though the ruby version is greater ...
0
votes
1answer
63 views

has sqlite been renamed to sqlite3?

I use sqlite for lightweight programming here and there in the Ruby language. I've noticed something odd. I use ruby gem sqlite3 to interact with the sqlite db. I recently checked out the ...
0
votes
0answers
79 views

Puppet - Agentless Proxy for cisco_ios devices

I need Help with my puppet agentless proxy scenario. In a fully isolated environment I installed all the modules, dependencies and ruby gems to use the puppet - puppet agent as a puppet agentless ...
0
votes
1answer
57 views

How to solve “Fog::Compute::AWS::Error: RequestLimitExceeded => Request limit exceeded.” when executing a Chef cookbook

I am not an expert in Chef. I am trying to deploy a network infrastructure on AWS. When I execute the cookbook that I uploaded to my Chef Server using knife, a lot of API requests are made to AWS to ...
0
votes
1answer
28 views

Gem can't switch sources

What could be preventing me from switching gem sources?
1
vote
0answers
622 views

How can I install bundler for a specific ruby version?

I'm creating a rails app and when I try to run rake db:migrate I get this error: LoadError: cannot load such file -- bundler/setup I'm using rbenv and ruby version 2.5.1 in a mac with OS Mojave 10....
1
vote
1answer
48 views

How to delete all directories except last 2 directories and the symlink pointed to those directories

I have below directory structure. drwxr-xr-x 5 ec2-user ec2-user 4096 May 22 07:03 TEEST drwxr-xr-x 5 ec2-user ec2-user 4096 May 24 05:33 BEE-TES drwxr-xr-x 5 ec2-user ec2-user 4096 May 24 10:53 ...
0
votes
1answer
260 views

How do you improve the performance of the ChefDK on Windows 10?

In the past, I've installed the ChefDK on Windows 7 and it ran fairly quickly. Recently, I installed a new version of the ChefDK on Windows 10 Professional 64-bit on a powerful laptop, yet virtually ...
0
votes
1answer
260 views

Systemd service fails on boot with rbenv environment error

Having some issues with a service that is meant to boot a rails app. The ruby install is managed via rbenv, the service file is this: [Unit] Description=evr server boot After=network.target After=...
0
votes
1answer
298 views

On my mac, under rvm, my gem library for jruby is corrupted

After Jruby and gems had developed serious problems (most gem installs showed errors. I did not originally know of or use rvm), I am rebuilding the development side of the machine, which entailed: - ...
0
votes
1answer
966 views

mongod shutting down with code:62

After installing an older version of ruby for a ruby on rails project, my mongod demon wont run anymore for my node.js project. Not sure if these are related, but nothing else has changed. I've tried ...
6
votes
3answers
10k views

Rails Server Gem Load Error - SQlite3

Let me start out with, I have searched and read all questions asked similar to my issue and have tried all suggestions. Here's some of the technology I'm using, if it helps: Initially, High Sierra on ...
1
vote
2answers
3k views

RVM can't find installed new Ruby version (previously installed using Homebrew)

I'm a beginner, please excuse me if I'm saying or doing things you perceive as utterly stupid. I'm not doing it on purpose. How this started: I wanted to install gems, but got the following error ...
2
votes
1answer
2k views

Having trouble installing ruby gem for iStats

I am trying to install iStats via a ruby gem. First I ran the command: xcode-select --install and the output was: xcode-select: error: command line tools are already installed, use "Software Update"...
0
votes
0answers
4k 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
1answer
472 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
1answer
756 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
135 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
2 3 4 5
9