Compiled and installed sac ON FedoraCore964bit

Source: Internet
Author: User
Yesterday, I was lucky to change-m32 to-m64 In the configure file under Fedora9 and compiled it smoothly and generated executable code. However, there is still a problem in the first run, the principle is that you do not understand the essence of the installation of sacforFedora964bit, that is, you need to call the 32bit library function on the 64bit System for installation, so it must be-m32. everything will be fine after you know this, any errors occur because the 32bit library is not installed on the machine. If-m is followed by 32

Yesterday, I was lucky to change-m32 to-m64 In the configure file under Fedora 9 and compiled it smoothly and generated executable code. However, there is still a problem in one operation, the principle is that you do not know the essence of sac for Fedora 9 64bit installation, that is, you need to call 32bit library functions on the 64bit System for installation, therefore, it must be-m32. all problems will occur after you know this. Any errors will be caused by the absence of a 32bit library on the machine.

If-m is followed by 32, crt1.o cannot be found. If it is changed to 64, the generated executable program will fail. It seems that the 32bit version is not generated on 64 bit platform. Therefore, you need to install the 32bit libc-dev package here.

After 32bit libc is installed,

Configure: error: *** termcap support not found

Also need package:

Rpm-qv bison
Rpm-qv ncurses
Rpm-qv zlib
Rpm-qv openssl

Check which 32bit packages are not installed. After the package is installed, configure is successfully installed and make

Make has an error message at the end of the Joint:

/Usr/bin/ld: cannot find-lX11

I specified the location of the X11 library in/usr/lib64,

In the same way, we still need a 32bit libX11.

Haha, after the installation, it will be done.

By now, the sac source code has been compiled successfully on mac, solaris, and linux 32bit 64bit.

In short, if you have any problems, install the 32-bit package and try again and again.

Several commands are used:

Find the location of the file: locate file

Check the corresponding packages: yum search file; or rpm-qv 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.