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

learn more… | top users | synonyms

5
votes
4answers
6k 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 ...
0
votes
1answer
145 views

Fix bash_profile to Develop Ruby on Rails Apps

I just installed Ruby and Rails stuff on my machine, and start to learn. But every time I close the Terminal and re-open it, I have to re-type the command . ~/.bash_profile in order to run Rails ...
1
vote
3answers
12k views

Why does the command window always disappear right away on Windows 7?

I hope I am missing something blindingly obvious here, but I can't get things I run from the command window to stay open. That is, 1. I open a new command prompt (windows key + r) + "cmd" 2. I try ...
7
votes
3answers
987 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, ...
2
votes
0answers
318 views

How do I install sass on centos 5.9 with ruby 1.8.7?

I have CentOS 5.9 on an x86_64. I've installed ruby 1.8.7. Whenever I try to install sass I get an Error saying sass requires Ruby version >= 1.8.7. but that's what I have installed. This is the ...
1
vote
0answers
374 views

No Ruby icon on '.rb' files after Ruby installation with RailsInstaller on Win XP. How to associate?

At first time I installed Ruby using RubyInstaller for Windows. And in the process of installation there was a checkbox whether I want to have .rb files to be Ruby files. If I agree all the .rb files ...
2
votes
1answer
243 views

How to make Notepad++ autocomplete with “end” word in Ruby?

Is it possible to set the Notepad++ that it would automaticly put end after I print class instruction: class MyClass // right after I print the first whitespace after 'class' instruction... end // ...
2
votes
1answer
468 views

Single GUI Application raspberrypi

So I want to develop a software that will take over my raspberry pi computer, or just for simplicity's sake, any computer running a lightweight linux OS, to serve a single function. Run a Ruby/Java or ...
9
votes
2answers
16k 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 ...
10
votes
2answers
8k views

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 ...
1
vote
2answers
747 views

I deleted Ruby.Framework how can I get it back? [duplicate]

Possible Duplicate: Is it possible to reinstall/fix Mac OS X’s system ruby without doing a complete OS reinstall? As the title says, I deleted Ruby.Framework how can I get it back? I don't ...
1
vote
1answer
3k views

How to set up a NAT and and a Host Only adapter using Vagrant?

I am trying to make a NAT connection (for yum downloads) and a Host-Only connection (for talking with host) at the same time on my CentOS box when using Vagrant. I CAN do it by SSHing and checking ...
0
votes
1answer
294 views

Autotest can't find growl? (Ruby 1.9.3, Rails 3.2.11)

Haven't seen any other errors like this. Autotest is complaining it can't find Growl even though it's installed. Tried uninstalling/reinstalling everything with sudo. Everything is up-to-date. This is ...
0
votes
1answer
51 views

How to install Pocket Island Open Source Application?

I have no idea with Ruby Language. I just want to install and try Pocket Island Open Source. git://github.com/wooga/Pocket-Island.git What are the requirement and how to run it? I'm using Ubuntu ...
4
votes
1answer
535 views

How to backup ruby gems?

How do you backup ruby gems? I am re-installing the Operating System so I would like to know how to back up ruby gems so that I can re-install it when I have installed the Operating System? Is it ...
1
vote
2answers
873 views

How do I run a rake task in cron under a different user?

I'm trying to run a backup script on ubuntu. My problem is that I'm trying to do this using the postgres user account that I setup on ubuntu. I believe having this account run the cron jobs is best ...
0
votes
1answer
549 views

gem install won't do anything - Mountain Lion

I just got a recent installation of Mountain Lion. I installed homebrew and the gcc on dupes to compile proper rubies. Now, with new versions of ruby (1.9.2) I can create and install gemsets and gems. ...
0
votes
1answer
33 views

rails didnt install correclty, specificly the uninstaller

ive just installed rails using railsinstaller.org for osx, rails and ruby seem to be working ok (checked by running rails -v, ruby --version and ruby --help). But when it installed i got an error ...
2
votes
1answer
479 views

