LFS6.2 compiled successfully

Source: Internet
Author: User
LFS6.2-general Linux technology-Linux programming and kernel information is compiled successfully. The following is a detailed description. After two days of hard work, LFS 6.2 was successfully compiled on the virtual machine. A few days ago, we compiled a few methods every day, but a few days later, we won't be able to continue, and we often encounter errors. So I got up early yesterday and tried again. I typed the command for a whole day (no letter was copied or pasted). Today I ended it. Of course, I encountered a lot of problems in the middle. Let's make a summary:

1. The host system tries its best to use LiveCD. At the beginning, Debian I used always encountered an inexplicable problem when compiling glibc. Maybe the gcc version of Debian is too high.

2. When you press Enter, make sure to re-confirm the command. Pay special attention to the following: 0 (0), oO (letter), l (letter L), I (letter I) and 1 (number ).

3. When an error occurs, you must analyze it patiently, determine the steps for the error, and compile the code again. For example, when glibc is compiled, I keep making install errors, and make check is passed, which indicates that the compilation is okay. check the previous steps, it can be found that only the sed command of the test-installation.pl is related to the program installation, so the biggest possibility is that this step is wrong. During re-compilation, we should be very careful here. (Be careful when typing commands !)

4. Because it was compiled on the Virtual Machine vmware, you should pay attention to the driver when compiling the kernel. After compiling the kernel four times in the afternoon, it will be successful.

SCSI virtual hard disk: device Drivers ---> SCSI device support ---> <*> SCSI disk supportDevice Drivers ---> SCSI device support ---> SCSI low-level drivers ---> <*> BusLogic SCSI support (not sure Bus or LSI, if the file system is ext3, select all objects related to ext3 as the star number.
  • NIC: Device Drivers ---> Networking support ---> Ethernet (10 or 100 Mbit) ---> <*> AMD PCnet32 PCI support

    5. Be careful and patient when compiling binutils, gcc, and glibc. In fact, the whole process is the most prone to errors when compiling these three mountains. Other Software generally does not make errors.

    6. There are a lot more. I can only carefully understand it when I compile it myself !! In fact, LFS is compiled and installed without any technical content. All you need is patience and care.

    Next time, when compiling and installing LFS, you must understand the entire installation process and the architecture of the entire Linux system.
  • 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.