Satchel
Satchel

Reputation: 16734

how do I set the PATH on Mac permanently (specifically for subversion upgrade)

Grrr, getting an error in RadRails that I need to upgrade suversion when I try to run script/plugin install. So I followed the instructions to download the .dmg for 1.6.6.

I have tried to save the PATH for /opt/subversion/bin by editing ~/.profile, and even editing the etc/profile file. No avail.

It still comes up svn --version as 1.4.6.

When I edit .bash_profile and then run . .bash_profile, in that terminal, it has 1.6.6 so I know that it is possible.

But when I go back to my RadRails or open another terminal, svn --version still points to the same, and echo $PATH no longer includes the /opt/subversiion/bin directory.

How can I make sure that directory is included first from now on?

Per the comments below:

which svn

/opt/subversion/bin/svn


echo $PATH

/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/subversion/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin

Upvotes: 1

Views: 3769

Answers (2)

Satchel
Satchel

Reputation: 16734

I never found the exact answer, but RadRails terminal wasn't a true terminal and so that created problem.s

Upvotes: 0

Ciarán Walsh
Ciarán Walsh

Reputation: 1866

See here (link found by googling for the filename).

Though, I’ve not used RadRails, but I would expect that it should allow you to configure the path to svn itself.

Upvotes: 1

Related Questions