Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-11-09 07:09:55
Point:500 Replies:12 POST_ID:828782USER_ID:11059
Topic:
C Programming Language;C++ Programming Language;Linux
I need to install the version of GCC(4.6.4) and following the exact command in
the following
https://github.com/jackywei/HOW-TO-BUILD-HHVM-WiKi/wiki/Build-&-Install-GCC4.6.3-in-CentOS-(5.2-&-6.3)
And all steps of installation is successfuly
but when I check the version of gcc that is still old version of 4.4.0
not 4.6.2. Why ?
How can I check what is wrong from my
installation directory at /home/dev/gcc-4.6.3 in which I installed the
package of new version GCc(4.6.3)
And I used gcc -v for version check
Please advise
Duncan
the following
https://github.com/jackywei/HOW-TO-BUILD-HHVM-WiKi/wiki/Build-&-Install-GCC4.6.3-in-CentOS-(5.2-&-6.3)
And all steps of installation is successfuly
but when I check the version of gcc that is still old version of 4.4.0
not 4.6.2. Why ?
How can I check what is wrong from my
installation directory at /home/dev/gcc-4.6.3 in which I installed the
package of new version GCc(4.6.3)
And I used gcc -v for version check
Please advise
Duncan
Expert: jkr replied at 2024-11-12 19:09:22
Then why a 'B'? Sorry, I wonder what I've been missing...
Author: duncanb7 replied at 2024-11-12 02:31:16
Thanks for your reply and GCC vsersion is reported correctly today
Assisted Solution
Expert: jkr replied at 2024-11-10 03:27:02
166 points GOOD
You don't have to uninstall the previous version if you follow the steps above, but if you want to, use the packet management of your OS for that purpose.
Author: duncanb7 replied at 2024-11-09 21:17:19
Since I have ben installing a lot of version that I don't know how many.
so How can I un-install all gcc version ?
and then I will try to install the new version again that I think it is final fix
so How can I un-install all gcc version ?
and then I will try to install the new version again that I think it is final fix
Author: duncanb7 replied at 2024-11-09 21:00:38
root@vps [~]# /usr/local/bin/gcc --version
gcc (GCC) 4.4.0
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
it is still the old version
gcc (GCC) 4.4.0
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
it is still the old version
Expert: Gerwin Jansen replied at 2024-11-09 12:53:03
@jkr - I always read the history, I did not see an answer to how many gcc's are present or not that is why I ask this explicitly. The procedure the asker is referring to has instructions to move gcc files to _old etc. I'm referring tho this part:
Do you know for sure how many and what versions of gcc are installed at the asker's system?
And I try
find / -name "gcc*" -print -exec ls -l {} ;
What is command for find / -name "gcc*" -print -exec ls -l {} ; ?
find / -name "gcc*" -print -exec ls -l {} ;
What is command for find / -name "gcc*" -print -exec ls -l {} ; ?
Do you know for sure how many and what versions of gcc are installed at the asker's system?
Expert: jkr replied at 2024-11-09 12:35:12
>> Do you have more than one gcc?
Um, that's what all comments before yours were about. Please take the time to read the question history before commenting...
Um, that's what all comments before yours were about. Please take the time to read the question history before commenting...
Assisted Solution
Expert: Gerwin Jansen replied at 2024-11-09 12:32:10
167 points GOOD
Do you have more than one gcc? Try to find it like this:
find / 2>/dev/null | grep -i gcc
For each line you find, get its version info, for example:
/usr/local/bin/gcc --version
What versions do you get and how many?
find / 2>/dev/null | grep -i gcc
For each line you find, get its version info, for example:
/usr/local/bin/gcc --version
What versions do you get and how many?
Accepted Solution
Expert: jkr replied at 2024-11-09 11:46:14
167 points GOOD
BTW, if you can confirm that, you can then set the link to the new version like
'-f' forces overwriting the old link, if you want to be cautious, use '-' instead.
Expert: jkr replied at 2024-11-09 10:35:55
Try
I am pretty sure it will tell you that it is a link to 'gcc-4.4.0/bin/gcc'.
And the 'find' command will do that for all files starting with 'gcc' on your machine.
Author: duncanb7 replied at 2024-11-09 10:21:57
When I type
which gcc //it shows
/usr/local/bin/gcc
And I try
find / -name "gcc*" -print -exec ls -l {} ;
What is command for find / -name "gcc*" -print -exec ls -l {} ; ?
And then after find command, I check gcc -v
it still show 4.8.0 not 4.6.3
So what I should do next ?
Duncan
which gcc //it shows
/usr/local/bin/gcc
And I try
find / -name "gcc*" -print -exec ls -l {} ;
What is command for find / -name "gcc*" -print -exec ls -l {} ; ?
And then after find command, I check gcc -v
it still show 4.8.0 not 4.6.3
So what I should do next ?
Duncan
Expert: jkr replied at 2024-11-09 10:16:34
Try 'which gcc' to find out which binary is invoked. Chances are that if you also have 4.4.0 installed, the 'gcc' you call when checking with '-v' is just a link to gcc-4.4.0. You could also try