Skip to main content

Questions tagged [ruby]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
42 views

Environment: Arch Linux, with Plasma KDE (kernel Linux 6.17.1-arch1-1) Goal: use ceedling (v1.0.1) to run tests on a C project Initial actions taken: execute gem ceedling, then execute ceedling in ...
funkopops's user avatar
0 votes
0 answers
60 views

I have a Rocky 9 host with multiple versions of Ruby installed using rbenv. # rbenv versions * system (set by /usr/local/rbenv/version) 2.4.1 2.7.1 2.7.6 The *system version of Ruby is 3.0....
Confounder's user avatar
0 votes
1 answer
186 views

when I try to update my gems on my system using gem update I get this error: /usr/lib/ruby/3.3.0/rdoc/version.rb:8: warning: already initialized constant RDoc::VERSION /home/john/.local/share/gem/ruby/...
Jan Černý's user avatar
  • 1,763
1 vote
3 answers
533 views

I'm trying to record the size of the compressed build file using Fastlane in my CICD pipeline. If I try this in the command line: du -h fileName.ipa | awk '{print $1}' it works fine. However, if I ...
KDBartleby's user avatar
1 vote
1 answer
174 views

With Vagrant, I aim to have three master and two node machines on my Ubuntu host. My Vagrantfile: Vagrant.configure("2") do |config| config.ssh.insert_key = false (1..3).each do |i| ...
Richard Rublev's user avatar
0 votes
1 answer
1k views

Help! Trying to install Cocoapods on my mac, kept getting an error, thought it might be something to do with having a really old version of Ruby. Then this happened: % ruby -v ruby 2.6.10p210 (2022-04-...
subatomic particle's user avatar
0 votes
1 answer
2k views

ruby --version ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux] gem --version 3.3.7 PostgreSQL 9.2.24 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44),...
nidooooz's user avatar
0 votes
0 answers
994 views

I have a background job written in Ruby that connects to several SFTP servers, download some files and finally, move the downloaded files to another folder in the sftp server. The issue is that the ...
Rodrigo's user avatar
  • 222
1 vote
1 answer
211 views

I installed corosync-pacemaker cluster via puppet. Now I would to like keep my data into hiera file. How should I convert cs_primitive section into yaml file? cs_primitive { 'nfsshare_fs': ...
fortunate1357's user avatar
0 votes
0 answers
180 views

It was working just fine a couple of months ago, but now it just returns the following, any ideas why libldap-2.4.so.2 could not be found all of the sudden? OS: Manjaro 21.2.1 ~ postgres --version ...
Zilton's user avatar
  • 1
0 votes
1 answer
82 views

I am trying to install sensu-client on Ubuntu 16.04 node and after installation I am unable to start the service. Below is the error I am getting while trying to start the service. sensu-service[4885]...
Narendra Reddy's user avatar
0 votes
0 answers
2k views

I was trying to install specific version Ruby in Manjaro. I had tried some query. sudo pacman -Sy ruby:2.6.6 sudo pacman -Sy ruby-2.6.6 Both of them returning target not found. I was reading the ...
user avatar
1 vote
2 answers
4k views

I was reading the documentation. In Debian based Linux, I have to install build-essential, libssl-dev. But, what about Arch-Based Linux? I had tried sudo pacman -Syy build-essential libssl-dev But, ...
Softunes's user avatar
0 votes
1 answer
217 views

I'm trying to install a modern Ruby on Amazon Linux which I think is RHEL based. I ran sudo yum install rh-ruby26 which is a legit package, and it installed some files. However when I try and run ruby,...
ether_joe's user avatar
  • 103
0 votes
0 answers
121 views

Would anyone have a tip for how to run a ruby on rails server? There is an API that I would like to explore. This is the git repo. Thanks for any tips, I just dont have any experience for what would ...
bbartling's user avatar
  • 103
1 vote
1 answer
238 views

Because I don't understand Ruby, but want to use the ruby based program mdl (markdownlint), I have installed it using snap. While I can run the program, if I try and set up a customizations in a ~/....
mikemtnbikes's user avatar
0 votes
0 answers
141 views

I'm using expect to test autocompletions in zsh (actually using the Ruby greenletters gem, with uses Ruby's PTY under the covers, to call expect). After digging through the documentation and old ...
snowe2010's user avatar
  • 101
0 votes
1 answer
2k views

When I trying to run ./msfconsole I got this error: Traceback (most recent call last): 9: from ./msfconsole:48:in `<main>' 8: from ./msfconsole:48:in `require' 7: from /...
thedimas3007's user avatar
0 votes
1 answer
284 views

After installing the vagrant packages on Fedora 31 and subsequently running the vagrant command, there are these errors regarding ignored Rubygems: Ignoring ffi-1.10.0 because its extensions are not ...
Newbyte's user avatar
  • 1,532
0 votes
1 answer
371 views

I'm using bash shell. I have defined the following variable ... localhost:tmp davea$ echo $json {"id": "abc", "name": "dave"} I would like to insert the value of this var into a ruby command, so I ...
Dave's user avatar
  • 2,818
0 votes
0 answers
129 views

I have setup a Rails app on a docker container and a apache web server on another container. I need the apache web server to access the rails app for every request made. The issue is I have to ...
Karthik K's user avatar
  • 421
