Forum: Ruby Re: Installation question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
67bb4df2775f6a6b603347dce7119571?d=identicon&s=25 unknown (Guest)
on 2006-05-29 23:47
(Received via mailing list)
> I have a ruby file in /usr/local/bin. Why?

In the Unix world,  to which Mac OS X also belongs, you have all
your files under one big file tree starting with /.
Now, all the packages which are not maintained by some distribution
update tool,e.g. because they're compiled from source by you, go
to /usr/local in a default way.
 /usr/local/bin is then the default directory to put the  executable
files. So , in this case, the ruby file there is the executable file
which
 allows you to run ruby script files, which you've saved anywhere  on
your system.
You can also install that executable file elsewhere, but then you
need to specify the path at the installation of Ruby
(in the configure step), so that the system can find it.

So these conventions don't come from Ruby, really, but from  Unix.

Best regards,

Axel
This topic is locked and can not be replied to.