Jump to content

  •  

Ga_Chittolina

Member Since 05 May 2016
Offline Last Active May 11 2016 06:32 PM
-----

Posts I've Made

In Topic: Compile in Linux

08 May 2016 - 06:51 PM

@Dastgir

Thanks. Now my question is: Will this override the 6.1 I have?

 

@edit

It doesn't. How do I uninstall/override the gcc 6.1?


In Topic: Compile in Linux

08 May 2016 - 05:54 PM

@4144

Indeed, it did fail. This is what it returned:


 [root@ ragnarok code]# g++ main.cpp -o main                                      
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status

 

I'm thinking of uninstalling this gcc 6.1 and installing an older version, but how do I do it? It looks like yum can only install the 4.4 version.

In Topic: Compile in Linux

07 May 2016 - 10:52 PM

After make and make install:

 

echo "/usr/local/lib64" > usrLocalLib64.conf
sudo mv usrLocalLib64.conf /etc/ld.so.conf.d/
sudo ldconfig

cd ~/

rm -rf sourceInstallations

 

PS: I followed this guide (from "Install a newer version of GCC from source" onwards): https://www.vultr.co...gcc-on-centos-6. Did all the steps but for the gcc 6.1 version.


In Topic: Compile in Linux

07 May 2016 - 09:49 PM

Oh, I was doing some configs in another user, but yeah, both the users are in the same server and both return the same strings for gcc --version.

 

gcc --version and ./configure error strings:

Spoiler

 

 

Also, idk why the config.log was showing that gcc had the 4.4 version. Heres the one from the above ./configure:

 

Spoiler


In Topic: Compile in Linux

07 May 2016 - 09:18 PM

@4144 @Dastgir

Yeah, I did download and compile it manually. Here's the gcc --version output:

 


[root@ ragnarok rathenaTeste]# gcc --version
gcc (GCC) 6.1.0
Copyright © 2016 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.

 Does this version work, or I have to use an older version of gcc? If so, can you tell me which version works?