LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   downgrade g++ (https://www.linuxquestions.org/questions/linux-software-2/downgrade-g-467470/)

wahaha 07-25-2006 10:40 AM

downgrade g++
 
halo...I am currently using fedora core 4, 2.6.11-1.1369_FC4 of gcc version 4.0.2 20051125 (Red Hat 4.0.2-8).

Due to a software i want to install that required the compiler gcc-2.96, so did anyone know how to downgrade from gcc-4.0.2-8 to gcc-2.96??

Please drop your message here if you have any ideas, thanks!

Lenard 07-25-2006 02:08 PM

No you do not want to do this, it will cause more problems then you are aware of. A better solution is to install the compat-gcc lib rpm packages;

yum -y install compat-gcc compat-libgcc compat-libstdc++

wahaha 07-25-2006 09:12 PM

halo Lenard

I did as u suggested on previous message, but it still cannot as the message shown:

[root@localhost kokchin]# yum -y install compat-gcc compat-libgcc compat-libstdc ++
Setting up Install Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: compat-gcc
No Match for argument: compat-libgcc
No Match for argument: compat-libstdc++
Nothing to do


Did you have any ideas about this ?

Lenard 07-25-2006 09:29 PM

You can always try installing the old fashioned way, by loading them from the media or downloading them.

Check if they are installed first; rpm -qa 'compat*' | sort
Example;
$ rpm -qa 'compat*' | sort
compat-db-4.2.52-2
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
compat-glibc-2.3.2-95.30
compat-glibc-headers-2.3.2-95.30
compat-libcom_err-1.0-5
compat-libcom_err-1.0-5
compat-libgcc-296-2.96-132.7.2
compat-libstdc++-296-2.96-132.7.2
compat-libstdc++-33-3.2.3-47.3
compat-libstdc++-33-3.2.3-47.3
compat-readline43-4.3-2

Do not worry about the double rpm package names, I'm running a mixed mode environment.

wahaha 07-25-2006 09:46 PM

halo Lenard

Below are the message after i typed it :

rpm -qa 'compat*' | sort
compat-db-4.2.52-2
compat-gcc-32-3.2.3-47.fc4
compat-gcc-32-c++-3.2.3-47.fc4
compat-gcc-32-g77-3.2.3-47.fc4
compat-libf2c-32-3.2.3-47.fc4
compat-libgcc-296-2.96-132.fc4
compat-libstdc++-296-2.96-132.fc4
compat-libstdc++-33-3.2.3-47.fc4
compat-openldap-2.2.23_2.1.30-5
compat-readline43-4.3-2
compat-slang-1.4.5-10


From the above message, there shown one of the sentence "compat-libgcc-296-2.96-132.fc4", is that mean this package is inside my fedora core 4,2.6.11-1.1369_FC4 ??

Or is that you mean have to download those package as shown above ?

Lenard 07-26-2006 07:32 AM

Yes, now you need to use these libs to build your app, review the documentation for the application to find out how.

What old app that requires gcc-2.96 are you attempting to build anyway???

wahaha 07-27-2006 12:16 PM

I want to install mobile mesh software which are required gcc-2.96 as stated on the link below :
http://wirelessafrica.meraka.org.za/...hp/Mobile_Mesh

May i know those package appears in terminal after i typed "rpm -qa 'compat*' | sort" show that they are inside my fedora core 4 now ??

Lenard 07-27-2006 07:58 PM

Yes the rpm packages are installed, which is why you used the command to see if they are installed.

Now you have a problem according to your URL this software is old and not designed for the 2.6 kernel series(which Fedora Core 4 uses), but rather the 2.2 kernel series.

Quoting from the URL;

Requirements
The Mobile Mesh software was developed for a Linux 2.2.X kernel. It's quite possible that it may run under 2.3.X kernels as well, but, the author has not tested this.

This is somewhat old also but should provide you the basic information needed;

http://oob.freeshell.org/nzwireless/LWAP-HOWTO.html

wahaha 07-28-2006 02:28 AM

I tried to install mobile mesh software into fedora core 4 becauses there was someone able to install the software into fedora core 2, which the kernel i think is also 2.6.X. and the compiler of fedora core 2 is 2.96 if i am not mistaken with it.

So, I think the major problem now is the compiler version problem when i try to install it but still fail.

I did posted this problem on this link: http://www.linuxquestions.org/questi...d.php?t=462328

If you have any ideas about the problem please leave your message there. Thanks.

Sorry, one more question to ask:
Since the package " compat-libstdc++-296-2.96-132.fc4 " is insde my fedora now after i typed " rpm -qa 'compat*' | sort " in terminal, may i know is that I have to
do any setting to use the compiler gcc-2.96 ??

Thanks


All times are GMT -5. The time now is 11:48 AM.