The differences from the previous article are:
Compile unixodbc to be compiled to 32-bit, in addition to download MySQL CONNECTOR/ODBC must also choose the 32-bit version of the
Pre-compilation operations
Modify/USR/BIN/GCC,/USR/BIN/LD, force join M32 Information
Rename Gcc,ld to gcc.64,ld.64
mv /usr/bin/gcc /usr/bin/gcc. - mv /usr/bin/ld /usr/bin/ld. -
Create a new two files below
/usr/bin/gcc
#!/bin/shgcc. –m32 [email protected]
/usr/bin/ld
#!/bin/shld. –m elf_i386 [email protected]
Add Execute Permissions
chmod +x/usr/bin/gccchmod +x/usr/bin/ld
32-bit C compilation environment
Install libc6-dev-i386
Issues that may occur when you start a compilation
Add a soft link
Ln -s/usr/lib/libodbc.so. 2.0. 0 /usr/lib/libodbc.so. 1
Installing the 32-bit C + + Runtime Library
Install lib32z1 lib32stdc++6
64-bit Ubuntu installation TLBB Server environment