Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ruby]

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

0
votes
1answer
44 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
35 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 ...
1
vote
1answer
36 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
126 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
110 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
38 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 ...
0
votes
1answer
127 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
186 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 ...
1
vote
0answers
26 views

Error running '__rvm_make -j8'

does anyone have the solution for this error while installing rvm in ubuntu 16.04>>?? Would really appreciate your help. Thanks.
0
votes
1answer
227 views

Ruby on Rails - 403 Forbidden - Ownership / Permissions - DocumentRoot doesn't exist - Denied by Server Configuration [closed]

I have been so far unable to successfully configure an Ubuntu server to allow access to a RoR site which I have migrated from another server. As far as I can tell the permissions and set up are the ...
0
votes
1answer
15 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
19 views

Cannot seem to install Ruby - what am I doing wrong? [duplicate]

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty I'm trying to install Ruby; here's what I see: $ sudo ...
0
votes
0answers
87 views

ubuntu 16.04 vagrant issue

I am having an issue with vagrant on Ubuntu 16.04. I installed vagrant to set up a network playground for the book Foundations of Python Network Programming. I followed the first 3 steps in this link ...
0
votes
0answers
33 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
280 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
64 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-...
0
votes
1answer
62 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
244 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
112 views

how to update ruby-net--ssh

I am trying to get Vagrant work, but it throws me an error, exactly described here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890662 But I got Ubuntu-based distribution. How to update ruby-...
0
votes
0answers
18 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
483 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
170 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
24 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
160 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 ...
4
votes
1answer
3k views

How to update ruby version to 2.5.1?