0 votes
1 answer
109 views

I have a setup on a server of ruby using a tool called rvm (Ruby Version Manager. It works fine. rvm adds some stuff to the path so that it can control what version of Ruby I get when I just type ruby....
pitosalas's user avatar
  • 647
0 votes
2 answers
1k views

EDIT: I'm very sorry, that I initially didn't make my requirements clear. I don't actually have access to the string written in a backslash-escaped way and have amended the example to make that ...
Johannes Riecken's user avatar
1 vote
1 answer
439 views

I am trying to understand the behaviour of programs that launch subprocesses, when run in a pipeline. This bash program, fork.sh, prints and returns immediately: (sleep 1) & echo 'here' But when ...
reentim's user avatar
  • 13
0 votes
1 answer
294 views

I want to use tmuxinator to open panes (and run commands with an argument in each) by looping through a bash array. Is that possible? How would I do that?
leeand00's user avatar
  • 4,971
0 votes
1 answer
7k views

I have the following Dockerfile: FROM debian:stretch-backports RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ ruby ruby-dev \ ...
user977828's user avatar
2 votes
1 answer
4k views

I am desperately needing to run the linux recovery software foremost and preserve filenames and folder structure. As you might know the program renames the recovered files with a numerical value and ...
Anonymous's user avatar
  • 533
1 vote
2 answers
1k views

I am trying to run gem uninstall bundler through a bash script. The issue occurs when I have multiple bundler versions installed. It prompts the number of versions, and last option is to uninstall all ...
Nishutosh Sharma's user avatar
-1 votes
2 answers
4k views

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 ...
apextemple's user avatar
3 votes
2 answers
3k views

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, ...
15 Volts's user avatar
  • 2,169
-1 votes
1 answer
1k views

I am running ruby on rails on an Ubuntu Droplet and I am encountering the following error when I navigate to my domain name: Routing Error uninitialized constant HomeController Rails.root: /home/...
Cody Rutscher's user avatar
4 votes
1 answer
1k views

In a terminal I can run... find . -type f -print0 ./testdir/testfile2.txt./testdir/testfile.txt And then... find . -type f -printf "%p\0" ./testdir/testfile2.txt./testdir/testfile.txt They both ...
user605331's user avatar
3 votes
1 answer
2k views

Is there an elegant, high-performance one-liner way to remove multiple complete strings from an input? I process large text files, e.g., 1 million lines in inputfile, and 100k matching strings in ...
Michael Douma's user avatar
1 vote
0 answers
362 views

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 ...
Beckett O'Brien's user avatar
1 vote
1 answer
2k views

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: ...
David West's user avatar
1 vote
1 answer
736 views

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 ...
David West's user avatar
1 vote
0 answers
577 views

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 ...
Max Williams's user avatar
  • 1,167
0 votes
1 answer
169 views

$ emerge --info | grep ruby ..... RUBY_TARGETS="ruby23" ...... And I run emerge with --newuse and --deep, it will ask me to add use flag with ruby22. These packages are not in @system. These ...
Vonfry's user avatar
  • 248
1 vote
1 answer
523 views

Is it possible to have an sh script that would run a python file, run a command ruby file and run a ruby sonicPI file? What would this look like? Thank you! Adi
ADI's user avatar
  • 13
5 votes
1 answer
4k views

I have a script that checks a directory using mdls* (to sort by added time) and them performs some operations. However, mdls is a bit slow so I’d like to run it only when absolutely necessary (i.e. ...
user137369's user avatar
0 votes
1 answer
339 views

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 "...
Thufir's user avatar
  • 1,970
0 votes
2 answers
3k views

I'm currently having an issue when trying to install Ruby on Rails on my Arch Linux ARM system. But it's also not just rails that won't install, it's anything I try to install using gem. Here is some ...
Brandon Gonzales's user avatar
4 votes
1 answer
4k views

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 ...
aidan's user avatar
  • 41
1 vote
1 answer
69 views

I install ffaker but cannot find it in my PATH masi@masi:~$ sudo gem install ffaker Fetching: ffaker-2.6.0.gem (100%) Successfully installed ffaker-2.6.0 Parsing documentation for ffaker-2.6.0 ...
Léo Léopold Hertz 준영's user avatar
0 votes
1 answer
897 views

I am attempting to run a Cucumber (Ruby) Test Suite from Jenkins that tests whether or not 2-4 byte UTF-8 characters are valid names for groups. I have tried a number of solutions and have been ...
Easton Bornemeier's user avatar
1 vote
2 answers
5k views

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 -...
current_user's user avatar
1 vote
1 answer
524 views

I'm new to nix package manager. After installing nix into Ubuntu 16.04 LTS(Japanese translated version), I installed ruby with nix-env command. Then I did gem install bundler. That seemed to work ...
cul8er's user avatar
  • 339
1 vote
1 answer
685 views

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 ...
Peter Boomsma's user avatar
0 votes
1 answer
71 views

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 ...
Peter Boomsma's user avatar
0 votes
2 answers
2k views

I have three markdown files on my machine: $ ls | grep md bar.md baz.md foo.md Each file has the given content: $ cat *md i am bar i am baz i am foo As an example, I'd like "loop over all the files ...
mbigras's user avatar
  • 3,512