Questions tagged [ruby]

A dynamic, open source programming language with a focus on simplicity and productivity. (quote: ruby-lang.org)

Filter by
Sorted by
Tagged with
-2 votes
0 answers
15 views

AnyStyle Gem Error : missing tokens at 0: 19/19, cannot apply pattern (Wapiti::NativeError) [closed]

While Try to execute below ruby code to train anystyle using anystyle version 1.4.2, i am getting below error Ruby Code: require 'anystyle' AnyStyle.parser.train('/opt/ap_server/ap_training.xml') ...
Thivagar M's user avatar
4 votes
1 answer
303 views

How do I install "colorls" on Ubuntu?

I would like to install colorls . It looks handy: I tried to follow the installation instructions. However, they don't seem to be made for Ubuntu. First, because gem did not exist, I had to run sudo ...
Flimm's user avatar
  • 39.8k
0 votes
1 answer
367 views

Failing to install Ruby 2.7.7 on Ubuntu 20.04 due to OpenSSL 1.1.1t failing

ubuntu$ rbenv install 2.7.7 To follow progress, use 'tail -f /tmp/ruby-build.20230330011330.8040.log' or pass --verbose No system openssl version was found, ensure openssl headers are installed (https:...
Tony O'Hagan's user avatar
0 votes
0 answers
230 views

WSL Ubuntu: Sometimes postgresql won't start but the next day it would start again

This is my wsl -l -v NAME STATE VERSION * Ubuntu Stopped 2 lsb_release -a output: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS ...
JS3's user avatar
  • 101
0 votes
1 answer
87 views

Using Watir on WSL2 - Selenium Webdriver error

I am using Ubuntu 22.04.1 via WSL2. Trying to use Watir to do some scraping. This command: a = Watir::Browser.new results in this error: /home/user/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/...
T-lb's user avatar
  • 1
0 votes
0 answers
440 views

gcc: internal compiler error: Segmentation fault

I'm attempting to install a version of ruby using rbenv The command to install ruby 2.7.6 generates this error: $ rbenv install 2.7.6 perl: warning: Setting locale failed. perl: warning: Please check ...
nzifnab's user avatar
  • 101
2 votes
2 answers
4k views

rbenv Ruby version 2.7.6 got ruby-build error and won't install

I'm trying to change temporarily to a specific Ruby version 2.7.6. But encountered the following error. $ rbenv install 2.7.6 Downloading ruby-2.7.6.tar.bz2... -> https://cache.ruby-lang.org/pub/...
JasonMag's user avatar
0 votes
0 answers
30 views

I'm trying to run a code that uses a GTK3-2.2.5, but this version was uninstalled, and I'm only able to install GTK version 3, can anyone help me?

MissingSpecVersionError) Checked in 'GEM_PATH=/home/jsantos/.rvm/gems/ruby-3.0.0:/home/jsantos/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0' , execute gem env for more information from /home/jsantos/....
Leo's user avatar
  • 1
0 votes
0 answers
45 views

E: The repository 'https://ppa.launchpadcontent.net/brightbox/ruby-ng-experimental/ubuntu jammy Release' does not have a Release file [duplicate]

This question is similar to this and this but those aren't really helpful. I am trying to install the Ruby libraries and packages that Canvas needs. need to add a PPA in order to get the required Ruby ...
Hamza Saeed's user avatar
2 votes
1 answer
2k views

Can't install Homebrew on Ubuntu 22.04

This is my first time to use Linux, I trying to install Homebrew, but it got this error : Error: Failed to download ruby from the following locations: - https://ghcr.io/v2/homebrew/portable-ruby/...
Huy Nguyen's user avatar
2 votes
1 answer
85 views

Avoid ruby script requiring a folder with 777

I am running a ruby script, that contains unless File.writable?(".") problems << ["Directory /path/to/htdocs needs write access"] the problem is, only if I set chmod 777 ...
Zurechtweiser's user avatar
0 votes
0 answers
723 views

How do I install v8@3.15 on ubuntu?

