From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Beginner in Mac OS X, and ADA and gtkAda: $prefix, and what bin, and home is usr/bob or OSX Users/bob Date: Tue, 12 Sep 2017 08:33:09 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader.eternal-september.org; posting-host="38188849e0ca81774c9f26087babd7f1"; logging-data="23313"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RXuJ4Nyu0+ONMYAZZrMhCD6eHow7qEsw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin) Cancel-Lock: sha1:DLdAtrEthobfNIgQ+KWzyJzoE7o= sha1:tVbsyW+XTbVU6LqMlhRsRsCkLUY= Xref: news.eternal-september.org comp.lang.ada:48036 Date: 2017-09-12T08:33:09+01:00 List-Id: Mace Ayres writes: > New to Mac OSX. Various software instructions may say home directory; > is that OS X ./USERS/Me > or Unix's /usr/me: It's wherever you get to when you log in! (also, the value of the HOME environment variable). Mine, on macOS, is /Users/simon > Sometime they refer to the bin directory. Which bin? > > Some instructions say $prefix .. what prefix is that? When a Unix-style application is installed, all its components will be under some directory. System utilities will be under /usr normally, and the layout is fairly standard: /usr/bin, /usr/include, /usr/lib etc. Non-system utilities should be somewhere else, not least so that the base system is still usable and can still be upgraded. A typical place would be under /usr/local. But if you use just this, you can end up with different utilities clashing; and you can't easily remove a utility that you no longer need (I realise that package managers such as RPM, aptitude, macports & homebrew achieve this too). As far as I can remember, GNAT GPL wants to install under /usr/local/gnat; I don't like this, because I want to keep different versions on my machine. On Windows, GNAT caters to this by installing under C:\GNAT\2017 for example. So, I install GNAT GPL under /opt/gnat-gpl-2017 etc and FSF GCC under /opt/gcc-7.1.0 etc. (the /opt comes from, I think, Solaris). The layout of the compiler under that directory is the same, so it's handy to have a way of referring to that directory. $prefix is that way! That name is used because most Unix build tools (I mean, the tools for building the application) use an environment variable $prefix for this purpose. But, it's only a handy name for "wherever you installed the application" - there's no actual variable involved.