Questions tagged [ruby]
Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.
417
questions
0
votes
1
answer
46
views
Can't use 'vagrant' after installling 'jekyll' with error: 'can't find gem vagrant'
After the install of jekyll with gem install jekyll, my vagrant commands fails with:
$ vagrant up
/usr/lib/ruby/vendor_ruby/rubygems.rb:265:in `find_spec_for_exe': can't find gem vagrant (>= 0.a) ...
0
votes
0
answers
169
views
generate shadow password in Ruby for Ubuntu Autoinstall
I have a Ruby script which, using a template, creates a cloud-init yaml configuration to use in order to perform an Ubuntu autoinstall.
The script itself should encrypt the user password and, at the ...
0
votes
0
answers
26
views
Is it possible to install Ruby 3 on Mac OS X 10.6 Snow Leopard?
I’ve been trying to install Ruby 3 on my old Mac running 10.6 Snow Leopard using ruby-build. I can’t figure out why it’s failing. I couldn’t find any Ruby documentation on whether or not Mac OS X 10.6 ...
0
votes
1
answer
32
views
"which bundle" and "bundle -v" point at different directories on wsl2; bundle -v does not exist
$ which bundle
/usr/local/bin/bundle
$ bundle -v
bash: /mnt/c/Ruby26-x64/bin/bundle: No such file or directory
I've tried uninstalling and reinstalling bundler; not sure what else to try.
0
votes
0
answers
486
views
RubyMine using 100% of CPU on Mac
I'm running a plain old Ruby on Rails server in RubyMine, and if left idle, it's just using up all my memory. I'm not even using the Rails application (browsing pages etc), and it's not doing any ...
3
votes
1
answer
1k
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
2
answers
2k
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
1
answer
99
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
1
answer
317
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
1
answer
206
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 ...
1
vote
1
answer
849
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
2
answers
12k
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
0
answers
428
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
0
answers
26
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 ...
5
votes
1
answer
2k
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
2
answers
403
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
0
answers
406
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
1
answer
325
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
1
answer
234
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
4
answers
11k
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
0
answers
198
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 ...
5
votes
1
answer
4k
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
0
answers
268
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
0
answers
316
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
0
answers
128
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
0
answers
270
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
0
answers
3k
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
0
answers
176
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
0
answers
108
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
0
answers
22
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
0
answers
591
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
1
answer
199
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
1
answer
105
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
0
answers
97
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
1
answer
118
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
1
answer
35
views
Gem can't switch sources
What could be preventing me from switching gem sources?
1
vote
0
answers
807
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
1
answer
59
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
1
answer
297
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
1
answer
500
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
1
answer
498
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
1
answer
2k
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
3
answers
11k
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 ...
2
votes
2
answers
4k
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
1
answer
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
0
answers
5k
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
1
answer
620
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
1
answer
1k
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
1
answer
175
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
vote
1
answer
2k
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/...