Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.

learn more… | top users | synonyms

1
vote
1answer
133 views
+100

Upgraded to Mavericks, C compiler cannot create executables

Upgrading to Mavericks, I appear to have broken my Ruby on Rails development environment, which requires ruby 1.9.3 because of various gem dependencies. Within that app directory, I'm trying to ...
2
votes
1answer
208 views

Can I install some ruby gem on a standard OS X user?

I have a Admin user for serious stuff and a Standard user for daily tasks, including front-end development. On the Admin user, I can install Brew, RVM, Middleman etc. But on the Stardard user, where I ...
0
votes
0answers
5 views

Redmine reports intermittent Internal Error

I've been using Redmine/Apache for a few months now. Occasionally a page will not load, and instead I will get Internal Error 500. Refreshing generally fixes this. When I look in the log file on the ...
0
votes
0answers
3 views

Order of executing Chef recipes in a single cookbook [migrated]

I am just getting lost with this hair pulling issue in Chef. I have a single cookbook with two recipes in it. I call one as recipe/install.rb and the other recipe/configure.rb. In the install.rb I ...
0
votes
0answers
16 views

RubyRep Setup Causes an Error “ Exception caught: Mysql::Error: query: not connected: SHOW TABLES”

I've spent the entire day trying to get RubyRep going on a CentOS machine, and now I'm stuck on the error "Exception caught: Mysql::Error: query: not connected: SHOW TABLES" for which I couldn't find ...
0
votes
0answers
4 views

Ruby ri output not coloured in iTerm 2

When I run Ruby ri in an iTerm 2 terminal window, the output is not coloured and I don't know why. Other programs such as Vim work with colour properly. Running ri -f ansi Array.sort results in ...
1
vote
1answer
70 views

Installing Ruby with RVM in Ubuntu 14.04

I installed RVM using the following command \curl -L https://get.rvm.io | bash -s stable Then I restarted the terminal and executed this commands source ~/.rvm/scripts/rvm rvm requirements rvm ...
3
votes
1answer
64 views

How to execute Ruby scripts on Windows 7 with minimal technical effort?

I've written some Ruby scrappers which will be used by some non-technical guys. I want to make these Ruby scripts executable on Windows with minimal effort. What are my options beside installing Ruby? ...
2
votes
0answers
50 views

How to install development tools when Ruby compiled from source

I have Windows 8, and I need to install Ruby 2.1.2 for a project. I followed these instructions. I unzipped the source into C:\Ruby2.1.2\src\, ran nmake in C:\Ruby2.1.2\build\, and ran nmake install ...
0
votes
0answers
76 views

Removing or Uninstalling Ruby, Rails, and/or Gems from Mac OS X 10.9.4

I had some health issues and was away from my iMac for about 6-8 months. I’m not exactly sure which version of OS X was running when I stopped using it, but I had just installed Rails and was about ...
1
vote
1answer
3k views

How to run bash script from windows using plink on linux

I'm trying to run a simple bat file from windows that will run a bash script on linux machine. The bash script is located on the linux machine. For example: I'm trying to run this bat file from ...
0
votes
0answers
27 views

Gem: Could not find a valid gem in any repository

my problem is that I installed ruby and gem successfully with no errors, but when I go any further, trying to install any gem, it threw an error: ERROR: Could not find a valid gem '<name>' ...
0
votes
0answers
8 views

ruby/rails with powder not showing website

I've run powder default inside my project directory. Which leads to this page when surfing to http://localhost The application's environment settings are in this gist The project has been ...
0
votes
0answers
11 views

Online service to execute Ruby scripts

I am investigating the possibility to start a backup up server remotely in case the main server fails. The idea is: Amazon Route 53 monitors the main server The server fails, which triggers an alarm ...
0
votes
1answer
30 views

How can I set the terminal encoding when running a crontab job?

I have a crontab job which executes a Ruby script on Arch Linux. It works basically, but when I call "googlecl" to post to my blog, it always shows a "safeDecodeError" exception (eg.: ...
0
votes
3answers
2k views

Can't run compass after install

This is a beginner mistake I am sure as I am new to terminal etc. I am trying to get compass working on my mac, I have already installed sass and got it working but when I try to install compass even ...
1
vote
2answers
2k views

RVM is not a function, selecting rubies with 'rvm use …' will not work

I am trying to install Discourse as explained here but the command # Use installed ruby as default rvm use 2.0.0 --default results in this: discourse@ubuntu:~$ rvm use 2.0.0 --default RVM is ...
0
votes
1answer
39 views

Which version of rails should I install with ruby 2.0.0 installed?

Hi I am building a ROR development environment on a new computer with windows 7, now I have Ruby version 2.0.0 and Gems version 2.2.2 installed. Which version of Rails should I install? I saw ...
0
votes
0answers
14 views

Compass watch exits randomly without output or error

I am using the ruby gem compassto preprocess sass/scss to css. Using compass watch path/to/scss I keep precompiling every time the scss-files are updated. But every now and then, the process simply is ...
-2
votes
1answer
30 views

Typical cases where I might use exceptions in programming [closed]

Can someone please help me with something that seems simple but I've never really got my head round. Exceptions! I know how to write an exception but countless code samples with variables foo and bar ...
7
votes
2answers
8k views

How can I fix a Broken Pipe error?

I recently reinstalled RVM (following the instructions at http://rvm.io) after a fresh install of Ubuntu 12.10 when I got an SSD Drive. Now, when I type: type rvm | head -1 I receive the following ...
0
votes
0answers
19 views

How to define new scopes using arbitrary delimiters in Sublime Text 2

TL;DR: How do I bring Ruby-like comment scope to plaintext files for sublime text? I want to customize my plaintext file look in ST2 by allowing comments. So far I have managed to extend the ...
1
vote
1answer
242 views

Issues compiling passenger for apache2 on CentOS

I am trying to install openproject on a CentOS 6.5 (Release 3 from OVH) following this tutorial but with mysql in place of postgresql. I'm nearly done but I can't seem to compile passenger for apache ...
2
votes
1answer
285 views

bash vi mode: What does # -*- mode: ruby -*- # vi: set ft=ruby : mean?

I'm looking through some random code, and at the top of it, it says this: # -*- mode: ruby -*- # vi: set ft=ruby : What does this mean? I know it's a simple question, but I couldn't find it out ...
0
votes
1answer
172 views

OS X `gollum` install not working

I've tried many things to fix this, but i can't get get gollum as a cli utility. gem install gollum completes with ... Building native extensions. This could take a while... ERROR: Error ...
2
votes
1answer
204 views

Problems with git and bundler

I'm trying to set up Gitorious on my Server with this tutorial and having problems over problems with gem/git. After fixing a lot of libs and dependancies, bundler now won't work with git ...
0
votes
0answers
65 views

gitlab-ci Ruby problems

I'm using Ubuntu 14.04 server x64, and I'm trying to set up gitlab-ci via these instructions https://gitlab.com/gitlab-org/gitlab-ci/blob/master/doc/install/installation.md After these steps I get an ...
7
votes
6answers
14k views

When to use Bash and when to use Perl/Python/Ruby?

We are doing all our scripting with Bash so far, but I'm starting to feel a bit silly about it. While we can of course do everything we want with Bash (it's quite powerful), I'm starting to wonder if ...
0
votes
0answers
38 views

Installing dashing using gem causes make errors ubuntu

ive been trying to install dashing made by shopify. But when ever i install using gem make will allways through up errors Heres the error im geting from the gem install errors
0
votes
1answer
56 views

How to stop ruby on Mac OS X

When I run a faulty ruby loop programme, my CPU start running fast as you can see in the following image. I stop abort it by ctrl C but it keep running. Only I can stop it to restart the computer. Is ...
-4
votes
2answers
45 views

Remove last word from whole string [closed]

I have following string 2014-04-29T06-19-20_17368f93ce02e18f278ae22d248e7d0692db3f54d2409_1088x288.mp4.uploaded I want to remove the last .uploaded word from this whole string . How can I do ...
-1
votes
2answers
22 views

Find particular file in particular directory

I want to find the particular file name in particular directory in ruby. I tried the following Dir.glob() file = Dir.glob("/home/prakash/Desktop/*.uploaded") output: ...
0
votes
1answer
34 views

zsh and Ruby print issue

Has anyone come across an issue where Ruby's print method leaves behind a % at the end of the line using zsh? I'm using oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh) with iTerm2. Here is an ...
0
votes
1answer
29 views

How to run a launchd task every weekend once?

