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
0
votes
0answers
17 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
0answers
13 views

RVM loses settings after reboot

I am an amateur at ruby, and new to RVM, so very possibly I'm missing something already documented... I just wiped my ubuntu 19.10 system and freshly installed 20.04 desktop. The RVM setup I had ...
-3
votes
0answers
19 views

The repository 'http://ppa.launchpad.net/brightbox/ruby-ng-experimental/ubuntu focal Release' does not have a Release file [duplicate]

system is Ubuntu desktop 20.04...heres the error message: Hit:10 http://ppa.launchpad.net/system76/pop/ubuntu focal InRelease Err:11 http://ppa.launchpad.net/brightbox/ruby-ng-experimental/ubuntu ...
0
votes
0answers
25 views

Installation for Ruby 2.3.3 on UBUNTU 19.10 is failing

I am getting below error while installing ruby version 2.3.3 in my ubuntu os(version 19.10) : mankind@mankind-Latitude-E5440:~$ rbenv install 2.3.3 Downloading ruby-2.3.3.tar.bz2... -> https://...
0
votes
2answers
51 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
0answers
48 views

Cant install some Ruby gems

i'm trying to install the solargraph gem. Building native extensions. This could take a while... ERROR: Error installing solargraph: ERROR: Failed to build gem native extension. current ...
0
votes
0answers
36 views

Can not install gem bundle because of massing path variable

I need to install bundle for ruby. I installed ruby as explained in the wiki. But if I execute gem install bundle, I revieve: WARNING: You don't have /root/.gem/ruby/2.7.0/bin in your PATH, gem ...
0
votes
0answers
12 views

