Questions tagged [ruby]

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

115 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
1 answer
6k 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 ...
Afoolish Brat's user avatar
5 votes
0 answers
2k views

Problem with installing rvm

I try to install rvm on Ubuntu 14.04. $ \curl -L https://get.rvm.io | bash -s stable --ruby % Total % Received % Xferd Average Speed Time Time Time Current ...
Tim's user avatar
  • 25.1k
4 votes
0 answers
658 views

Cannot start rake on Ubuntu 16.04

I am following instructions to set up napa from here. I have been able to successfully install ruby, gem and bundle. In one of the steps I have to use rake like rake db:reset. But running it I get: ...
Animesh Pandey's user avatar
3 votes
0 answers
920 views

Redmine - how to run as fastcgi with nginx?

I have installed redmine on one of my Ubuntu 14.04 servers. So far works perfectly, postgre-db created and filled, and it runs with ruby script/rails server webrick -e production -b 10.0.0.20 Now ...
WitchCraft's user avatar
  • 1,834
3 votes
1 answer
372 views

Unable to install Github-Pages with gem?

I've been trying to install github-pages using gem. I have Ruby v. 2.1.2: ✦ ruby -v ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux] I installed Ruby using RVM and I've set 2.1.2 as my ...
Aeris's user avatar
  • 31
3 votes
1 answer
150 views

Any way to catch the notifications so another program can read them?

I know you can see notifications in the terminal using dbus-monitor "interface='org.freedesktop.Notifications'" | grep --line-buffered "string", but is there any easy way to catch the notifications ...
PJkeeh's user avatar
  • 51
3 votes
0 answers
2k views

Install compass 1 pre fails

I can not install compass version 1. $ ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] And when I do: $ sudo gem install compass --pre I get following error: Building native ...
Tanel Tammik's user avatar
3 votes
0 answers
3k views

Failed to install a ruby gem, eventmachine

I tried to run a script that return this error messaged: Could not find gem 'eventmachine (= 0.12.10) ruby' in the gems available on this machine. Run `bundle install` to install missing gems. ...
Smile.Hunter's user avatar
  • 8,345
3 votes
1 answer
1k views

How to autorun a ruby script in Ubuntu?

How hard can it possibly be to run a ruby script on startup?! Fairly tough apparently: I'm using rvm and running ruby 2.3.0. which ruby returns /home/ubuntu/.rvm/rubies/ruby-2.3.0/bin/ruby The ...
dsp_099's user avatar
  • 346
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
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
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
2 votes
0 answers
88 views

Termial not accepting options

I'm using Ubuntu 14.10, and for some reason the terminal command will not accept options. (I believe these are called option, please correct me if I am wrong). For example, when installing a new ...
kobi's user avatar
  • 81
2 votes
1 answer
508 views

How to make a Openbox dockapp with GTK?

I'm using Openbox and I want to make a dock-app (NOTE: not a dock like plank/docky but a dock-app like stalonetray or lal) in GTK+. How do I get the simple app I have written to sit in the dock area? ...
Christopher's user avatar
2 votes
0 answers
832 views

Confusion for mime files: magic, magic.mgc, magic.mime

I'm using Ubuntu. I'm trying to use ruby gem 'shared-mime-info' for an application I'm writing. I understand that magic.mgc is a compiled version of magic file which has magic number definitions for ...
Florence Foo's user avatar
2 votes
0 answers
313 views

Ruby's ri not working - 'Marshall data too short'

I'm running Lubuntu 13.10, I installed Ruby (1.9.3p194), Gems(1.8.23), ri(4.1.1), rdoc and some gems (Rails, RSpec, haml...) from the apt-get repository. When I try to run ri, it gives me the ...
ArthurChamz's user avatar
2 votes
1 answer
1k views

Successfully installed SASS, but the terminal insists it isn't

I wanted to install sass version 3.2.0 alpha. I first ran sudo apt-get install libhaml-ruby1.8, which is what the console recommended It successfully installed, but it installed an older version ...
Michael0x2a's user avatar
1 vote
0 answers
579 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
  • 111
1 vote
0 answers
29 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
0 answers
604 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
1 vote
0 answers
854 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
1 vote
2 answers
3k 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
1 vote
0 answers
101 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
0 answers
129 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
1 vote
1 answer
750 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
1 vote
0 answers
788 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
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 ...
Lyle Phillips's user avatar
1 vote
0 answers
140 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 ...
tanius's user avatar
  • 6,273
1 vote
1 answer
611 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 ...
canaryGrapher's user avatar
1 vote
0 answers
78 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 ...
Bhimasen Rautaray's user avatar
1 vote
0 answers
1k 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: rake aborted! Don't ...
J. Doe's user avatar
  • 11
1 vote
0 answers
152 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-...
Daniel Schiavone's user avatar
1 vote
0 answers
119 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 ...
iCyborg's user avatar
  • 1,061
1 vote
0 answers
2k 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 ...
Ankit Devnalkar's user avatar
1 vote
1 answer
148 views

