From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28172 invoked by alias); 10 Jan 2012 23:10:22 -0000 Received: (qmail 28164 invoked by uid 22791); 10 Jan 2012 23:10:22 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-lpp01m010-f47.google.com (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Jan 2012 23:10:08 +0000 Received: by lami14 with SMTP id i14so72248lam.20 for ; Tue, 10 Jan 2012 15:10:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.84.170 with SMTP id a10mr1833975lbz.22.1326237005290; Tue, 10 Jan 2012 15:10:05 -0800 (PST) Received: by 10.112.8.69 with HTTP; Tue, 10 Jan 2012 15:10:05 -0800 (PST) In-Reply-To: References: Date: Wed, 11 Jan 2012 03:12:00 -0000 Message-ID: Subject: Re: Trouble installing gfortran From: Jonathan Wakely To: John Harper Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-01/txt/msg00064.txt.bz2 On 10 January 2012 20:07, John Harper wrote: > > My little test program then compiled but wouldn't run even though the > library said to be missing does exist. It was presumably put somewhere > > that gfortran couldn't find it. What should I do now? Evidence: [...] > ./a.out: error while loading shared libraries: libquadmath.so.0: cannot open > shared object file: No such file or directory In my reply directing you to the gcc-help list I also answered your question, I guess you didn't scroll down far enough :) I said: The dynamic linker needs to know how to find the library at run time. http://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths