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
1 vote
1 answer
6k views

16.04: Unable to install compass

this ubuntu version brings ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]. so all i did to install was the normal process which is gem install compass but this installation throws this error: ...
1 vote
1 answer
1k 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 ...
3 votes
3 answers
2k views

gem failed to install bropages

There is an alternate manpage documentation software called bropages, written in ruby, and I want to install it. I followed the instructions on the site, but got these errors: ~$ sudo gem install ...
0 votes
0 answers
303 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 ...
5 votes
3 answers
22k views

How to downgrade Ruby on Ubuntu?

I'm running Ubuntu 16.04. My ruby version is: ruby 2.3.0p0 (2015-12-25) [x86_64-linux-gnu] How can I downgrade ruby to version 2.1 to be in line with the rest of my development team (some of our ...
2 votes
1 answer
4k 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/...
2 votes
1 answer
179 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
0 answers
2k 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-...
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 ...
3 votes
1 answer
721 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
1 answer
843 views

I cannot run vim in 16.04

I tried running vim today, and I got an error: vim: error while loading shared libraries: libruby-1.9.1.so.1.9: cannot open shared object file: No such file or directory Then after a lot of research,...
0 votes
2 answers
1k 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 ...
2 votes
2 answers
2k views

How can I capture shell variable output to use in my capistrano task

I am using capistrano to deploy a Ruby on Rails application. I previously was using Centos. In converting my task to be used with Ubuntu, I have a task that I was using for Centos was: capture("env |...
0 votes
1 answer
2k 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: ...
1 vote
1 answer
252 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
0 answers
4k 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 ...
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 ...
0 votes
0 answers
1k views

Crontab says command not found [duplicate]

I just setup a cron to restart 'Thin' application server for my Ruby application every hour. I have tried every method but the cron is giving error saying command not found. My script looks something ...
0 votes
3 answers
2k views

Postgres gem won't install on 12.10

I am trying to get Ruby on Rails working on my computer but the pg gem keeps failing. I have found a lot of other questions saying that you just need to use the libpq-dev package from apt and that ...
1 vote
2 answers
2k views

Which ruby version is included in Ubuntu 16.04?

which ruby version is included in Ubuntu 16.04? I couldn't check because I'm running a different OS at work.
0 votes
0 answers
493 views

No such directory: failed to create my first app in rails

I have tried installing the gem bundler, and all related sorts, but this can't go. Is it because i want to create my new app in the home directory? Is it a must that it should be created in the system ...
0 votes
1 answer
204 views

First Time Ruby Jekyll Bundler Setup on 16.04 - multiple bundlers installed

I'm trying to get up and running with ruby and the jekyll gem on my fresh instance of Ubuntu 16.04. usernamehere@usernamehere-hp:~/workspace/username.github.io$ ls -la /usr/local/bin/bundler -...
-1 votes
1 answer
2k views

Regex to find word 1 or word 2 but not word 3

I have the following message: Apr 12 12:48:02 poe true: sudo: nagios : command not allowed ; TTY=unknown ; PWD=/var/log/nagios; How do I make a regex that looks for the word Sudo or Command but ...
3 votes
1 answer
17k views

How to auto load source file on bash startup?

I recently installed Ruby Version Manager (RVM) to make use of the command called compass. Initially it was working find on installation, but now I get a missing error: The program 'compass' can be ...
2 votes
1 answer
1k views

How do I install the Travis Client on Ubuntu 16.04?

Im'm trying to install this: Travis client by doing sudo gem install travis but I get this error: ERROR: Error installing travis: ERROR: Failed to build gem native extension. current ...
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 ...
3 votes
1 answer
5k views

can't bundle install json gem in ubuntu

I have installed ruby on rails using rvm . I am trying to bundle install an older project that I had on a former pc but I get the following error when I run the bundle install command: Installing ...
11 votes
4 answers
42k views

How to set default to ruby 2.1.2?

I have ruby 1.9.3 and 2.1.2. When I open the terminal by default it uses ruby 1.9.3 but I want to use ruby 2.1.2. How can I set ruby 2.1.2 to be default?
3 votes
3 answers
2k views

How to programatically manipulate application windows?

Anyone know a library, preferably for ruby or python, that will let you access a list of open applications and let you manipulate them? All I really want to be able to do is change their geometry and ...
2 votes
1 answer
6k views

Unable to install mysql2

I tried to install mysql using below command gem install mysql2 -v '0.3.18' However I am getting the below error Fetching: mysql2-0.3.18.gem (100%) Building native extensions. This could ...
8 votes
2 answers
25k views

How would you install OpenSSL package for Ruby?

I have trouble finding the package for this software. I built and installed from the packages found here, but it's still not working properly with rvm and gem (log is located here). How would you ...
4 votes
1 answer
4k views

How to install postgressql-server

For ruby development on Heroku I need to use postgresql, but when I do bundle install I see this message: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-...
0 votes
2 answers
2k views

Why I obtain these error messages when I try to install gem bundler on Ubuntu? (Could not create Makefile)

I am not a Ruby developer and I am finding many difficult to install Redmine (that is developed in Ruby) on an Ububuntu 16.04 server. I am following this official tutorial: http://www.redmine.org/...
1 vote
1 answer
3k views

Ruby gems install error openssl with package installed

I downloaded the ruby source and ran the usual .configure make sudo make install and it installed fine and ruby -v yields the expected ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] ...
2 votes
1 answer
1k views