updated method to start a ruby program on boot (ubuntu14 valid method doesn't work on 18)

In this previous question of mine I was looking for how to execute a shell command each time the server starts. description "run webSocket server when network ready" start on static-network-up ...
0
votes
0answers
21 views

What framework would you recommend between ansible and puppet? (DevOps on ubuntu)

We are in 2020 and was wondering what should I choose regarding my following questions: What framework would you recommend between ansible and puppet? (DevOps on ubuntu) Also, which should I choose ...
0
votes
0answers
60 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
0answers
194 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 ...
2
votes
1answer
212 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-...
1
vote
1answer
119 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
0answers
110 views

Upon using “gem install ncode-syosetu”, i get “ERROR: Failed to build gem native extension.” and “make install failed, exit code 2”

I'm trying to install the NcodeSyosetu module using: gem install ncode-syosetu but the output i get is: Building native extensions. This could take a while... Successfully installed concurrent-ruby-...
0
votes
1answer
572 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. ...
1
vote
1answer
378 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: [...
0
votes
1answer
592 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
1answer
559 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
0answers
30 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 ...
0
votes
1answer
2k 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'...
0
votes
0answers
60 views

How do I install up to date versions of rbenv and ruby-build?

I install rbenv like so: $ sudo apt-get install rbenv This installs rbenv@1.1.1 and ruby-build@20170726. When I try to use these versions to install ruby I can not install versions higher than 2.5....
1
vote
1answer
90 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
1answer
55 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 ...
0
votes
1answer
172 views

How to install Rails?

I can't find this specific error in the web but when typing sudo gem install rails -v 5.2.2 I get the following error: nysa@nysa-System-Product-Name:~$ sudo gem install rails -v 5.2.2 Fetching ...
1
vote
1answer
301 views

Cannot connect mySQL to Ruby on Rails on Ubuntu 19.04

I am facing difficulties in installing Ruby Gems on my Ubuntu 19.04 Whenever I try to install the gem, I get make failed, exit code 2. However, MySQL is correctly installed on my OS. And even Ruby ...
1
vote
0answers
44 views

elasticsearch issue in ubuntu 18.04

I have a Ubuntu 18.04 system with 4 GB RAM and 500 GB hard disk. I have installed elastic search in my system with : sudo apt-get install elasticsearch but while starting an elastic search with ...
0
votes
1answer
748 views

Ruby on Rails on Ubuntu 19.0.4 crashing

How to add following dependencies to start my rails server: While starting the server using following command bin/start thin getting following error message: /usr/share/rvm/rubies/ruby-2.3.1/lib/...
0
votes
1answer
148 views

Why Vagrant fails after OS upgrade?

Multiple packages upgraded like gem, ruby and its plugins. Now when I run vagrant up I get: Vagrant failed to initialize at a very early stage: The plugins failed to initialize correctly. This may ...
1
vote
2answers
162 views

Redirect to 'www' prefix domain using nginx

I brought a domain in godady and I have Installed Passenger + Nginx on a Linux/Unix(Ubuntu) server and deployed a Ruby app. Now my domain looks something like http://example.com when I try to request ...
0
votes
0answers
91 views

Problems with text editors on ubuntu

So, I am new to Ubuntu, which is required for my CS course that primarily focus on ruby and Ocaml. The problem that I'm having is that whenever I try to open up the project file with command "ruby ...
1
vote
0answers
442 views

Ruby on Rails, db commands missing from rake

I am trying to create a database with the following command: bundle exec rake db:create but, that command is missing along with all the other db commands. The error I get is the following: rake ...
0
votes
2answers
1k views

gem install failure

I am trying to install an instagram-crawler by using the gem command: gem install instagram-crawler But I am receiving the following error: Building native extensions. This could take a while... ...
0
votes
1answer
210 views

How do you run Ruby scripts?

I installed Ruby on Synaptic Package Manager but when I double click a .rb file it just opens using Leafpad instead of running. I can't find Ruby in the start menu and when I type Ruby in LXTerminal ...
0
votes
1answer
67 views

How to list and remove files only if multiple conditions are met

This is on ubuntu 18.04. I have access to bash, pip3, and ruby gems on this machine. Trying to work with multiple mp4 files that were sent to us by VHS converter company. Each file has at least a ...
0
votes
1answer
1k views

Failed to build gem native extension - Mastodon

I'm trying to install Mastodon (joinmastodon.org) on a Ubuntu 16.04 server. Firs I get this rbenv: version `2.5.3' is not installed (set by /home/mastodon/live/.ruby-version) I installed the 2.5.3 ...
0
votes
1answer
1k views

nokogiri installation error - mkmf.rb can't find header files

I get this following when I try to install nokigiri, Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. ...
0
votes
0answers
247 views

ruby works for normal users but not for root

I have an ubuntu 18.04 machine with ruby installed. I login with a user that is part of the www-data group and I am able to execute this: ruby myprogram.rb without any issue If I try to do sudo ...
1
vote
1answer
1k views

Ubuntu 18.04: How to install Ruby1.9.1(ruby1.9.1-full, rubygems1.9.1, ruby1.9.1-dev)?

I have followed below steps to install Ruby1.9.1 on ubuntu 18.04 but it is showing latest ubuntu version after installation: Steps: sudo apt-get install ruby1.9.1-full sudo apt-get install rubygems1....
1
vote
0answers
1k views

zlib1g-dev installation

I have been having issues with installing zlib1g-dev (I need it for rbenv to work). Apt will not install it, saying that I don't have the required dependencies (it doesn't say exactly which zlib1g i ...
0
votes
1answer
50 views

Why is libjs-jquery required by ruby2.3?

I just installed the package ruby in Xenial, and I noticed a couple of javascript packages where also required. Does anyone know why they are needed by ruby? Note that I have NOT installed ruby-on-...
0
votes
0answers
97 views

Ruby doesn't run on reboot

I have an Ubuntu 18.04 server, running Apache2, PHP, and Ruby 2.5.1. Everything works until I reboot, and then Ruby fails to run. ruby -v hangs as well as any other command, there is no error as Ruby ...
0
votes
0answers
975 views

can't install or uninstall Heroku on ubuntu 18

I am trying to run heroku on my terminal with heroku login command but everytime it show me this message Install the Heroku CLI from https://cli.heroku.com If i do heroku -v , heroku run rails c ...
1
vote
0answers
96 views

Can't update or remove ruby-net-telnet

Running Ubuntu 16.04. All other packages update fine but attempting to update or remove ruby-net-telnet returns errors Preparing to unpack .../ruby-net-telnet_0.1.1-2_all.deb ... Unpacking ruby-net-...
1
vote
1answer
142 views

Ruby version differs from the rbenv one in server

In my server (Ubuntu 16.04) I have two users: root and other. I want to config a Rails project. Now, after some configuration I installed the v2.5 version of Ruby (required) as a root user using ...
1
vote
1answer
1k views

Error while installing ruby on Windows Subsystem for Linux

I am trying to install Jekyll by following Jekyll on Windows tutorial. There is a steep to install ruby from BrightBox repository. I had triggered following command: sudo apt-add-repository ppa:...
0
votes
0answers
19 views

“Heroku-cli” isn’t output during verification process, how do I fix? I’ve even uninstalled

The issue I'm having is really throwing me here. While running through an installation process called Installfest, I started setting everything up with the Linux OS. I'm using Ubuntu in the Oracle VM. ...
3
votes
2answers
2k views

Ruby gem installation failed

I tried to install the gosu Ryby gem with $ sudo gem install gosu Building native extensions. This could take a while... ERROR: Error installing gosu: ERROR: Failed to build gem native ...
0
votes
1answer
356 views

How to install last stable version of Ruby with RVM without root privileges?

I'm creating a bash script to install automatically the last stable version of ruby without root privileges. This is what I have so far: #Install GPG Keys curl -sSL https://rvm.io/mpapis.asc | gpg2 --...
1
vote
0answers
37 views

AWS Instance with 30 GB RAM, still running out of Memory and High CPU usage with small app?

We are on 30 GB AWS instance running a Ruby on Rails app using Passenger + Apache. Though the App Postgres DB has millions of records, The DB size is few GB only. Now I am finding the server to ...
0
votes
1answer
918 views

How to execute files with “.install” extension?

Ubuntu 16 I'm currently trying to install shoes gui, and downloaded shoes for linux http://shoesrb.com/downloads/ file with extension ".install" but double click do nothing, I though .install file ...

1
2 3 4 5
9