1 |
On 02/08/2010 10:27 PM, Konstantinos Bekiaris wrote: |
2 |
> What do you have in /etc/env.d/gcc/? I have this: |
3 |
> |
4 |
> #ls -l /etc/env.d/gcc/ |
5 |
> total 16 |
6 |
> -rw-r--r-- 1 root root 32 2010-02-08 11:53 config-i686-pc-linux-gnu |
7 |
> -rw-r--r-- 1 root root 235 2009-01-29 12:33 i686-pc-linux-gnu-4.1.2 |
8 |
> -rw-r--r-- 1 root root 235 2009-07-04 09:02 i686-pc-linux-gnu-4.3.2 |
9 |
> -rw-r--r-- 1 root root 235 2010-01-10 12:29 i686-pc-linux-gnu-4.3.4 |
10 |
> |
11 |
> Do you still have any version of gcc installed? |
12 |
> |
13 |
> drwxr-xr-x 2 root root 4096 Jan 24 13:16 . |
14 |
> drwxr-xr-x 5 root root 4096 Jan 24 13:17 .. |
15 |
> lrwxrwxrwx 1 root root 25 Jan 24 06:25 .NATIVE -> x86_64-pc-linux-gnu-4.1.2 |
16 |
> -rw-r--r-- 1 root root 34 Jan 24 06:25 config-x86_64-pc-linux-gnu |
17 |
> -rw-r--r-- 1 root root 381 Jan 24 06:25 x86_64-pc-linux-gnu-4.3.4 |
18 |
|
19 |
There's one problem. .NATIVE is pointing at a non-existent file. Assuming |
20 |
your machine really does have gcc-4.3.4, .NATIVE should be pointing at |
21 |
x86_64-pc-linux-gnu-4.3.4, and the contents of config-x86_64-pc-linux-gnu |
22 |
should be: CURRENT=x86_64-pc-linux-gnu-4.3.4 |
23 |
|
24 |
I don't know why there are two different ways to point at the same gcc, but |
25 |
that's the way gcc-config does it. |
26 |
|
27 |
Correct those two files and see if it helps. |
28 |
|
29 |
> I think that i have gcc, the problem is that it is not correctly linked |
30 |
> with tha appropriate files-libraries. |
31 |
|
32 |
You can run /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/gcc directly to see if |
33 |
it works. |