Questions tagged [ruby]

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

Filter by
Sorted by
Tagged with
19 votes
5 answers
39k 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 ...
LBRapid's user avatar
  • 323
39 votes
8 answers
62k views

~/.profile is not loaded when using SSH (Ubuntu)

Edited to reflect the problem I really wanted to solve: I need to set up my ruby environment so I can deploy via Capistrano. export PATH=$HOME/.rbenv/bin:$PATH eval "$(rbenv init -)" I put these in ...
Charles R's user avatar
  • 521
8 votes
3 answers
8k views

How can I pipe the output of *all* entered shell commands into another? (e.g. pipe everything into 'lolcat')

Good Afternoon, (OS X user) I am specifically trying to pipe the output of every shell command I type into the ruby gem 'lolcat' (which makes the output to the terminal rainbow colored). Is there a ...
user1442303's user avatar
96 votes
11 answers
63k views

brew upgrade broke Vim on OS X (dyld: Library not loaded)

I've not run brew update && brew upgrade for a long time. I just did a massive upgrade which turned out to broke my Vim. This is what I got after running vim: dyld: Library not loaded: /usr/...
Mateusz Piotrowski's user avatar
56 votes
6 answers
203k 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 ...
Jason Shultz's user avatar
16 votes
1 answer
76k views

How to completely remove Ruby, Ruby gems on Mac OS X 10.6.4

Most rubyists might be shocked when they'll read this, but I'd like to know if it's possible to completely remove the Ruby framework as well as all the tools and gems that ship with Mac OS X 10.6.4. ...
just_a_dude's user avatar
15 votes
2 answers
15k views

How to install the latest version of Ruby and Ruby on Rails in Ubuntu?

I installed Ruby with the command apt-get install ruby1.9.1, but when I enter ruby in the console, nothing happens. I have to use the command ruby1.9.1-v ruby 1.9.2p0 (2010-08-18 revision 29036) [...
BILL's user avatar
  • 265
14 votes
2 answers
3k views

Install packages through apt-get or gem?

If a package is available both through apt-get and gem, which one should I choose? I'm on Ubuntu and I don't know if I should install rake through apt-get or gem. I use both apt-get and gem packages ...
ajsie's user avatar
  • 1,889
9 votes
1 answer
6k views

Why can't nginx access puma socket on CentOS 7?

So I have a Ruby on Rails app in /var/www/ owned by nginx with 755 permissions. Said app is intended to be deployed via puma. Like so: rvmsudo -u nginx bundle exec puma -e production -d -b unix:///...
Pori's user avatar
  • 373
8 votes
1 answer
10k views

Using NppExec and Ruby to script a new macro feature for Notepad++

I work in U.S. and Europe, and switching between month/day (US) and day/month (EU) formats leads to ambiguities when looking through logs or notes (e.g. is 7/8/12 July 8th or 7th August?). I'd like ...
Assad Ebrahim's user avatar
4 votes
3 answers
10k views

Pass cmd.exe arguments via a shortcut?

I'd like to create a shortcut to run cmd at a particular location with a few commands. I'm hoping from there I can work out how to make it a right click option to "Run my cmd commands here..." I've ...
firefusion's user avatar
  • 2,033
3 votes
1 answer
402 views

what does STOP service do in Windows?

I start my web server as web service on Windows XP. How it was done is described here My web server is coded in ruby/sinatra and I start it C:\Ruby187\bin\ruby c:\web\web2.rb. That code the service ...
Radek's user avatar
  • 3,094
2 votes
2 answers
1k views

Create a local DNS TLD for development

I do a lot of web dev, mainly RoR and PHP, I've got a VMs which holds my dev environments and handling multiple clients on them is a pain. With PHP you just create a subdir, but with RoR it's a little ...
Jeremy David's user avatar
2 votes
1 answer
1k views

install gem for older ruby 1.8 on Mac OS X 10.9 Maverics

I installed osx-trash using the answer here but got the error: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot ...
simbo1905's user avatar
  • 157
2 votes
1 answer
471 views

Can't find sqlite3 in this ruby/rails version using rvm

I installed rvm and am using 1.9.2 with rails 3.05. I was able to create a new application but once I moved into the directory and tried to start the server ("rails s"), I got this error message ...
Michael's user avatar
  • 645
2 votes
2 answers
3k views

Why is this cronjob not working?

I have a ruby script in ~/custom_scripts/get_all_products.rb. I want it to run every night at 04:00. Here's what the cronjob in crontab -e looks like: MAILTO="<email>" 0 4 * * * ruby ~/...
narzero's user avatar
  • 419
1 vote
1 answer
3k 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 ...
Kirk Strobeck's user avatar
1 vote
1 answer
1k views

How to run script as a Windows XP service?

I want to run my ruby web server as a Windows XP service. Somebody can advice how to do that? I changed (removed the word ruby) the title so more people can find the answer. It will work for any ...
Radek's user avatar
  • 3,094
1 vote
2 answers
5k views

Reinstall Ruby framework on OS X Yosemite

I installed home brew on Yosemite and it messed up the System built-in framework. I couldn't use the Ruby gems already installed or the new ones installed after Homebrew. Instead of fixing all the ...
rraallvv's user avatar
  • 365
0 votes
1 answer
429 views

How can I adjust the ruby text height?

Thanks to @phuclv who answered the question How to type characters for phonetic guide over a word in Microsoft Word? to use ruby text to solve my issue. However the ruby the text height and offset ...
Narayanan's user avatar
  • 855