Why can't I build Ruby code from Sublime Text 3 when I launch it from Ubuntu Dash vs Ubuntu Terminal

ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] which ruby: /home/iuser/.rbenv/shims/ruby rails -v: Rails 4.2.3 subl -v: Sublime Text Build 3126 Ubuntu: Ubuntu 16.04.1 LTS It doesn'...
0 votes
2 answers
2k views

Can install Rails on Ubuntu 14.04 with Ruby 2.1.3

I am using Ubuntu 14.04. I wanted to use the latest ruby (version 2.1.3), so I installed it with RVM. rvm install ruby --latest rvm use ruby --latest --default But when I try to install Rails, i get ...
0 votes
1 answer
485 views

How to install Rails 4.2.0,Ruby 2.1.5 and PostgreSQL In Ubuntu 14.04

I need one help.I need to install Rails 4.2.0,ruby 2.1.5 and PostgreSQL database In my ubuntu server. I need the proper steps to install all those in my server.I am using Ubuntu 14.04. Please help me.
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'...
3 votes
2 answers
2k views

Installing Jekyll with gem

I'm using Ubuntu 12.04. I am trying to install Jekyll through gem with sudo gem install jekyll but I get this error at some point of the installation: ERROR: While generating documentation for ...
0 votes
1 answer
3k views

The program 'gem' is currently not installed, but I installed it with \curl -L https://get.rvm.io | bash -s stable --ruby

I'm running Ubuntu 16.04, and trying to set up my environment for Ruby on Rails 5 using this guide: http://railsapps.github.io/installrubyonrails-ubuntu.html. As far as I can tell, the program 'gem' ...
3 votes
0 answers
927 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 ...
1 vote
1 answer
368 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 ...
1 vote
1 answer
379 views

How do I install an Xbee? I am trying to do it with ruby

Download the ruby-xbee tarball from Here. Extracted the bundle into its permanent directory: cd to /ruby*pcc I Did $ ln -s ruby-serial-port-0.6-linux-intel ruby-serialport-0.6 $ ruby extconf.rb ...
8 votes
2 answers
29k views

OpenSSL installed, but Ruby unable to require it

I'm trying to setup github-pages on my Ubuntu laptop, and following the guide provided by Github I have to install the bundler package; giving the command ~$ gem install bundler returns me this ...
1 vote
1 answer
2k views

GitLab Omnibus Ubuntu 12.04

I am trying to build GitLab from the Omnibus project in my Ubuntu 12.04 64-bit following this link After issuing sudo apt-get install ruby ruby-bundler I downloaded the source from here and after ...
0 votes
1 answer
1k views

Why can't I install all packages starting with `ruby-*` pattern?

I run the command to install all about ruby : sudo apt-get install ruby-* .But it shows unmet dependencies / broken packages. See Terminal ScreenShot Here Now tell me how to install all the packages ...
0 votes
1 answer
389 views

Ruby on Rails on ubuntu 13.04 using rvm

I am trying to get WEBrick to work Output of rvm gemset list gemsets for ruby-1.8.7-p374 (found in /home/simon/.rvm/gems/ruby-1.8.7-p374) (default) global => simple_cms my gem list gem ...
4 votes
0 answers
659 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: ...
1 vote
1 answer
1k views

How to access Ruby on Rails Assets from a Host Machine

I am running a Ruby on Rails server on an Ubuntu VirtualBox guest machine. I can access the local server from my host machine by setting the Ubuntu network adapter to bridged. My app's hmtl is ...
4 votes
2 answers
6k views

Can't install rvm

I want to install RVM: ubuntu@ext:~$ rvm The program 'rvm' is currently not installed. You can install it by typing: sudo apt-get install ruby-rvm ubuntu@ext:~$ sudo apt-get install ruby-rvm Reading ...

1 2 3
4
5
10