I am new to Linux and I am trying to setup a ruby on rails app from work. Now, the Gemfile wants to install therubyracer. Upon running bundle install, it fails: Fetching therubyracer 0.12.3 Installing ...
Aditya Singh's user avatar
0 votes
0 answers
2k views

Problem during installation of ruby version 2.7.2 in ubuntu 20.04 LTS

Hope you all are doing well. I am working on Ubuntu linux 20.04 I am beginner to ruby. I have installed rvm. Now I am trying to install ruby version 2.7.2 but It is giving me an error again and again. ...
Ehtasham Haider's user avatar
1 vote
0 answers
25 views

error installing ruby

I am getting this error: $ sudo apt-get -y install build-essential git zlib1g-dev liblzma-dev libpq-dev \ libssl-dev libreadline-dev libsodium-dev file Command 'sudo' is available in the ...
Ciarán Murphy's user avatar
1 vote
2 answers
10k views

Ruby installation: BUILD FAILED (Ubuntu 20.04 using ruby-build 20220324)

Can't install Ruby, I used the command lines below before: sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev libreadline-dev git clone https:/...
Yaron Kr's user avatar
0 votes
0 answers
2k views

Ubuntu changed to Read-only file system after update & rbenv install

Linux noob using Ubuntu 20.04.3 to learn code. Background: This morning I was prompted by Ubuntu to install updates and restart. I have been installing rbenv and Ruby Gems this week trying to fix my ...
Siobhan Vida Ashmole's user avatar
0 votes
0 answers
12 views

installing old ruby version by using RVM on Ubuntu 20.4 [duplicate]

I'm trying to install old ruby version on Ubuntu 20.4 by using the RVM by using the below command $ rvm install "ruby-2.1.6" Usually I'm got the error Installing required packages: bison, ...
Astm's user avatar
  • 101
1 vote
1 answer
638 views

Convert a ruby ​script to a bash script

I need to turn this ruby ​​script into bash for i3 on Ubuntu: #!/usr/bin/env ruby sink = %x`pacmd list-sinks | grep -e 'name:' -e 'index:' -e 'active'` er = /\* index: ([0-9])/ er.match sink if $...
vithapp's user avatar
  • 43
4 votes
2 answers
5k views

LoadError: libffi.so.8: cannot open shared object file: No such file or directory running Rails

I am having trouble with creating a new rails project. When I run rails new project_name it comes to the rails webpacker:install it fails with the following error: LoadError: libffi.so.8: cannot open ...
mberc's user avatar
  • 41
0 votes
0 answers
171 views

network problem while running a Ruby on Rails application

when I try to run my RoR application I get an error at login that has nothing to do with the code and probably has to do with my network config...this is the error... SocketError in SessionsController ...
Sallar Dadgar's user avatar
1 vote
0 answers
494 views

ERROR: Failed to build gem native extension "mysql" on wsl2 with ubuntu 20.04

I have tried to install gem install mysql on wsl2 but I got the error. Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native ...
hanan's user avatar
  • 111
0 votes
2 answers
2k views

installing HomeBrew in Ubuntu error with portable ruby

I have tried to install HomeBrew with: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" and I got this massage: ==> Found cURL: /snap/bin/...
Ahmed M.Osman's user avatar
1 vote
0 answers
685 views

How to start a background process when the server starts and keep it alive

Note: I wasn't sure if I should ask this here, stack overflow, or ??? I'm migrating a Ruby on Rails app from Heroku to AWS. The server architecture is fairly vanilla: Database Web Server Worker ...
Metro Smurf's user avatar
0 votes
1 answer
2k views

Ubuntu Server 20.04 Redmine Wrong Ruby Version

Finished upgrading from 18.04 to 20.04, where I have a Redmine installation, after finish upgrading, Redmine stopped. When I try to access I get the error: Could not find concurrent-ruby-1.1.9 in any ...
MckPT's user avatar
  • 33
0 votes
0 answers
38 views

Install ruby2.2.3 with RVM on ubuntu 21.04 [duplicate]

