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

learn more… | top users | synonyms

3
votes
1answer
132 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 ...
3
votes
0answers
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 ...
3
votes
0answers
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 ...
3
votes
0answers
2k views

Failed to install a ruby gem, eventmachine

I attempts to run a script that prompt Could not find gem 'eventmachine (= 0.12.10) ruby' in the gems available on this machine. Run bundle install to install missing gems. Then I runs ...
2
votes
0answers
45 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 ...
2
votes
0answers
63 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 ...
2
votes
0answers
150 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 ...
1
vote
0answers
70 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 : ...
1
vote
0answers
57 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 ...
1
vote
0answers
1k 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 ...
1
vote
0answers
20 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 ...
1
vote
0answers
54 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 ...
1
vote
0answers
179 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 ...
1
vote
0answers
334 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 ...
1
vote
0answers
165 views

Dotdeb alternatives for Ruby or Python?

I really like Dotdeb, but it doesn't include packages for Ruby and Python. While I could build my own repository, I wouldn't want to reinvent the wheel (and then be forced to drive). Are there any ...
0
votes
0answers
18 views

installing for Chromebook converted to Linux?

I just got Linux on my Chromebook. for now, Chromebook is my only option to use Linux as my desktop is out of commission. I started using The Odin Project, and I need a bunch of things on my ...
0
votes
0answers
15 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
19 views

Any harm of doing 'Run command as login shell'

I've installed RVM and everytime I execute rvm use <version>, terminal complains me that RVM is not a function, selecting rubies with 'rvm use ...' will not work. You need to change ...
0
votes
0answers
37 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 ...
0
votes
0answers
18 views

RailsEnv misspelled or defined by a module not included in the server configuration

I am following this link http://blog.redpanthers.co/2015/10/how-to-deploy-a-rails-app-with-passenger-and-apache-in-ubuntu-14-04/ in order to install ruby on rails with rvm and passenger. I was fine ...
0
votes
0answers
28 views

Cannot load such file bcrypt_ext

While using metasploit i'm getting this issue /.rvm/gems/ruby-2.1.8@metasploit-framework/gems/bcrypt-3.1.11/lib/bcrypt.rb:16:in `require': incompatible library version - ...
0
votes
0answers
24 views

cannot load such file — rspec/expectations (LoadError)

I got this when I run rspec spec its a sample project, and its very simple too but I couldnt found an answer for this case, I think it's an error in installation. Here is my tree and my files. Thanks ...
0
votes
0answers
19 views

Cannot Install Ruby1.9.1

I've added some ppa for Kali Linux tools in Ubuntu by the help of this answer. But now I cannot install ruby1.9.1 to my machine. Output is as below: Reading package lists... Done Building dependency ...
0
votes
0answers
22 views

Unmet ruby dependency, but ruby installed

In an Ubuntu 14.04 server, I needed a recent version of ruby-passenger. The version I need is not available in the repositories yet (4.0.53-1). I obtained a deb and trying installing it with dpkg. ...
0
votes
0answers
10 views

Cannot find my software in “Open With” list

On Ubuntu, I would like to open a xxx.shoes file using Ruby Shoes, but it is not displayed in the "Open with" list. I added the following file: /usr/share/applications/shoes.desktop more ...
0
votes
0answers
12 views

VPS with multiple hosts postfix configuration

a VPS running Ubuntu 14.04 has postfix installed for outgoing e-mail. File /etc/postfix/main.cf has the myhostname value set to one specific MX record. This VPS is intended to host multiple Rails ...
0
votes
0answers
49 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 ...
0
votes
0answers
38 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 ...
0
votes
0answers
25 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 ...
0
votes
0answers
171 views

