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

learn more… | top users | synonyms

1
vote
0answers
10 views

I have trouble making a ruby file

I try to make a file but it said 'The file is not valid.' require "./lib/NAME.rb" require "test/unit" class TestNAME < Test::Unit::TestCase def test_sample ...
1
vote
1answer
15 views

How to make a Openbox dockapp with GTK? [closed]

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? ...
0
votes
0answers
13 views

psql autocomplete stopped working suddenly

So I have psql 9.3 installed on my Ubuntu machine. Today I updated my Ruby and Ruby on Rails versions up to date and after that when I wanted to access my database in psql, I typed in as usual: psql ...
0
votes
2answers
32 views

how to set default to ruby 2.1.2

I have ruby 1.9.3 and 2.1.2, by opening the terminal by default it uses ruby 1.9.3 but i wanted to use ruby 2.1.2, can you please help me about., how to set default to ruby 2.1.2..?? Thank you!
-1
votes
2answers
204 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 ...
0
votes
0answers
15 views

How to configure ufw to allow ruby gem installs on 12.04?

I have the following setup: To Action From -- ------ ---- 10022 ALLOW IN Anywhere 80 ALLOW IN ...
0
votes
0answers
16 views

Problems installing Betty in zsh

I tried to install Betty in zsh like that: cd ~ && git clone https://github.com/pickhardt/betty echo "alias betty=\"~/betty/main.rb\"" >> ~/.zshrc source ~/.zshrc I installed her in ...
0
votes
1answer
36 views

jekyll not respecting _config.yml — possible to upgrade?

Ubuntu 14.04 | default ruby 1.9.1 | Jekyll 0.11.2 Jekyll isn't respecting a number of my settings in _config.yml. I'm guessing this is because current Jekyll (gem) version is 2.3.0, but I could be ...
0
votes
0answers
15 views

How to install vagrant if ruby is already installed in the system?

I had installed ruby via rbenv and installed the latest stable version from their repository. I have also configured ruby for all the users. Now, when I am trying to install vagrant via apt-get it ...
1
vote
0answers
46 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 ...
2
votes
1answer
460 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 ...
0
votes
0answers
54 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 ...
0
votes
0answers
269 views

How to solve dependencies for sass,compass and susy on ubuntu 12.04

I use Ubuntu 12.04 and I am trying to install sass, compass and susy and make them work together but have a problem with dependencies over sass. I tried installing all of them with the --pre flag to ...
2
votes
2answers
461 views

How to let redmine update after Ubuntu 14.04 upgrade?

I have not been able to update my redmine. Everytime I ran apt-get upgrade, I'm getting a ruby not found error: Setting up redmine (2.4.2-1) ... dbconfig-common: writing config to ...
0
votes
0answers
27 views

Cannot find libglade2 for ruby

I'm using 12.04 and try to run ruby 1.8 code that calls libglade2 library. In the ruby code: require libglade2 But ruby says it cannot find it (LoadError). I searched for it but could not ...
0
votes
1answer
216 views

Install Ruby, Rails, Gems, Passenger for 1.8.7 on Ubuntu 14.04

I am trying to move a Ruby site to a new host that's running Ubuntu 14.04, but it needs Ruby 1.8.7. I can use rvm to install 1.8.7, but I'm unsure of how to get rails, gems, and passenger working for ...
1
vote
1answer
90 views

Bundle install fatal error

I am migrating my project over to a new machine and I am having trouble running bundle install on the machine I am trying to use. When I run: bundle install I get this error: Unfortunately, a ...
0
votes
2answers
178 views

rvm cant install ruby 2.0.0-p451

Hello I am trying to install ruby 2.0.0-p451 via: rvm install ruby 2.0.0-p451 and I get the following error: Searching for binary rubies, this might take some time. No binary rubies available for: ...
0
votes
1answer
464 views

bundle install permissions denied

Hello I am working on a new ubuntu machine and when I run tasks like: bundle install or rvm get head I get errors like: Downloading https://get.rvm.io bash: line 709: /usr/local/rvm/RELEASE: ...
1
vote
1answer
127 views

Package 'ruby1.8-dev' has no installation candidate [duplicate]

How can I solve this error? sudo apt-get update sudo apt-get install ruby1.8-dev sudo apt-get install mysql-server sudo apt-get install libgemplugin-ruby Currently I am getting this error: sudo ...
1
vote
1answer
41 views

FATAL: role “roelof” does not exist

I did install postgresql according to the manual. But as soon as I do rails server I see the above error. Roelof Edit 1: the sudo -u postgres createuser roelof did the trick but now when I do rake ...
1
vote
1answer
28 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 ...
0
votes
1answer
50 views

Question about compiling from ruby source and upgrade

I have three questions about compiling ruby (and other softwares) from source. Ruby is avaliable to install using apt-get, but I want to learn more about Linux and I want to compile from source. I am ...
1
vote
2answers
57 views

Daemonize process with autostart

I have simple script written in Ruby. I'd like to run as a background task (daemon process or service). What is more want to have control over it so that I can start and stop it. It will be perfect ...
1
vote
1answer
326 views

Ubuntu 12.04, ruby installation

I'm new to Ubuntu and Ruby and I have a problem, which seems to be strange. I needed to install Ubuntu because of problems with Ruby on Windows. I've installed Ruby, v. 1.9.3 (the same as I had on ...
1
vote
1answer
621 views

How to install ruby mine Ubuntu [duplicate]

I have already install RVM. Now I have download RubyMine-6.3.2.tar.gz From here http://www.jetbrains.com/ruby/download/ , But still I am confuse How can I install it on my system. I am using Ubuntu ...
0
votes
1answer
150 views

Installation Of ruby on rails in ubuntu14.04 [duplicate]

I want to know how to install ruby on rails on ubuntu14.04. please help me. which versions are better to install and how to install ruby(version), rubygems, rubygems_update -v (version), mysql_server ...
2
votes
1answer
136 views

error while running ruby application at system startup in ubuntu

I am on Ubuntu 12.04 machine. Have a script file which runs when entered manually in terminal gnome-terminal -e /home/precise/Desktop/cartodb/script.sh The content of script file is cd ...
1
vote
2answers
200 views

installing rvm in 12.04 ubuntu which is on virtualbox

I have tried a lot of methods but cant get this done. I am trying to install rvm on 12.04 ubuntu. There has been many problems in past like this and I have referred as much as I can and still nothing ...
0
votes
1answer
440 views

How to remove Ruby 1.9.1 keeping Ruby 2.0.0?

I have Ruby 2.0.0 installed on Ununtu 14.04 but I can't remove Ruby 1.9.1. I replaced the /usr/bin/ruby symbolic link to ruby2.0.0, but hhen installing new gems I always get pointed to Ruby 1.9.1. ...
0
votes
0answers
113 views

Supervisor + Ruby: Can't get supervisor to run my ruby script

I figure this is a simple issue. Permissions or something that I've overlooked and can't seem to find. However, I've just learned how to use supervisor. Long story short, I run Ubuntu 12.04 server ...
0
votes
0answers
26 views

Ubuntu + Screen: Auto-quit after a set time

I've tried searching for this and get lots of URLs leading to people having issues with their monitor. However my issue is with the screen utility. Background: Ubuntu 12.04 Ruby 2.1.1 I have a ruby ...
0
votes
0answers
30 views

Azure server hangs in live environment

I am a newbie on Ubuntu and have deployed my app on Azure Server large instance.My app is a website(Ruby on Rails) and there is considerable amount of traffic coming to the website. Now Today I got a ...
0
votes
0answers
30 views

The make comand will always say there is a error

I am currently trying to install dashing, but I have this problem that no matter what language make it using it returns error 1 and I can't get rid of it. I have successfully installed it on a laptop ...
0
votes
1answer
201 views

Broken dependencies while installing redmine using apt on fresh 14.04 [duplicate]

On vanilla 14.04: run aptitude chose package redmine see broken conflicting package problem (something with ruby-rack) How can I deal with it?
0
votes
0answers
39 views

Ruby OpenSSL vs Linux openssl

I have a difficulty reconciling Ruby's OpenSSL library with the standard Linux command line openssl. What I'm trying to do here is encrypt the string mysecretstring with the password foobar but first ...
2
votes
2answers
2k views

How to install ruby 1.8.7 back on Ubuntu 14.04 after upgrade?

Upgrading to 14.04 removed my ruby 1.8.7. I need it back. :) Badly. Some old projects still rely on it. Gems seems to be left untouched. How do I install ruby 1.8 back while still keeping Ubuntu ...
8
votes
3answers
10k views

Install ruby 2.0 without ruby-switch?

I'm finding the task of installing ruby 2.0 on the latest Ubuntu 14.04 rather frustrating. I'm aware that I could forgo the packages and install from source - but I'd far rather install a package - ...
2
votes
2answers
294 views

Unable to setup Jekyll In Ubuntu?

after upgrading to 14.04, Ruby was downgraded to 1.8.3 so I tried to upgrade using the following commands. sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev curl -L ...
0
votes
1answer
2k views

rvm /usr/bin/env: ruby no such file error

I've installed rvm + ruby systemwide. which ruby /usr/local/rvm/rubies/ruby-2.1.1/bin/ruby and: /usr/bin/env: ruby: No such file or directory Everything else works fine, putting direct path of ...
0
votes
1answer
706 views

sudo: ruby: command not found after ssh

I'm working with ec2 instances and was trying to execute a ruby script on another instance after ssh to that instance. I have a ruby script which updates configuration files, so i need to run that ...
1
vote
1answer
2k views

How to install rubygems in Ubuntu 12.04 with Ruby 1.9.3

So I used these commands: sudo apt-get install ruby 1.9.3 cd /etc/alternatives sudo ln -sf /usr/bin/ruby1.9.3 ruby from ...
3
votes
1answer
329 views

basic security tools and packages that should be installed on a public facing web server

I'm a newbie in this world and I do not have a lot of knowledge about how security works on Linux systems. I recently created a droplet on DigitalOcean with Ubuntu 13 and I've been setting it up by ...
0
votes
1answer
339 views

Failing to fetch some packages in update

I want to get ruby on rails on ubuntu 12.04 but I'm coming across errors that say I need to to update. I've copied the result of the end of update and not included the earlier part. I can add that ...
3
votes
0answers
1k 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 ...
1
vote
1answer
63 views

How do I launch my script from a launcher?

I have my custom script in Ruby with read permission, which starts with: #!/usr/bin/env ruby I can run that script from the terminal by typing that path. I added a file with .desktop extention to ...
0
votes
1answer
561 views

Why do I need to run “/bin/bash --login”

I have just setup a new Ubuntu 13.10 server with ruby 2.1.1 installed through rvm. The problem is that whenever I switch to the user "rails" (the user I installed ruby and rails with) I have to run ...
0
votes
2answers
237 views

How do I fix 'jekyll: command not found' error permanently?

I've installed Ruby, RVM, and Jekyll following this tutorial and everything works fine after following those steps. My issue is that each time I open a new terminal window and want Jekyll to rebuild ...
0
votes
0answers
89 views

How do I setup an IP to return host unreachable for testing on travis-ci.org?

I am adding tests to the ruby net-ping library and am trying to setup a test IP# that returns host unreachable icmp packets. I am using travis-ci.org and my local host for testing. On my local ...
0
votes
1answer
390 views

Installing Ruby and RubyGems

Hi everybody I would like to know is it possible to install Ruby and RubyGems in apache2. Because i have already a web using apache2 and want to install a Fedena which requires Ruby and RubyGems to ...