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
226 views

Errors when I open terminal after trying to install Metasploit

I tried installing Metasploit on Ubuntu 16, using this webpage. Following the instructions, I got the following error sudo: exec: command not found While downloading Ruby rbenv, I forgot to do the ...
Hermit's user avatar
  • 28
10 votes
2 answers
2k views

Jekyll broken after upgrading Ubuntu/Ruby

I use Jekyll on my Ubuntu laptop. It worked with 15.10. I've upgraded to 16.04 and I got this error message : $ jekyll -v bash: /usr/local/bin/jekyll : /usr/bin/ruby2.1 : bad interpreter: no file or ...
Samuel's user avatar
  • 223
1 vote
2 answers
7k views

Cant install Ruby on Ubuntu 16.04 LTS

Can't install Ruby via sudo apt-get install ruby-full The following packages have unmet dependencies : Ruby, ruby-dev, libtcltk-ruby, ri E: Unable to correct problems, you have held broken ...
Zhirayr's user avatar
  • 125
-1 votes
1 answer
792 views

syntax error on Ruby On Rails installation [closed]

I am trying to install ruby on rails on my me elementary OS 0.3.2 Freya. and now i am seeing the following errors on my terminal. even if when i restart the terminal the errors shows on the first ...
smehsan's user avatar
  • 748
2 votes
1 answer
693 views

How to install QtRuby + Qt4 on Ubuntu 14?

I wish to program in ruby in QtCreator. If I'm right, I need to install QtRuby + Qt4, but with no success on Ubuntu 14. How to do? Thanks!
user6333552's user avatar
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 ...
Jasper Citi's user avatar
6 votes
1 answer
8k views

Can't install json 1.8.1

I'm trying to install json gem using ruby 2.2.3 (I've tried with other oversions), and I always get the same error: Fetching: json-1.8.1.gem (100%) Building native extensions. This could take a ...
mishelashala's user avatar
2 votes
1 answer
670 views

Jekyll not working on 16.04

My Google search showed that this question was asked here and then deleted by the asker, so I'm not sure if I'm asking something stupidly obvious. I'm trying to start a jekyll project after upgrading ...
Pterosaur's user avatar
  • 215
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
0 votes
1 answer
3k views

Trouble removing ruby 2.3.0p0 from Ubuntu

I need to install ruby via rvm. I already have it installed via packet manager though, and now I want to remove that version. So far so good, removing stuff with apt-get remove isn't hard. BUT after I ...
eRodY's user avatar
  • 11
0 votes
3 answers
2k views

New to Ubuntu + Ruby Development + selenium

I am an automation engineer, I've been using Java bindings with selenium web-driver on a windows machine for development of automated tests, however, I am switching to Ruby for developing automated ...
Speedychuck's user avatar
0 votes
1 answer
3k views

AH00112: Warning: DocumentRoot [/home/rails/testapp/public] does not exist

I followed this link https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-passenger-and-apache-on-ubuntu-14-04 to install ruby on rails with passenger on ubuntu 14.04 and I ...
pearlygurlee's user avatar
0 votes
1 answer
625 views

Redmine installation on 14.04

I have installed Ubuntu 14.04 server and want to install fresh Redmine. I faced several problems while installing, and still no LUCK. I found some documentations regarding installation but they are ...
krishna's user avatar
  • 145
0 votes
1 answer
6k views

can't install any new packages

I have been trying to install ruby on rails and I run into failures in all directions. I finally went into the package manager and right away it detected an issue and asked me if I wanted to resolve ...
Christian Bongiorno's user avatar
1 vote
1 answer
112 views

VirtualBox: Share whole Ubuntu drive on Windows (Host)

I currently have Ubuntu in VirtualBox. Currently I do web development in the Ubuntu since its easier to run Ruby on Rails in Linux then its on windows. But I had the idea to share the whole ubuntu ...
Sharpless512's user avatar
-1 votes
2 answers
209 views

Trying to install Rails on Ruby and getting bash error during installation

I get this error when I run \curl -L https://get.rvm.io | bash -s stable: Command 'bash' is available in '/bin/bash' The command could not be located because '/bin' is not included in the PATH ...
LetsDoIt's user avatar
0 votes
1 answer
625 views

