Precautions for compiling and installing open source software on fedora

Source: Internet
Author: User

Precautions for compiling and installing open source software on fedora download an Open Source System from Cornell University and deploy it on fedora 15. However, the package and library files are incomplete, and the installation instructions are hard to understand. Www.2cto.com 1. When installing the missing package for configure and make according to the instructions, the system prompts that the library file cannot be found. These library files can be obtained by installing the software package and placed in the corresponding directory. Use yum install (yum remove, yum list installed) to directly install the required software package and easily solve the package dependency problem. Alternatively, you can use rpm-ivh (rpm-e) install the downloaded software package. 2. Download the source code and compile the missing package. However, you can only install the latest version of the software package using yum. It seems that you cannot install the software of earlier versions. Sometimes, even if rpm is installed, the installation of binary files compiled by others may be compiled by a later version of the compiler gcc; the open-source system you want to modify and compile is likely to be applicable to lower-version compilers, so that problems may occur when you recompile the open-source system. So, in this case, it is best to download the source code of the required software package, use the compiler you need to compile the required library file, this time the need for libxerces-c.so.27 encountered this problem. 3. gcc downgrade this installation and compilation of this open-source system first encountered a gcc downgrade problem. gcc3.3 should be used, and gcc4 should be used on fedora 15. So download and compile gcc3.3, but gcc4 is required to compile gcc3.3? The compilation fails. It seems that a gcc4 compat compatibility package exists. After this package is installed, gcc3.3 is compiled, and gcc is connected to gcc 3.3 instead of gcc4 in/usr/bin. So gcc is fine. During the process, we also encountered a degradation problem. When making, we reported "libstdc ++. so.6: undefined reference to '_ Unwind_GetIPInfo@GCC_4.2.0' "This should also be the link library version too high problem; but makefile seems to have to be so.6 the name of the file, in desperation, or use soft connection -- convert libstdc ++. so.6 link to libstdc ++. so.5, that is, the library compiled with gcc3.3. Libstdc ++. so.5-> libstdc ++. so.6gcc->/opt/gcc33/bin/gcc soft connection command ln-s target file connection file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.