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: a07f3367d7,222ed89632aabb93 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.33.148 with SMTP id h20mr2640909qad.3.1342741346355; Thu, 19 Jul 2012 16:42:26 -0700 (PDT) Received: by 10.66.79.135 with SMTP id j7mr891689pax.36.1342741346164; Thu, 19 Jul 2012 16:42:26 -0700 (PDT) Path: a15ni17185885qag.0!nntp.google.com!x2no431493qaj.0!news-out.google.com!b9ni8412831pbl.0!nntp.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-peer1!btnet!zen.net.uk!hamilton.zen.co.uk!xlned.com!feeder3.xlned.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!94.232.116.11.MISMATCH!feed.xsnews.nl!border-1.ams.xsnews.nl!plix.pl!newsfeed2.plix.pl!news.mi.ras.ru!goblin-spool!goblin1!goblin.stu.neva.ru!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: Mon, 16 Jul 2012 12:36:42 +0100 Organization: A noiseless patient Spider Message-ID: References: <41b74e89-f112-4791-883d-236080652dbf@googlegroups.com> <7cadf109-e24a-45eb-9d7c-354d8899eec4@googlegroups.com> <3f14ee5a-d055-4252-ab45-7ca512a23fac@googlegroups.com> <9cc53435-3c7f-4443-8209-5137b9377aca@googlegroups.com> <583b29e2-3f75-4b0a-8f1a-802b3d6e502c@googlegroups.com> <34139f6f-5905-4c9e-a873-0b2445a1fccd@googlegroups.com> <87txx8yl8t.fsf@ludovic-brenta.org> <87pq7wyek7.fsf@ludovic-brenta.org> <16a6786f-6de5-49c4-90b7-a55cb238d52a@googlegroups.com> <509991f4-bcb4-45a0-84f3-b8393db64da4@googlegroups.com> <374bd898-5683-4350-8812-e3cae186ab2b@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="7a0ebdf057d7ee0e1938d96c9114b275"; logging-data="6097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EnJwE9Y56no1d26P6Np3s4pa26iJ2DF0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (darwin) Cancel-Lock: sha1:tnXk8YZkLHpzj3xVneCeb0CJWOA= sha1:eKqF13EZP2Q13NcSzNzNc0/Unw8= X-Received-Bytes: 4373 Content-Type: text/plain Date: 2012-07-16T12:36:42+01:00 List-Id: Ada novice writes: > On Monday, July 16, 2012 10:27:16 AM UTC+1, Simon Wright wrote: > >> What you need is the libgfortran.so.3 that lapack was actually linked >> against. You only need libgfortran.so if you are going to develop in >> Fortran. I can link against liblapack.so without needing gfortran >> installed. > > libfortran.so.3 then requires the libfortran2 package. Not here, it doesn't. $ ldd /usr/lib/libgfortran.so.3 linux-vdso.so.1 => (0x00007fff8abff000) libm.so.6 => /lib/libm.so.6 (0x00007f6e351e5000) libc.so.6 => /lib/libc.so.6 (0x00007f6e34e83000) /lib64/ld-linux-x86-64.so.2 (0x00007f6e35765000) > In step 11 from > Nasser's page: > http://12000.org/my_notes/ada/index.htm > > He created a symlink as libgfortran.so is required. So he links > /usr/lib/i386-linux-gnu/libfortran.so to point to > /usr/lib/i386-linux-gnu/libgfortran.so.3 I don't know what went wrong with his installation, but here libgfortran.so is created when you install gfortran(-4.4). And as Ludovic has said, don't mess with symlinks in system directories. > What's the difference between the .so and the .so.3 file? The .so is a symlink which resolves (eventually) to the actual file. Here, libgfortran.so.3 is a symlink to libgfortran.so.3.0.0. $ cd /usr/lib/gcc/x86_64-linux-gnu/4.4.5 $ ls -l libgfortran.so lrwxrwxrwx 1 root root 25 Jul 16 12:28 libgfortran.so -> ../../../libgfortran.so.3 $ cd ../../.. $ ls -l libgfortran.so.3 lrwxrwxrwx 1 root root 20 Oct 28 2011 libgfortran.so.3 -> libgfortran.so.3.0.0 $ ls -l libgfortran.so.3.0.0 -rw-r--r-- 1 root root 964408 Nov 15 2010 libgfortran.so.3.0.0 > But I am thinking to install the gfortran-4.4 package since then I can > test these programs also: > > http://www.nag.com/lapack-ex/lapack-ex.html > > where example fortran programs are given as well. > > I hope that I do not mess things up. Installing gfortran-4-4 will give > me libgfortran.so directly and I "will" be able to test example > fortran programs as well. Yes.