WebFaction
Community site: login faq

How can I install ruby 1.8.7? I want to use ruby 1.8.7 from shell script & won't use it on my web application. thank you.

asked 14 Dec '12, 00:20

Avicenna
483
accept rate: 50%


It is already installed,

$ ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

If you need a different version you would download the source code and build it.

permanent link

answered 14 Dec '12, 00:31

johns
5.4k312
accept rate: 23%

edited 14 Dec '12, 00:35

no wonder I get 1.9.3 I have this line in my .bash_profile

export PATH=$HOME/webapps/xxxxxx/bin:$PATH
export GEM_HOME=$HOME/webapps/xxxxxx/gems
export RUBY_LIB=$HOME/webapps/xxxxxx/lib

which point to passenger app which uses ruby 1.9.3

if i comment those lines, i got ruby 1.8.7

Do I have to use the above lines in my .bash_profile in order to make my passenger app works?

(14 Dec '12, 01:54) Avicenna

If your passenger app relies on Ruby 1.9.3, and you execute it via the command line, then yes; otherwise no.

Our installers don't add these lines to your .bash_profile file, so this is something you would have done yourself.

(14 Dec '12, 02:06) ryans ♦♦

yes, i added those lines.

i just uncomment those lines and so far, i can start, stop, or restart my passenger app from shell without any problems. i just test my app and so far no problem. so i think, i can safely delete those lines.

(14 Dec '12, 02:28) Avicenna
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×81
×1

question asked: 14 Dec '12, 00:20

question was seen: 1,658 times

last updated: 14 Dec '12, 08:25

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM