Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Running programs compiled with a different gcc version
Date: Sat, 19 May 2012 22:04:34
Message-Id: jp959a$iuf$1@dough.gmane.org
In Reply to: [gentoo-user] Running programs compiled with a different gcc version by Urs Schutz
1 On 19/05/12 23:23, Urs Schutz wrote:
2 > Yesterday I manually compiled photivo, a camera raw file
3 > converter and image editor. One of the requirements for
4 > installing is gcc 4.6. So I manually unmasked gcc 4.6.3
5 > and installed it with portage.
6 > After switching gcc with gcc-config and . /etc/profile,
7 > photivo compiled fine.
8 > A test run showed that photivo is running fine.
9 >
10 > I simply do not know enough about gcc and gentoo to leave
11 > gcc at 4.6.3, and switched back to the stable 4.5 branch
12 > (gcc-config and . /etc/profile again).
13 >
14 > When I try to run photivo again I get an error:
15 > photivo: /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libstdc++.so.6:
16 > version `GLIBCXX_3.4.15' not found (required by photivo)
17 >
18 > locate -i glibcxx shows no results.
19 >
20 > My question is: Can I set some variables (e.g. in a bash
21 > start script) that photivo thinks it is running on a system
22 > with gcc 4.6? All the components are installed, as I can
23 > switch gcc to 4.6.3 and run photivo as user.
24 >
25 > I do not see any changes in environment variables before
26 > and after switching gcc versions. What magic does
27 > gcc-config do?
28
29 Try starting photivo with:
30
31 LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3 photivo
32
33 (I assume the executable is named "photivo".)

Replies

Subject Author
[gentoo-user] Resolved: Running programs compiled with a different gcc version Urs Schutz <u.schutz@×××××××.ch>