I trying to install Ruby 2.2.3 in Ubuntu 21.04 with rvm but I get stuck in the dependencies, libssl1.0-dev. I tried some tips found in this link: Edit this file /etc/apt/sources.list and add this ...
Lucas Luan de Melo's user avatar
0 votes
2 answers
2k views

How do I setup a subdomain in apache2 on ubuntu 20.04?

I have an apache server running on port 80 and I want to have a subdomain that points to port 3000 on the same server. My server on port 3000 is a ruby on rails server, but ideally I can host my main ...
Ryan Glenn's user avatar
0 votes
0 answers
577 views

How do I completly remove jekyll, ruby, and all ruby gems?

I don't know much about ruby. I was trying to get jekyll running on this computer a few months ago. I remember that I installed jekyll and several ruby gems following different tutorials and without ...
TRiG's user avatar
  • 1,950
1 vote
0 answers
95 views

SocketError: sockaddr resolved to multiple nodename

ruby build is failing with error make spec failing, Any input on this will be useful I am using Build language: c Build dist: bionic Build id: 764199404 Job id: 764199405 Runtime kernel version: 5.4.0-...
R_SS's user avatar
  • 581
1 vote
2 answers
6k views

Have two different OpenSSL versions installed for rbenv - Ubuntu 20.04

I want to have two different OpenSSL versions in my OS. Right now, openssl version -v returns OpenSSL 1.1.1f 31 Mar 2020 I want to have OpenSSL 1.0.2 as well, for I need to install Ruby 2.2.10 with ...
cratag's user avatar
  • 21
1 vote
0 answers
121 views

Problem in generating a GNU screen session with Ruby in Ubuntu 20.04

I have a workstation with Ubuntu 20.04 installed where I'm facing problem in generating GNU screen session inside a ruby script. The Ruby script has to generate a new GNU screen session with a custom ...
colbacc8's user avatar
2 votes
1 answer
2k views

Ruby seems to have messed up APT

