Questions tagged [ruby]
A dynamic, open source programming language with a focus on simplicity and productivity. (quote: ruby-lang.org)
466
questions
1
vote
0
answers
17
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 ...
0
votes
2
answers
838
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:/...
0
votes
0
answers
245
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 ...
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, ...
1
vote
1
answer
196
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 $...
0
votes
0
answers
292
views
Failed to build Ruby via rbenv on Ubuntu 21.10
No matters what kind of options I'm going to use (including the suggestions on the rbenv site), I'm struggling to install ruby.
I always get the following error message
Downloading ruby-3.0.3.tar....
0
votes
0
answers
27
views
Ruby-Thor broken on Ubuntu 20.04.3
Can't run rails db:create (or any other db commands)
Specs: Ubuntu 20.04.3
Ruby 2.7.0
Rails 6.1.4.1
Error: Class mismatch Thor.
What I've tried: dpkg -r --force-depends ruby-thor
gem install thor
...
3
votes
1
answer
2k
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 ...
0
votes
0
answers
99
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 ...
1
vote
0
answers
292
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 ...
0
votes
0
answers
28
views
How to reach my desktop directory from Ubuntu Bash. (my c/ drive) [duplicate]
I am trying to open up questions, saved on my desktop, given to me to open in VS code to Ubuntu to ruby. Because Ubuntu does not have the file saved in it, I can not use the integrated terminal to run ...
0
votes
0
answers
121
views
How I can run mysql with rails framework
Actually I am stuck with this issues and I tried a lot of commands but nothing work
I try to run rails new new_app -d mysql
but when I run bundle it I get this
current directory: /tmp/...
0
votes
1
answer
389
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/...
0
votes
0
answers
122
views
issue with cannot load such file
I know this has been covered in other questions, but I am brand new to this. I got this far, but got stuck and need help. What do I do to fix this? I think it is looking in the wrong directory.
...
0
votes
0
answers
220
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 ...
0
votes
1
answer
836
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 ...
0
votes
0
answers
38
views
Redmine install from repo on 18.04
I have a problem with Redmine instalation from official repo on Ubuntu 18.04. I had this problem few month before and I solved it by some nonsystematical magic - now, the problem comes back after ...
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 ...
0
votes
0
answers
62
views
Deploying Rails 6.1 Application on Ubuntu 20.04 with Apache
My stack:
Ubuntu 20.04
Apache
Rails 6.1.2
Ruby 3.0
Webpacker
Puma (in the Gemfile)
Is anyone aware of a tutorial or article on how to set up my Ubuntu server, and the Apache virtual host section, as ...
0
votes
2
answers
1k
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 ...
0
votes
0
answers
222
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 ...
1
vote
0
answers
87
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-...
1
vote
1
answer
3k
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 ...
1
vote
0
answers
92
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 ...
2
votes
1
answer
1k
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 ...
0
votes
1
answer
431
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 ...
1
vote
1
answer
840
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 ...
0
votes
1
answer
437
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'...
6
votes
4
answers
18k
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 ...
2
votes
1
answer
981
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-...
0
votes
1
answer
775
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 `...
0
votes
1
answer
3k
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 ...
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 ...
1
vote
2
answers
377
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 ...
0
votes
1
answer
116
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 ...
2
votes
0
answers
2k
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 ...
0
votes
0
answers
26
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 ...
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 ...
0
votes
0
answers
117
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 ...
1
vote
0
answers
683
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 ...
3
votes
1
answer
1k
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-...
2
votes
1
answer
426
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), ...
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.
...
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:
[...
1
vote
1
answer
2k
views
Intsalling ruby 1.9.3-p551 on Ubuntu 18.04
I am trying to install a older ruby version using rbenv.
$ rbenv install ruby 1.9.3-p551
I'm getting this error
BUILD FAILED (Ubuntu 18.04 using ruby-build 20191004)
Inspect or clean up the ...
1
vote
2
answers
2k
views
Cannot utime: Operation not permitted
I am trying to install rvm
when in run the command
\curl -sSL https://get.rvm.io | bash -s stable
I get:
Downloading https://github.com/rvm/rvm/archive/1.29.9.tar.gz
Downloading https://github....
1
vote
0
answers
71
views
How can I manage all my Ruby gems as Ubuntu packages?
Whenever I have to install Ruby software on our Ubuntu based webserver, I run into a new gem package manager problem that I never saw with Ubuntu packages. By now I really hate it, and got the idea ...
1
vote
1
answer
6k
views
How to upgrade Ruby to version >=2.4.4 on Ubuntu 16.04? (for wpscan)
I'm currently on Ubuntu 16.04. I'm trying to install wpscan. I already have ruby but it's v.2.3.1 (default). I've tried both suggested methods, gem install wpscan and "from sources". In both cases, I'...
1
vote
1
answer
220
views
Why doesn't sudo crontab work but crontab works?
I want to execute a ruby script containing sudo commands. If I enter this command in " crontab -e ", it works fine:
* * * * * /usr/bin/ruby ~/myfolder/test.rb >> ~/myfolder/mylog.log 2>&...
0
votes
1
answer
134
views
Uninstalling old xenial Ruby gems after bionic upgrade
When I upgraded to Bionic, Ruby was upgraded from its default Xenial version 2.3 to its default Bionic version 2.5. That means that Ruby gem-provided programs that I installed via gem install no ...