[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Help! Window user needs help installing ruby 1.9 on mac

Zayd Abdullah

4/4/2009 5:55:00 AM

I just purchased a new macbook pro and would like to install ruby 1.9,
but I'm having trouble installing, can someone please provide the
easiest steps to install ruby 1.9 please?

Thanks
--
Posted via http://www.ruby-....

11 Answers

Ben Lovell

4/4/2009 11:17:00 AM

0

[Note: parts of this message were removed to make it a legal post.]

Install macports. Then:
sudo port install ruby19

Should do it.

Ben

On Sat, Apr 4, 2009 at 6:55 AM, Zayd Connor <devrubygem@gmail.com> wrote:

> I just purchased a new macbook pro and would like to install ruby 1.9,
> but I'm having trouble installing, can someone please provide the
> easiest steps to install ruby 1.9 please?
>
> Thanks
> --
> Posted via http://www.ruby-....
>
>

Zayd Abdullah

4/4/2009 3:31:00 PM

0

Ben Lovell wrote:
> Install macports. Then:
> sudo port install ruby19
>
> Should do it.
>
> Ben

Thanks Ben, that helped a great deal, 1.9 is installed successfully on
my machine.

Kindest Regards
--
Posted via http://www.ruby-....

Ben Lovell

4/4/2009 4:23:00 PM

0

[Note: parts of this message were removed to make it a legal post.]

Great. You'll find macports pretty handy for installing many things.

On Sat, Apr 4, 2009 at 4:31 PM, Zayd Connor <devrubygem@gmail.com> wrote:

> Ben Lovell wrote:
> > Install macports. Then:
> > sudo port install ruby19
> >
> > Should do it.
> >
> > Ben
>
> Thanks Ben, that helped a great deal, 1.9 is installed successfully on
> my machine.
>
> Kindest Regards
> --
> Posted via http://www.ruby-....
>
>

Zayd Abdullah

4/4/2009 4:32:00 PM

0

Ben Lovell wrote:
> Great. You'll find macports pretty handy for installing many things.

Cool. One thing I'm noticing is when I type /usr/bin/ruby -v it is
giving me version 1.8, when I'm compiling my code how do I know which
version of ruby I'm using? 1.9 is installed in my /opt/local/lib
directory.
Should I uninstall 1.8?

Thanks
--
Posted via http://www.ruby-....

Ben Lovell

4/4/2009 4:49:00 PM

0

[Note: parts of this message were removed to make it a legal post.]

On Sat, Apr 4, 2009 at 5:32 PM, Zayd Connor <devrubygem@gmail.com> wrote:

>
> Cool. One thing I'm noticing is when I type /usr/bin/ruby -v it is
> giving me version 1.8, when I'm compiling my code how do I know which
> version of ruby I'm using? 1.9 is installed in my /opt/local/lib
> directory.
> Should I uninstall 1.8?
>

Take a look at this article:

http://www.metaskills.net/2009/1/20/multiruby-the-macports-way-testing-your-rails-apps-wit...

Although it is a little hackish I'm not sure of any easier method.

Ben

Dom

4/4/2009 5:18:00 PM

0


On Apr 4, 2009, at 12:32 PM, Zayd Connor wrote:

> Ben Lovell wrote:
>> Great. You'll find macports pretty handy for installing many things.
>
> Cool. One thing I'm noticing is when I type /usr/bin/ruby -v it is
> giving me version 1.8, when I'm compiling my code how do I know which
> version of ruby I'm using? 1.9 is installed in my /opt/local/lib

at the prompt, type which ruby <return> and that will give you the
path to the executable

also, you might want to check your PATH env variable to make sure it's
finding the right one first, although I think OSX has a mechanism for
switching that's kind of a half baked version of the Linux
alternatives mechanism for switching between various versions of
"stuff". Although, in fairness this seems to work quite well for java
on the mac. Anyway, check your path with either echo $PATH of env
commands and see what it says. You may have to force it by modifying
the path in .bash_profile in your home directory (assuming bash) or
some other file that's modifying your path variable. Hope that helps.
>
> directory.
> Should I uninstall 1.8?
>
> Thanks
> --
> Posted via http://www.ruby-....
>


Hassan Schroeder

4/4/2009 5:34:00 PM

0

On Sat, Apr 4, 2009 at 9:49 AM, Ben Lovell <benjamin.lovell@gmail.com> wrote:

> Although it is a little hackish I'm not sure of any easier method.

I always install alternative versions of any software into different
directories, e.g.
/usr/local/ruby-1.8.6
/usr/local/ruby-1.8.7
/usr/local/ruby-1.9.1

set the default path in your .bashrc.local or equiv, and then use a
file like, say "r187"
------------
export RUBY_HOME=/usr/local/ruby-1.8.7
export PATH=$RUBY_HOME/bin:$PATH
------------
for each version. Then in any window you can type
prompt> . r187

and set the version for that particular shell.

FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

Zayd Abdullah

4/6/2009 8:53:00 PM

0

Dom wrote:
> On Apr 4, 2009, at 12:32 PM, Zayd Connor wrote:
>
>> Ben Lovell wrote:
>>> Great. You'll find macports pretty handy for installing many things.
>>
>> Cool. One thing I'm noticing is when I type /usr/bin/ruby -v it is
>> giving me version 1.8, when I'm compiling my code how do I know which
>> version of ruby I'm using? 1.9 is installed in my /opt/local/lib
>
> at the prompt, type which ruby <return> and that will give you the
> path to the executable
>
> also, you might want to check your PATH env variable to make sure it's
> finding the right one first, although I think OSX has a mechanism for
> switching that's kind of a half baked version of the Linux
> alternatives mechanism for switching between various versions of
> "stuff". Although, in fairness this seems to work quite well for java
> on the mac. Anyway, check your path with either echo $PATH of env
> commands and see what it says. You may have to force it by modifying
> the path in .bash_profile in your home directory (assuming bash) or
> some other file that's modifying your path variable. Hope that helps.

Sorry but I cannot find the file to modify my path env variable.

Thanks
--
Posted via http://www.ruby-....

Giorgies E Kepipesiom

10/9/2013 3:30:00 PM

0

On Wednesday, October 9, 2013 10:50:00 AM UTC-4, shel...@thevillages.net wrote:
> Giorges, I thought you lived in the US. spelt
> ===== Definition of SPELT chiefly British past
> and past participle of spell In the US we use "spelled".

I do live here. But I grew up in Former Brittish colonies and commonwealths (Rhodesia and South Africa), and some old habits simply refuse to die. And though I have lived here permanently since 1952, it appears that even as a young dog this old dog found it difficult to learn some new tricks. It is one of my many failings. Please overlook this one.

GEK

sheldonlg

10/9/2013 3:33:00 PM

0

On 09/10/2013 10:51, Yisroel Markov wrote:
> On Tue, 8 Oct 2013 22:45:21 +0000 (UTC), Shelly
> <sheldonlg@thevillages.net> said:
>
>> On 08/10/2013 17:51, Giborah wrote:
>>> I supposed I should not be shocked at your (adjective) invasion of my privacy, but then I am an incurable idealist who naively expects people to behave. properly.
> What I find (adjective) shocking is your expectation of privacy for
> things you throw out on the Internet. Seriously?
>
> I'd say "you're welcome to search me on any search engine," but that's
> such a given that it doesn't need to be said. Certainly not to anyone
> even slightly familiar with the Net's open nature.
>
>> Have you even the SLIGHTEST idea about the person you are attacking?
> Almost certainly nothing beyond what she's read here.
>
>> I have met him on several occasions for dinner and he is:
>>
>> (a) very sharp
>> (b) very nice
>> (c) very even-handed
>> (d) very well-mannered
>>
>> You could learn a lot from him.
> Thank you very much, Shelly.

You are quite welcome. Respect is earned. I respect you.

--
Shelly