I am trying to run a ruby program as a cron. I have figured out how to run the ruby program from a launchd The problem is that I don't know how to say "Run the job once every Sunday". Below is my ...
0
votes
1answer
238 views

Bootstrap - Jekyll: Forbidden - no access permission to `/'

I'm doing a tutorial on Twitter Bootstrap and apparently I need to install Jekyll for this. I've followed the installation procedure, but now I'm stuck getting Jekyll to work. In the terminal (Ubuntu ...
2
votes
1answer
130 views

Redmine install on Apache2/Ubuntu 12.04 EC2 instance

Can someone point me to a guide or guides that explain how to get Redmine running on Ubuntu 12.04? From installing Ruby to setting up Passenger? I've tried a handful of times and have never been ...
0
votes
0answers
120 views

Can't install ruby gems

For some reasons I can't install ruby gems anymore. I run into SSL problems recently and think that could be the problem. After asking google I've changed the gem sources from https:// to http://, but ...
0
votes
0answers
151 views

How to fix this “Errno::EACCES: Permission denied” error while executing a compiler script?

On trying to execute a compiler script from command prompt, like this "C:\sass.bat" "--cache-location" "C:\Users\admin-win8\sass-compiler" "--debug-info" "C:\webapp" "C:\webapp\css\all2.scss" ...
0
votes
0answers
57 views

How can I get Homebrew and MAMP (Pro) to play nicely together?

I am using MAMP Pro for most of my local application development and am trying to install ruby , etc via homebrew however homebrew will give me the following warning: Warning: "config" scripts exist ...
4
votes
2answers
3k views

Why can't I set the default Ruby version in Ubuntu?

I'm trying to set my Ruby version to be 1.9.2, but I can't change it from the system Ruby installation. What am I doing wrong? My terminal output is: $ rvm list rvm rubies => ruby-1.9.2-p180 [ ...
0
votes
1answer
65 views

How do I avoid continual issues with multiple programs (git, ruby, python) and default network drive path problems?

I am not an advanced user. Windows 7 PC. Our network admin has a network drive (H: drive)that installs on restart.....which I do not have access to when not in the office (or is not available via ...
0
votes
1answer
40 views

Multiple web apps on a laptop friendly way

I have a large collection of mini web apps written in Rails and Sinatra which I constantly use. My objective is to host them in a laptop friendly way. Most of deployment articles I have seen are ...
1
vote
1answer
47 views

how to run ruby app on startup

I'm trying to run a sinatra app on startup in linux mint. I'm using the startup applications preferences to add the path to the ruby file that I'm trying to execute: shotgun /path/to/file/file.rb ...
0
votes
1answer
81 views

What should I make out of this message?

I am trying to set up the Ruby on Rails on my Mac OS X Maverick just to check whether I have Rails installed I typed rails --version and I got this as response ...
10
votes
5answers
12k views

Is it possible to reinstall/fix Mac OS X's system ruby without doing a complete OS reinstall?

Is it possible? I'm running into various issues at least once a week since it got corrupted or something, especially with homebrew. If it is possible, but would just be a better idea to start from a ...
0
votes
0answers
31 views

Vagrantfile - is rvm in ~/.rvm/scripts/rvm or ~/.rvm/bin/rvm?

I'm still learning my way around some of the more hidden files in terminal and I was trying to setup a Vagrant box with rails via shell script provisioning, with some help from these links: ...
2
votes
2answers
880 views

Building Vim with rbenv and Command-T on OSX

dyld: lazy symbol binding failed: Symbol not found: _rb_encdb_declare Referenced from: /Users/sa125/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/encdb.bundle Expected in: flat ...
5
votes
4answers
566 views

Installing Homebrew packages without linking

I'd like to install several versions of Ruby (or really any Homebrew package) without linking any of them. Basically, I'd like to treat any formula as keg-only. I can't seem to find a way to do this, ...
0
votes
0answers
55 views

Can gitlab be installed with Cherokee web server?

I've looked all over and can't figure out you could use Cherokee instead of Apache or Nginx for gitlab. I'd rather not run multiple webservers (and imagine that they could conflict anyway). I'm giving ...
0
votes
0answers
126 views

How to install ruby tesseract on linux mint(after following instructions I keep getting a compilation error)

Hi I'm trying to install ruby tesseract on linux mint OS. I've installed tesseract and ruby teseract-ocr but every time I try I require the gem I get this compilation error: CompilationError: compile ...