sudo symbolic link between directories

Karl Auer kauer at biplane.com.au
Sat Mar 17 21:46:00 UTC 2012


On Sat, 2012-03-17 at 09:42 +0000, thufir wrote:
> To make a symbolic link between directories, am I doing this correctly?
> That seems ok, so that now ~/bin has ~/opt contents, specifically file 
> foo.  This is a dry run, before adding /opt/ActiveTcl-8.5/bin to /usr/bin 
> in the pattern, so that I don't destroy the directory.

Is ~/opt the same as /opt? If not, there is confusion in your plan
between the two. Or maybe not, in which case I don't understand what's
going on :-)

It doesn't feel right to me. You'll end up with /usr/bin/bin, or
possibly /usr/bin/ActiveTcl-8.5/bin. It also doesn't seem right that you
should have to construct this complicated arrangement just to help ruby
compile.

> (The point of this is so that when I compile ruby as per http://
> beginrescueend.com/integration/tk/ that the compiled ruby has tk 
> correctly.  It seems required to use ActiveTcl in this scenario.)

It seems likely that it would be possible (and preferable) to tell the
compile where ActiveTcl is, i.e., in /opt/ActiveTcl-8.5 instead of
wherever it expects it by default. I don't know about ruby specifically,
but these things are often compiled with tools like configure, where
command line options let you say where the various components are
installed.

A nice thing to do with things like this, where releases come often and
you may need to switch between versions, is to have all your versions
stored somewhere handy like this:

   /wherever/ActiveTcl-8.5
   /wherever/ActiveTcl-8.4
   /wherever/ActiveTcl-8.3

... then have a link to the version you are using:

   ln -s /wherever/ActiveTcl-8.5 /opt/ActiveTcl

That way you can put "/opt/ActiveTcl" in paths, scripts whatever, and
change the version by just changing one link, i.e. without having to go
and change all your other configurations (paths, scripts, whatever).

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer

GPG fingerprint: AE1D 4868 6420 AD9A A698 5251 1699 7B78 4EEE 6017
Old fingerprint: DA41 51B1 1481 16E1 F7E2 B2E9 3007 14ED 5736 F687
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120318/77568b93/attachment.sig>


More information about the ubuntu-users mailing list