How do I ensure a process is running, even if it kills itself? (it needs to be restarted then)

I'm using linux. I want a process (an irc bot) to run every time I start the computer. But I've got a problem: The network is bad and it disconnects often, so I need to manually restart the bot a few ...
1
vote
1answer
64 views

measuring download speed ruby

I cache the query result in a file in the server side. When a new query is submitted the webservice searches to see if it has the answer in one of the cached files. If so, it will send out the file. ...
0
votes
1answer
659 views

Redmine installation - Ruby MySQL connector issue

I am trying to migrate from TRAC to Redmine, though i encountered a problem with the installation procedure. i follow the install guide at : ...
0
votes
2answers
59 views

How to install vimtrainer?

I'm trying to install vimtrainer. First I did: $ svn co https://vimtrainer.svn.sourceforge.net/svnroot/vimtrainer/trunk vimtrainer $ cd vimtrainer Then made sure ruby, rubygems, rake and vim with ...
1
vote
0answers
60 views

No error output for ruby commands

I am currently having the following problem: Some of my ruby/rbenv commands commands (e.g.: bundle exec irb, rbenv rehash) fail when executing. However I don't get any error output: [~]$ bundle ...
1
vote
2answers
839 views

Issues Installing jRuby with RVM

I'm running into an issue installing jRuby 1.7.0 with RVM on my Ubuntu 12.04.1 system. It seems RVM is messing up my $PATH because it's unable to find commands that are already installed on my system. ...
1
vote
0answers
57 views

Mysql InnoDB and quickly applying large updates

Basically my problem is that I have a large table of about 17,000,000 products that I need to apply a bunch of updates to really quickly. The table has 30 columns with the id set as int(10) ...
2
votes
2answers
1k 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 ...
2
votes
1answer
355 views

Gem Binaries not found with oh-my-zsh

I'm using Oh-My-Zsh on Mountain Lion and have an issue with gem binaries not loading properly. For instance: If I load a new shell the binary still cannot be found. When using Bundler, I can load ...
4
votes
1answer
3k views

How to rebuild all my Ruby gems?

I ran into an apparently known issue with the native C compiler on OS X 10.8 not building Ruby gems correctly, so I installed GCC as suggested. How do I have rvm rebuild all of the already-installed ...
2
votes
1answer
2k views

curl: (7) couldn't connect to host

I know some people have asked this question before but I don't understand some of the answers. I'm a Mac user trying to instal Homebrew but I keep getting this error message: curl: (7) couldn't ...
3
votes
1answer
1k views

java wont run under chroot cause it can not find shared libraries

i have openjdk and jRuby installed and running properly. however when i run exactly same environment under chroot, i get: error while loading shared libraries: libjli.so: cannot open shared object ...
2
votes
1answer
186 views

Installing Ruby 1.9.3 OSX 10.7.4 breaks after altering PATH

I was having trouble installing ruby 1.9.3-p194 from ruby 1.8.7 on my mac osx 10.7.4. I have was trying to fix my homebrew after running "brew doctor" and got the message of "/usr/bin occurs before ...
0
votes
1answer
2k views

Unable to find a Ruby executable

I am new to, this install Aptana Studio 3 to program in "Ruby" but the Run Time I get this error "Unable to find a Ruby executable." Here a Picture Sorry For My English
2
votes
1answer
654 views

(-bash: initdb: command not found) When installing postgres mac

I get the following error (-bash: initdb: command not found) in the terminal when trying to install postgres on my mountain lion mac osx? Also, does any one have a good resource for installing ...
2
votes
1answer
2k views

How do I uninstall a ruby version installed via source?

I installed a version (1.9.3-p194) of ruby via source using make install and realized this may have been the wrong route to take. Upon doing this, I realized this was a mistake and I should be using a ...
2
votes
0answers
168 views