Just installed Ubuntu/Ruby, cant create rails project

so I've just started using Ubuntu a few days ago, started trying to get an IDE working for Ruby on Rails developement, downloaded/installed everything from scratch. I found out the first version of ...
HappyFriendshipMan's user avatar
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
0 votes
3 answers
1k views

Java Process takes more memory and Machine stop working

I am new to Linux, I am using Ubuntu 14.04LTS, But suddenly my machine stop working.I run $ free -m and get results total used free shared buffers cached Mem: 7897 ...
Avijit Majhi's user avatar
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
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
2 votes
1 answer
334 views

Keyboard shortcut for ruby script

I have some problem here when I'm trying to make a keyboard shortcut for my ruby script. So the first step I've do for it was to make a alias and add that command for alias on file .bashrc alias ...
Vildnex's user avatar
  • 331
0 votes
1 answer
745 views

How do I symlink this file?

I'm really confused. I'm trying to install rvm ( Ruby's version manager ) but keep getting an error message. Something about how /etc/pki/tls/certs/ca-bundle.crt not found. I believe the security ...
Douglas's user avatar
1 vote
1 answer
696 views

'rake aborted!' Stuck on gitimmersion tutorial [closed]

I am going through the Git Immersion tutorial on Lab 21 here: http://gitimmersion.com/lab_21.html After I had installed Rake and created the 'Rakefile' with the contents: #!/usr/bin/ruby -wKU ...
Friendly-Robot's user avatar
-1 votes
1 answer
25 views

can i copy ruby distribution from utopic to vivid?

I am shifting to vivid from utopic. I have a working ruby environment installed with rvm of size around 1.7 GB. Is there a way i can use this(or some part of it) in my newly installed vivid? For ...
pauli's user avatar
  • 109
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 ...
j0h's user avatar
  • 14.8k
0 votes
2 answers
2k views

Getting 'Permission Denied' when running bundler command

I need to install bundler for an application so here's what I'm doing (instructions from the application documentation directly): mkdir ~/.gems export GEM_HOME=~/.gems gem install bundler -v 1.10.3 ...
user721015's user avatar
1 vote
0 answers
125 views

I want to use Ruby built from source, and also use Gvim [duplicate]

vim-gtk and vim-gnome both have libruby1.9.1 as a package dependency (in trusty), which in turn depends on ruby1.9.1 and I fear doing sudo apt-get install vim-gtk will cause commands such as irb and ...
n8chz's user avatar
  • 121
0 votes
2 answers
1k views

Removing unwanted rows from csv file having more than 10 patterns to be matched

I have a CSV file which has 2 columns and i have to match values in a single in row in both the column , if it matches the criteria we have to keep the column otherwise delete the entire row. Below is ...
huzefa biyawarwala'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
0 votes
1 answer
691 views

Problems on setting up rails server (4.2.4) on Ubuntu 14.04 LTS

Noob question here. I've been trying to install Rails 4.2.4 on my Ubuntu 14.04 LTS. I think I achieved it using RVM, but I'm not sure if everything needed is installed, because when I try to use the ...
Sara's user avatar
  • 1
17 votes
2 answers
59k views

Install ruby 2.2.3 via apt

How to install Ruby 2.2.3 via apt on Ubuntu Wily? I tried sudo apt-get install ruby2.2-dev and sudo apt-get install ruby2.2 (What's the difference, btw) and both commands seem to have installed quite ...
Michiel de Mare's user avatar
1 vote
1 answer
2k views

Gem Debugger won't install with bundle install

I have installed ruby on rails using rvm. I am using 2.2.0 ruby and 4.2.0 Rails. I tried running bundle install on an older project that I developed on a former pc but I get : Gem::Ext::BuildError: ...
Lucian Tarna's user avatar
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 ...
Lucian Tarna's user avatar
0 votes
1 answer
1k views

gem install bundler error [closed]

I am newbie here. When I tried to install gem install bundler, it gave me ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository ERROR: While executing gem ... (Gem::RemoteFetcher::...
Mohamed Hadhoud's user avatar
0 votes
1 answer
1k views

How do I use the latest Sass and Compass?

I've had problems with multiple ruby versions installed, couldn't install animation gem properly. The latest Compass has it included so it might solve it for me. I don't need ruby for anything else so ...
prkos's user avatar
  • 103
2 votes
1 answer
3k views

Getting error sudo:source: command not found on Ubuntu

i need to install ruby version 2.1.5 and Rails version 4.2.0 on my Ubuntu server.Here i am getting error which is given below. Error: sudo:source: command not I followed the below steps for ...
satya's user avatar
  • 167
0 votes
1 answer
64 views

Test my custom created DNS?

I used VPS Ubuntu 14.04 (x64) to install test environment for my Ruby on Rails development. And I succeed with installing and configuring. Now I also configured DNS on that VPS server, everything ...
Nezir's user avatar
  • 211
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
2 answers
9k views

bin/bash: ruby command not found. Ruby not in sudo path

I can't seem to run any code on ruby with any text editor. This error is returned when code is run /bin/bash: ruby: command not found [Finished in 0.0s with exit code 127] [shell_cmd: ruby "/home/...
golymer's user avatar
  • 11
2 votes
2 answers
942 views

installing pdfbeads fails

I am trying to install the ruby gem pdfbeads via sudo gem install pdfbeads All i get is an error message which looks cryptic to me an searching for it does not result in useful posts... Building ...
mhwh's user avatar
  • 143
3 votes
1 answer
4k views

run a ruby program on startup

I have written a small webSocket server using ruby. I run it from the command line using the command: ruby websocket_server.rb This will bring the server up and will work till I keep my ssh ...
Lelio Faieta's user avatar
1 vote
1 answer
1k views

Install ruby 2.0 under Ubuntu 15.04 box

I have a problem when trying to install ruby 2.0 under Ubuntu 15.04 box I have add ppa:brightbox/ruby-ng with bellow command: sudo apt-add-repository ppa:brightbox/ruby-ng And I get following error ...
George's user avatar
  • 169
0 votes
1 answer
3k views

How to install Shoes GUI framework for Ruby? .install file

I want to install Shoes framework for Ruby but when I went to their website and downloaded it all I got was a file with .install at the end. How can I install it?
kushtrimh's user avatar
  • 277
1 vote
1 answer
67 views

I'm trying to install rails and I think I just broke my Ubuntu installation, any help?

I am following this guide to install ruby on rails to work with Apache and Passenger. I have followed it step for step and done every command in verbatim. Soon after running sudo nano /etc/apt/...
Zach Landry's user avatar
1 vote
1 answer
56 views

Cannot get a meaningful response to the command 'gem list '

I know I have gems installed because the response to the command $ gem environment RUBYGEMS VERSION: 1.8.23 OK, now I want to know which gems are installed, so I type: $ gem list *** LOCAL GEMS **...
LateNiteOwl's user avatar
0 votes
1 answer
409 views

How do I run programs in Ubuntu?

More precisely, what does Ubuntu use instead of Windows' .exe files? For instance, in my last question I asked about Ruby 2.2.2. I want to know which file is the actual Ruby program and all I have is ...
Jorin Gedamke's user avatar
0 votes
1 answer
339 views

Ruby 2.2.2 extracted but not installed?

I read that the Software Center doesn't always have the latest version of Ruby, so I went ahead and downloaded it from the Ruby website. The problem is, I'm new to Linux so I don't know if it's ...
Jorin Gedamke's user avatar
1 vote
1 answer
2k views

Can't create username for PostgreSQL

After installing rails and trying to install PostgreSQL in the terminal (following these instructions https://www.digitalocean.com/community/tutorials/how-to-use-postgresql-with-your-ruby-on-rails-...
not fell's user avatar
0 votes
1 answer
376 views

mySql not working after upgrading to 15.04

After upgrading from 14.10 to 15.04 when i start rails server it gives this error: arslion@arslion-Lenovo-B570e:~$ rails s /home/arslion/.rvm/gems/ruby-2.0.0-p481/gems/mysql2-0.3.18/lib/mysql2.rb:31:...
arslion's user avatar
  • 220

1 2 3
4
5
10