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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,222ed89632aabb93 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.240.101 with SMTP id vz5mr1643226pbc.4.1342082300224; Thu, 12 Jul 2012 01:38:20 -0700 (PDT) Path: l9ni11515pbj.0!nntp.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Free AMD Core Math Library (BLAS/LAPACK) + Ada Date: Thu, 12 Jul 2012 09:38:19 +0100 Organization: A noiseless patient Spider Message-ID: References: <41b74e89-f112-4791-883d-236080652dbf@googlegroups.com> <2565f27a-48d1-4000-978d-c3946154ea32@googlegroups.com> <212027fd-e3a3-45cc-b594-df6a4ae96138@googlegroups.com> <0c159836-b4b9-4861-85cd-e3e61e94f8bc@googlegroups.com> <99901f55-e61a-4808-a442-1a62e625cd2e@googlegroups.com> <37b4ba31-245e-44d1-9183-5c3367c88101@googlegroups.com> <2db42c1b-cfd4-4a6f-9e0c-ce269ddf00c5@googlegroups.com> <7cadf109-e24a-45eb-9d7c-354d8899eec4@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="77deb14aadc54f7e5248011e65bf9740"; logging-data="1552"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6xR0xQYUQsOZZMd/a7hIkDL4wVGHjI2o=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (darwin) Cancel-Lock: sha1:A2qP2oEfogL1fe0ZvHKg7/tZnmQ= sha1:WbdgVuLls+cOidcaYSPlMfjp+yk= Content-Type: text/plain Date: 2012-07-12T09:38:19+01:00 List-Id: Ada novice writes: > The locate command seems to work if I say "locate gps" but in case of > "locate libgfortran", it does not return me anything though I the two > files as written above. locate works on an index of the filesystem, which needs to be rebuilt when you add files. Of course you only really care about 'system' files like libgfortran. The index (database) is updated by updatedb(8): from http://linux.die.net/man/8/updatedb, updatedb creates or updates a database used by locate(1). If the database already exists, its data is reused to avoid rereading directories that have not changed. updatedb is usually run daily by cron(8) to update the default database. You should be able to find the equivalent on your system by saying 'man updatedb'. The 'daily' part probably relies on the Linux system being up all the time, so (if the database isn't rebuilt when the system is booted) you may need to do it by hand.