简体   繁体   中英

How to install/update gcc-4.6 on openSUSE 11.2 (x86_64)?

I met an err when I installed JikesRVM, that is,

skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.4/libstdc++.so when searching for -lstdc++

So I am trying to install/update it to a later version. Now, the machine already has

gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]

I am new to openSUSE, could you help?

Thanks!

You need to install 32 bit support for the GNU C/C++ compiler since JikesRVM on x86_64 currently supports only the 32 bit architecture.

To install this support in OpenSuSE 11.2 type

    sudo zypper install gcc44-32bit gcc-32bit libstdc++44-devel-32bit

The first two provide runtime support for the C language and the 32-bit version of libgcc, the GCC low level runtime library. The third provides the 32-bit version of libstdc++, both the static import library and the dynamic library. It is the static libstdc++.a that was missing for JikesRVM.

To verify that the 32bit C++ build system is installed correctly you can test it with the following

    echo "int main(){}" | g++ -x c++ -m32 -

Note Official support for OpenSuSE 11.2 has ended. Evergreen support will be available through 2013. Yet it is reasonable to update to 11.3 or a later version soon.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM