help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building 4.0.3 with local gcc on Linux


From: Mike Miller
Subject: Re: Building 4.0.3 with local gcc on Linux
Date: Mon, 19 Sep 2016 11:24:28 -0700
User-agent: NeoMutt/20160910 (1.7.0)

On Mon, Sep 19, 2016 at 17:40:28 +0100, Toby Darling wrote:
> Hi
> 
> I'm trying to build 4.0.3 with a local version of gcc. The build succeeds
> but octave fails to start:
> 
> address@hidden: ./run-octave
> /tmp/toby/octave-build/src/.libs/lt-octave-gui: /usr/lib64/libstdc++.so.6:
> version `GLIBCXX_3.4.15' not found (required by
> /tmp/toby/octave-build/libgui/.libs/liboctgui.so.1)
> 
> The problem is, I can't figure out how to make octave/libtool use the
> libraries from my gcc installation rather than the system ones. I've tried
> setting LD_LIBRARY_PATH, LD_RUN_PATH, even GCC_EXEC_PREFIX to no avail.
> 
> Host is Scientific Linux 6.7 (RHEL)
> Linux max.lmb.internal 2.6.32-573.12.1.el6.x86_64 #1 SMP Tue Dec 15 08:24:23
> CST 2015 x86_64 x86_64 x86_64 GNU/Linux
> 
> address@hidden: which gcc; gcc --version
> /public/gcc/4_8_3/bin/gcc
> gcc (GCC) 4.8.3
> 
> Any pointers much appreciated. Many thanks.

LD_LIBRARY_PATH is the correct variable to use. The above message
references /usr/lib64/libstdc++.so.6, so LD_LIBRARY_PATH either wasn't
set or wasn't correct.

-- 
mike



reply via email to

[Prev in Thread] Current Thread [Next in Thread]