Questions tagged [ruby]

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

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. http://www.ruby-lang.org/

Alternative Ruby implementations:

417 questions
96
votes
11 answers

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/local/opt/ruby/lib/libruby.2.3.0.dylib Referenced from:…
Mateusz Piotrowski
  • 4,016
  • 4
  • 28
  • 53
87
votes
3 answers

how can I uninstall using homebrew?

Can I uninstall something I installed via homebrew using homebrew?
user27449
  • 6,770
  • 22
  • 64
  • 86
85
votes
11 answers

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 we shouldn't use a proper scripting language (in…
futlib
  • 1,279
  • 2
  • 11
  • 12
66
votes
13 answers

Open browser in host system from Windows Subsystem for Linux?

I have a ruby script that does contains this line: system("open '#{html_path}'") html_path is the path to a local .html file. So the script opens a browser where I can normally inspect and view this file. In contrast to a MacOS environment, this…
janpio
  • 2,396
  • 8
  • 25
  • 34
52
votes
5 answers

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 error: rvm is a function -bash: type: write error:…
Jason Shultz
  • 705
  • 2
  • 8
  • 10
38
votes
8 answers

~/.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 ~deploy/.profile, but when I ssh in, they aren't…
Charles R
  • 511
  • 1
  • 4
  • 6
37
votes
4 answers

Services that just return your public IP as text

I'm writing a script that does dynamic DNS updates for me, but my server is behind a router, and so I need to use a web service to determine my public IP. So far I've found this one which returns just your plain IP. I was looking around trying to…
Alex Coplan
  • 920
  • 3
  • 9
  • 19
33
votes
4 answers

How to install and use different versions of ruby?

I'm learning rails from different books that use different versions of both ruby and rails. Right now I have ruby 1.87 installed on my Mac OS X Snow Leopard (in /usr/bin), but need to also use ruby 1.9 for a different rails application. Can anyone…
Michael
  • 615
  • 1
  • 11
  • 19
30
votes
3 answers

Is there a git-like file system?

Git stores content uniquely in its repo based on the calculated hash of any file. If my directory has two copies of the same file somewhere inside it, git will only actually store it once. I am wondering if this same concept has been implemented…
Mario
  • 467
  • 4
  • 10
24
votes
3 answers

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, although it seems trivial. I thought there'd be…
also
  • 340
  • 2
  • 6
20
votes
4 answers

I need a simple way to backup files to Amazon glacier from the command line?

I have a CentOS server online with a directory of cPmove files I need to back up to Amazon Glacier. I only have command line access, no GUI. I need a command line client that is relatively easy to use to upload the files. For example I have used…
Ivan -Oats- Storck
  • 453
  • 1
  • 4
  • 10
19
votes
2 answers

Ruby installation issues with RVM

I've been following the directions at http://installrails.com to get my Macbook Air setup for some ruby work but I am running in any issue with RVM. When I try to install Ruby I get the following errors. I also see them when trying to run ruby…
teknetia
  • 193
  • 1
  • 1
  • 5
19
votes
5 answers

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 clean slate, please let me know.
LBRapid
  • 323
  • 1
  • 3
  • 8
16
votes
1 answer

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. Any help would be appreciated. (And explanations…
just_a_dude
  • 475
  • 2
  • 4
  • 11
15
votes
2 answers

Sending mail from the command line

Ok, I've looked far and wide for something to take care of this little email project I have. First, some background: My family has a secret santa every year and I've offered to write a script to randomize who gets gifts for whom. What I'd like to…
Ramy
  • 1,111
  • 3
  • 18
  • 36
1
2 3
27 28