When I tried opening metasploit by msfconsole It showed an error rbenv: version `2.5.1' is not installed (set by /opt/metasploit-framework/.ruby-version) I tried rbenv install rbx-2.5.1 its ...
0
votes
0answers
372 views

How do you install Tiny TDS on Ubuntu 16.04?

So firstly I've done a lot of searching and found that to install tiny_tds on Ubuntu 16.04 you need the following: Gem (easily installed using sudo apt-get install gem); Ruby (once again sudo apt-get ...
0
votes
1answer
50 views

my bash terminal is showing unwanted message when starting

bash: source: /home/vj/.rvm/scripts/rvm: is a directory Recently I tried to install ruby on my PC. And after that installation every time am starting my terminal it is showing the above message. I ...
0
votes
1answer
80 views

Install emacs and ruby [duplicate]

I'm a new user of ubuntu and I tried to install emacs and ruby but there is an error and I don't know how to resolve. The emacs error is this: E: Could not open lock file /var/lib/dokg/lock - open (...
0
votes
0answers
37 views

gollum installation on ubuntu 14.04

I am getting the below error message when trying to install gollum on ubuntu 14.04 Command to install gollum: sudo apt-get install ruby ruby-dev make zlib1g-dev libicu-dev build-essential git cmake ...
0
votes
1answer
252 views

how to proceed installation of ruby compass? [duplicate]

Error installing compass: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.23/ext/ffi_c /usr/bin/ruby2.3 -r ./siteconf20180226-6140-2ex61w.rb ...
1
vote
1answer
91 views

Is it possible to add RubyMine to panel on Ubuntu 17.10?

I've downloaded RubyMine archive and extracted it into my home directory. When I execute ./RubyMine/bin/rubymine.sh, the IDE starts, and in Ubuntu panel, I can see RubyMine icon. When I right click on ...
1
vote
1answer
699 views

Error running - gem Install sass

Erro Log #gem install sass Building native extensions. This could take a while... ERROR: Error installing sass: ERROR: Failed to build gem native extension. /usr/bin/ruby2.2 -r ./...
1
vote
1answer
362 views

How to install compass-normalize?

When compilation gulp I get the following error: LoadError on line ["55"] of /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- compass-normalize Run with --trace to ...
0
votes
1answer
3k views

E: Unable to locate package ruby!

Got this error message: [sudo] password for saeedeh: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ruby What should I ...
0
votes
0answers
93 views

Script to change volume

I have a ruby script that lets me adjust the volume using a bash script. The script has worked for years, but now works intermittently. This is what I have tried. 1/26/18 I found another way to ...
2
votes
1answer
909 views

Error when trying install Ruby with RVM on Ubuntu 17.10 [duplicate]

I installed RVM in my Ubuntu 17.10 but when I try to install Ruby I have this error: $ rvm install 2.5.0 Searching for binary rubies, this might take some time. No binary rubies available for: ubuntu/...
0
votes
1answer
398 views

Updating rubygems

i want to install ruby gems on my linux machine. in the documentation it tell me to type this commands $ sudo gem install rubygems-update $ sudo update_rubygems this error goes up $ sudo ...
2
votes
1answer
119 views

Is it safe to remove Ruby on 17.10?

I wanted to remove Ruby from my system as I do not use it. However, after past experience (removed Python 2.7 ...) I have learnt not to do so without checking the dependencies. The following packages ...
0
votes
1answer
180 views

Location of ruby-gtk2 library files moved in 17.10?

I am trying to use Rubyripper (a CD ripping program that is downloadable from here: http://code.google.com/p/rubyripper) on Ubuntu 17.10. It is a script and a bunch of files; you install the ...
0
votes
1answer
522 views

How to uninstall Ruby which was build from source?

I wanted to install ruby version 2.2.3, so i downloaded the source and installed from there.. as per instruction here https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-...
0
votes
0answers
852 views

rake aborted! Don't know how to build task 'db:migrate' (see --tasks)

Can anyone help me with ruby on rails. I tried referred many articles regarding this error but could not make it clear yet.I am trying to execute'rake db:migrate' but I am getting rake aborted! Don't ...
2
votes
1answer
466 views

Is ruby a pre-requisite to install gem?

I need to install gem on my Ubuntu 16.04 in order to install Travis CI CLI. Is it necessary to install ruby before installing gem? I literally have no idea about ruby and gem.
0
votes
2answers
432 views

Commands not working on xterm but work in ssh session

I installed Ubuntu 16.04 with Xrdp and Xfce4 for remote access. Installed ruby using RVM. When I try to access Ruby Interactive (irb), it works perfectly from the SSH shell (I type irb and I can use ...
0
votes
1answer
1k views

t2.micro Ubuntu 16.04 ran out of space - Debug help

My AWS t2.micro (Ubuntu 16.04) comes with 1G disk space. But, at 124 MB, I'm seeing out of space error. /home/ubuntu/.rbenv/libexec/rbenv-init: line 131: cannot create temp file for here-document: ...
2
votes
1answer
5k views

Error when starting Redis server: “Address already in use”

I am trying to install redis, according to the instructions here : https://redis.io/download, but getting the error : Creating Server TCP listening socket *:6379: bind: Address already in use ...
1
vote
0answers
744 views

BUILD FAILED (Ubuntu 16.04 using ruby-build 20170726-2-g254728e)

I'm new to Ubuntu. I want to install ruby using rbenv (rbenv install 2.2.1) But I get the error: BUILD FAILED (Ubuntu 16.04 using ruby-build 20170726-2-g254728e) Here is the script I ran: sudo apt-...
0
votes
0answers
243 views

cannot install openssl on ruby 2.3

I try gem install openssl but I get extconf failed, exit code 1. Below is the mkmf.log. === OpenSSL for Ruby configurator === "gcc -o conftest.exe -IC:/Ruby23/include/ruby-2.3.0/i386-mingw32 -IC:/...
1
vote
2answers
3k views

/usr/bin/env: ‘ruby’: No such file or directory

When crontab tries to execute the script: @reboot sh /home/username/unicorn_start.sh > /home/username/unicorn_start.out 2>&1 It creates me a log file with the following content: /usr/bin/...
1
vote
1answer
79 views

How can I fix these errors when trying to run a ruby-based project on NetBeans 6.9.1?

I am trying to run a ruby-based project on NetBeans 6.9.1 but nothing happens and Mongrel shows an error message. ruby -v => 1.8.7 rails -v => 2.3.8 gem -v => 1.5.0 Error message: /var/...
0
votes
0answers
2k views

Gem::InstallError: rack requires Ruby version >= 2.2.2

I'm installing Bundle thulehoang@thulehoang-X455LAB:~/workspace/hello_app$ bundle install but it's not working. This is error: Gem::InstallError: rack requires Ruby version >= 2.2.2. An error ...