Why does RVM Ruby require libksba?

The rvm requirements says I should install "libksba" before installing Ruby 1.9.3. Why? How can I tell if I already have "libksba" installed? I'm running Mountain Lion 10.8.2 and Xcode 4.5 ...
14
votes
2answers
714 views

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 ...
2
votes
3answers
2k views

How install gem rails for all users in arch-linux

When install rails with sudo gem install rails or with root user, this install in $HOME/.gem and only works for actual user, how install for all users in the system ?
2
votes
0answers
60 views

Can I use e text editor with an existing ruby installation?

I'm using windows and e text editor. I installed cygwin along with the e text editor as it prompted me too, but running ruby programs produces no errors and no output. I'd like to use an existing ruby ...
3
votes
2answers
812 views

Is there a way to “Execute and update '# => ' markers” in Sublime Text 2?

This is my most favourite feature from ruby bundle in TextMate. Unfortunately, I can't find how to do the same in ST2. It still inserts the marker when you press TAB after the # symbol, so, I hope, ...
1
vote
2answers
739 views

First requests are painfully slow

I am running Redmine under IIS using Zoo. Installation was done using the Web Platform Installer and the default configuration has not been touched. However, when using the application, the first ...
1
vote
2answers
350 views

Edit the command line path for an executable on OSX [duplicate]

Possible Duplicate: What are PATH and other environment variables, and how can I set or use them? I have the default package of Ruby installed that shipped with the OS, which is an older ...
0
votes
0answers
332 views

Bad CPU type in executable while typing tar command

recently i have upgraded to mountain lion and there is problem with my tar command, i am not able to unpack my tar files from terminal. when i type tar command in terminal i am geting bash: ...
0
votes
3answers
2k views

Running python / ruby interactively from within Notepad++ (NppExec console)

I've been using the NppExec console in Notepad to run python and ruby scripts using python script_name.py or ruby script_name.rb, and for the most part this works well: the output gets redirected into ...
3
votes
4answers
4k views

how do i run a script 5mn after startup?

I have severals RoR websites running on my webserver and I need to run a ruby script at startup. So, I puted a bash script in /etc/init.d witch call a ruby process. Unfortunatly that ruby process ...
1
vote
2answers
267 views

Combined sudo su deploy command doesn't work, does when separate

I have this command: ubuntu@ip-10:~$ sudo su deploy -c 'rvm install 1.9.3' bash: rvm: command not found I also tried: ubuntu@ip-10:~$ sudo su deploy -c 'source /home/deploy/.bashrc && rvm ...
2
votes
1answer
472 views

rvm problems syntax error near unexpected token `fi'

Whenever I cd or use rvm commands this shows up: -bash: /usr/local/rvm/scripts/initialize: line 80: syntax error near unexpected token `fi' -bash: /usr/local/rvm/scripts/initialize: line 80: ` ...
1
vote
2answers
35 views

Find script with early cutting branches on first occurences

It must exists, my problem is how to express my need. When I search for a given filename, Iwant the search stop searching the current branch when it finds a first occurence, BUT continue to search in ...
1
vote
1answer
164 views

Problems installing rails on Ubuntu 12.04. Rails gems library is empty

I got some problem installing rails on Ubuntu 12.04. I have rails working on my Ubuntu for a little time. But for some reason I uninstall rails. When I decided to install it again with sudo gem ...
0
votes
3answers
777 views

All terminal commands (like ls, cd, edit, open) are returning errors on my Mac [duplicate]

Possible Duplicate: How do I reset the $PATH variable on Mac OS X? From what I can tell from reading other questions/answers is that my .bash_profile file may be corrupt. If I type ...
0
votes
1answer
103 views

Cannot find Ruby on Rails installed

I've managed to install Ruby and the gems install (rvm?) but now I'm stuck actually installing Ruby on Rails. Every time I execute, gem install rails Terminal says that it's fetching each file and ...