I recently added the Backbox ppa to install a few security tools. The packages updated and downloaded flawless how ever now everytime I run any apt command I get the below: Traceback (most recent call ...
Pete's user avatar
  • 21
0 votes
1 answer
1k views

Can't install ruby due to missing packages

I am trying to install Ruby for the purposes of using Jekyl for static site generation. I'm following the instaructions at https://www.ruby-lang.org/en/documentation/installation/ and found an ...
Plastikfan's user avatar
1 vote
1 answer
2k views

How to install curl development dependencies Ubuntu 20.04

Was trying to run bundle install for a Ruby on Rails project which required gem curb. Here's what happened: gem install curb Fetching curb-0.9.11.gem Building native extensions. This could take a ...
lacostenycoder's user avatar
1 vote
1 answer
640 views

Can't open Rails console after upgrading to Ubuntu 20.04, libreadline.so.7 not found

Last night I updated Ubuntu from 18.04 to 20.04 . I'm a Ruby on Rails developer and I haven't been able to launch Rails console since the update. I'm getting an error related to libreadline.so.7 . I'...
pinkfloyd90's user avatar
11 votes
5 answers
33k views

libffi.so.7: cannot open shared object file: No such file or directory

I just upgraded to ubuntu 20.10 and when I tried to work with rails app that was working perfectly fine earlier started to show this error. LoadError: libffi.so.7: cannot open shared object file: No ...
MH Sagar's user avatar
  • 397
2 votes
1 answer
2k views

Command 'ruby' not found after successful installation using rbenv on Ubuntu 20.04

Please pardon my errors (if any) as this is my first question here. I just successfully installed ruby on my Ubuntu 20.04 following this guide: https://github.com/jhu-ep-coursera/fullstack-course1-...
Innopalm4christ's user avatar
0 votes
1 answer
1k views

Gem::LoadError: Specified 'mysql' for database adapter,

I am trying to run rake db:setup for my old rails project and it is throwing the following error. `rake aborted! Gem::LoadError: Specified 'mysql' for database adapter, but the gem is not loaded. Add `...
smehsan's user avatar
  • 708
0 votes
1 answer
6k views

Installing fpm on Ubuntu 20.04

I tried to install ruby2.3 on Ubuntu 20.04. sudo apt install ruby2.3 failed as it is unable to locate package ruby2.3. I then tried installing via snap: $ sudo snap install ruby --classic $ sudo snap ...
fraiser's user avatar
  • 101
3 votes
1 answer
2k views

Ubuntu upgrade error (16.04 > 18.04). "Please install all available updates for your release before upgrading". No update seems to be available [duplicate]

First of all, sorry for the long question. I have tried the following set of commands to upgrade my 16.04 to 18.04. The end result is "Please install all available updates for your release before ...
Niladri Sarkar's user avatar
1 vote
2 answers
511 views

How to script the startup of an app using multiple precursory values?

I have a webapp I'd like to start with a script, rather than open 3 tabs and start the processes, then change a line to a config file, and then start the web server. First, so I can test webhooks, I ...
listenlight's user avatar
0 votes
1 answer
169 views

I installed chruby/ruby-install on Ubuntu 20.04: cannot execute ruby from within bash-script

I have a ruby setup from here: installation_ruby now when I run a gem inside of a bash-script I get the following error: /usr/bin/env: »ruby“: Datei oder Verzeichnis nicht gefunden Diverse tips on ...
Leder's user avatar
  • 273
2 votes
0 answers
3k views

Nginx not accessible from external IP

Forgive the totally n00b question, but I'm pulling my hair out at this. I followed this tutorial to deploy a rails app on an Ubuntu 18.04 headless server. I'm using Phusion Passenger and Nginx to ...
cincospenguinos's user avatar
0 votes
0 answers
27 views

RubyMine doesn't recognize user created environment variables [duplicate]

TLDR: Basically RubyMine does not recognize any user created environment variable when launched from a desktop entry, but when launched from console (using $ mine) it can recognize all the environment ...
Burak Kaymakci's user avatar
0 votes
2 answers
1k views

sudo apt install ruby not working

When running sudo apt install ruby or sudo apt install ruby-full And checking ruby -v I get the error: user@C-Ubuntu:~$ ruby -v Command 'ruby' not found, but can be installed with: sudo snap ...
Carter's user avatar
  • 13
0 votes
0 answers
140 views

will upgrading ubuntu to 16.04 change my ruby version?

Will upgrading ubuntu version from 14.04 to 16 upgrade my ruby version 1.9.3 to its latest? I don't mind keeping multiple versions but it shouldn't delete the old one. These are the upgrade steps I ...
SureshCS's user avatar
  • 101
1 vote
0 answers
740 views

Problem installing a ruby gem on Ubuntu 16.04

I have a problem installing a Rubygem pdfbeads on my Ubuntu 16.04 and wonder if anyone could help. I never used or ran ruby before, but I needed this gem as it is required within a DJVU-to-PDF file ...
marinnen128's user avatar
3 votes
1 answer
2k views

Problem with accessing an installed ruby gem package from a shell script under Ubuntu 16.04

I used snap to install the latest version of ruby under Ubuntu 16.04 $ sudo snap install ruby --classic $ which ruby /snap/bin/ruby $ ruby -v ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-...
marinnen128's user avatar
2 votes
1 answer
472 views

Why no support for Whipper - cd ripping software?

Curious why Whipper isn't available from Ubuntu repos? You may be curious why I'm after that when there is other software out there. Well, it and RubyRipper were developed after ExactAudioCopy (EAC), ...
WhipperHelp's user avatar
0 votes
1 answer
2k views

install ruby 2.3.1 - Ubuntu 19.10 - Build Failed

I am new to Ubuntu and Ruby installation, and Linux installation in general. I'm getting the below output when i try to install Ruby 2.3.1 via rbenv. Any idea what the issue could be? Many thanks. ...
premg's user avatar
  • 1
5 votes
1 answer
3k views

Running desktop shortcut just opens it in text editor

I've looked at some other StackExchange questions pertaining to this topic, but for whatever reason I still cannot get to a resolution. This is the simple test.desktop file I have on my desktop: [...
user3447014's user avatar

1
2 3 4 5
10