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