Ruby/RVM with @global gem - bundle run fails with `require': cannot load such file — bundler (LoadError)

I study linux for 1 month. While I tried to make all steps from Migrating from MySQL to Postgres on Heroku I've got an error I could not handle. When I try to install the mysqltopostgres gem from ...
0
votes
0answers
95 views

two postgres have been installed, remove both

I have previously installed postgres 9.1 by How To Use PostgreSQL with Your Ruby on Rails Application on Ubuntu 14.04 It was installed correctly and my app was working fine, but today its not working ...
0
votes
0answers
34 views

'rake aborted!' Stuck on gitimmersion tutorial

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 task ...
0
votes
0answers
71 views

Install chruby and ruby-install so that they update

I want to install chruby and ruby-install to manage my ruby installs. However, it seems that they cannot be obtained via apt-get nor from a .deb file. Is there a way to install these so that they ...
0
votes
0answers
60 views

Vagrantfile print statements

I have this in my vagrant file, how can I get it to print only when someone does 'vagrant up', as it is now it prints out for every vagrant command. Print actual system string for preview p ...
0
votes
0answers
19 views

Tk with Ruby v2.0 on Ubuntu with RVM

Is there anyway I can get Tk to work on Ubuntu 14.04 when using rvm? I've tried every method I've found online to no avail.
0
votes
0answers
202 views

Trouble installing Ruby

I run - sudo gem install pg -- --with-pg-config=/opt/metasploit/postgresql/bin/pg_config Which results Building native extensions with: ...
0
votes
0answers
51 views

Simplest Way to do a Local Home Rails Server on Ubuntu 14.04 without Subscription Services

I've been browsing many tutorials with regards to deploying a rails app unto a server; however , many of these articles require something like "Digital Ocean" VM's to run. I just want a very simple ...
0
votes
0answers
21 views

looking for a nagios or ruby expert to help me get away from bad bash practices

Granted the problem: I want to; mount, copy files, and unmount; automagically when drive is connected, I see the following 2 options (i'm sure there are more concise ways I'm not aware of).. maybe ...
0
votes
0answers
46 views

ERROR with gem for a ruby tool?

I am trying to install a tool script called bio-polyploid-tools and I am getting this error after command sudo gem install bio-polyploid-tools sammanmahmoud@samman[bioruby-polyploid-tools-master] ...
0
votes
0answers
110 views

I can't run Ruby script in Aptana Studio 3

I can't run my script in Aptana Studio 3. It is simple Ruby Srcipt like : BEGIN{ puts "And my adventure with Ruby already started." } puts "Hello World!" END{ puts "Its is the end of this GemUno ...
0
votes
0answers
147 views

Redmine not running on apache2 as rails app , just show 'Index Of' header and library content.

I trying to run redmine3.04 on apache2. My OS is ubuntu 12.04 - opensource. the app run correctly locally : /usr/share/redmine$ bundle exec rails server webrick -e production output: => Booting ...
0
votes
0answers
100 views

Start Rails Application on Boot Ubuntu

I am trying to make my application Ruby on Rails (OpenProject) starting with the system boot, but to test the script as root, returns me the error: /usr/bin/env:ruby: No such file or directory. My ...
0
votes
0answers
107 views

Problems installing Ruby 1.9.1 on Ubuntu 12.04

I am installing Ruby 1.9.1 on Ubuntu 12.04 and it seems to install an old version of gem; I don't understand why or how to fix this. This is what I do: $ sudo apt-get install ruby1.9.1 $ ruby ...
0
votes
0answers
189 views

Gem command to install ruby doesn't work

Trying to install a Ruby on Rails environment, but every gem command such as gem install rails results in an output of ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError) no ...
0
votes
0answers
134 views

unable to run metasploit

I installed metasploit on my system using the .run file from the official site. I also installed the dependencies using apt-get. Now when I type msfpro in the terminal and hit enter, it displays the ...
0
votes
0answers
61 views

Ruby broken completely

I want to install jekyll 1.0 but it seems my system is broken somehow. If I type ruby: ruby The program 'ruby' can be found in the following packages: * ruby1.8 * ruby1.9.1 Try: sudo apt-get ...
0
votes
0answers
91 views

Trouble getting nginx, unicorn and ruby on rails application working. Internal Error with no log ouput

I am having some issues getting my rails application up and running with nginx and unicorn. None of the different parts are printing out an error: app/log/unicorn.log app/log/production.log ...
0
votes
0answers
116 views

swap does not work in 14.04

I use vagrant to install my dev VM. The VM configured config.vm.box = "ubuntu/trusty64" config.vm.provider "virtualbox" do |vb| vb.memory = "256" end I follow How do I configure swappiness? to ...
0
votes
0answers
606 views

Installing OpenCV 2.4.10 in Ubuntu 14.10

I'm trying to install the Opencv ruby gem. I learned from http://stackoverflow.com/questions/20833485/not-able-to-install-ruby-opencv-gem that the gem requires the previous release of Opencv. I've ...