files made with Gedit cannot be found/made executable from terminal

I recently (as in within the hour) made one .rb file and one .html file. When I enter them into my Terminal they always return: "No Such File or Directory". It does not matter if the manner of input ...
Zonecodez's user avatar
1 vote
0 answers
5k views

/etc/init.d/networking start - the control process exited with error code. See “systemctl status networking.service”

Ubuntu v. 16 Hosting digitalocean I customize Sendmail for project(ruby, Sinatra) like in this article. http://www.travisluong.com/ruby-on-rails-sending-email-with-sendmail-on-ubuntu-vps/ I want to ...
Stefan Hansch's user avatar
1 vote
0 answers
619 views

How to get rid of Ruby 1.9.3 notice in Ubuntu after installing v2.3.3

I'm running the ubuntu bash shell in Windows 10. To install SASS on my system, I had to install ruby, so I followed the documentation on the ruby website which downloaded and installed Ruby v1.9.3 I'...
iSaumya's user avatar
  • 111
1 vote
1 answer
367 views

Cannot run vim in 16.04

After upgrading from 14.04 to 16.04 running vim produces output: vim: error while loading shared libraries: libruby-1.9.1.so.1.9: cannot open shared object file: No such file or directory This ...
gzulux's user avatar
  • 21
1 vote
0 answers
148 views

How to find out what launches a process on Ubuntu Server?

I have a bad case of a runaway process on my server. That is a Sidekiq (Ruby-based background jobs runner for a Rails based web application), it can be found as the most CPU consuming app in my top (...
user20532's user avatar
1 vote
1 answer
183 views

Ubuntu-touch ruby / rails development: installing with rvm

I have a Bq10 tablet running Ubuntu-touch OTA-11. I want to be able to work with Ruby and rails apps. Usually I use rvm for this. Is it possible to install rvm [or something similiar] using ubuntu-...
Jack's user avatar
  • 532
1 vote
0 answers
2k views

msfconsole not running Ignoring bcrypt-3.1.11

I have problems when running metasploit on Ubuntu LTS 14:04. I've created a database msfconsole and run postgresql but still does not work. root@evan:/home/evan# msfconsole Ignoring bcrypt-3.1.11 ...
Evan Pramono's user avatar
1 vote
0 answers
125 views

Upstart Ruby version issue

I am trying to get Upstart to fire up Sidekiq (https://github.com/mperham/sidekiq/wiki/Deploying-to-Ubuntu). I can manually start it but the same command fails in the Upstart script. I have piped ...
Dan Tappin's user avatar
1 vote
1 answer
302 views

Making ruby script into .exe

Is there a way to make a windows executable from a ruby script on Ubuntu ? I've tried to achive that with ocra gem but I constantly getting this error : /home/use/.rvm/gems/ruby-2.1.6/gems/ocra-1.3....
gosu94's user avatar
  • 195
1 vote
1 answer
161 views

Error deployment of project via deploy.sh script

I need help. I have script for deployment my project on Ruby. #!/bin/sh if [ $# -eq 0 ]; then echo "Usage:" echo " ./deploy.sh some_stage_name" else rvm use `cat .ruby-version`@`if [ -f ...
James M's user avatar
  • 141
1 vote
0 answers
248 views

Postgres server start fails - WANTED: netstat -ant|grep 5432 output explanation

INFO: I'm working on a Ruby on Rails app. Hosting on Heroku with postgres. Tried running "heroku run rake db:migrate" as usual, but getting error "cannot connect,... check if something else is already ...
mcn's user avatar
  • 11
1 vote
0 answers
3k views

Problems Installing Metasploit Framework on Ubuntu

I have encountered 3 problems while following this guide to installing Metasploit Framework on Ubuntu and Debian: 1) After installing proper version of ruby, there is a command given for installing ...
Praveen Kumar's user avatar
1 vote
0 answers
34 views

12.04 -- ruby1.8 missing dependencies

I just built a new 12.04 ubuntu box and tried to install puppet package. This failed because it could not load ruby1.8. After some fiddling around I tracked the issue down to the fact that the ...
Russell Fulton's user avatar
1 vote
1 answer
215 views

Gnome Tab not recognizing Rails anymore using ubuntu 14.04

I am having a strange issue , my main terminal is recognizing the RVM , Ruby and runs Rails command as well , and I had two tabs opened yesterday which were recognizing all of the commands . Today ...
Shail's user avatar
  • 111
1 vote
0 answers
121 views

rack server won't start

I am a beginner to ruby and rack ; trying to start a rack server and the rackup config.ru command does nothing. right now my rackup file is #!/usr/bin/env ruby require "rack" Rack::Server.start ...
Bhavna's user avatar
  • 11
1 vote
0 answers
395 views

Error installing rvm on Ubuntu 12.04

I'm taking a web applications development course on Coursera that requires me to install Ruby and Rails. I'm following the instructions at https://class.coursera.org/webapplications-002/forum/thread?...
elexhobby's user avatar
  • 345