MySQL Connector/C Developer Guide  /  Installing Connector/C  /  Installing Connector/C from Source

4.2 Installing Connector/C from Source

A Connector/C source distribution is packaged as a compressed tar file, Zip archive, or RPM package, denoted here as PACKAGE.tar.gz, PACKAGE.zip, or PACKAGE.src.rpm. A source distribution in tar file or Zip archive format can be used on any supported platform. An RPM package source distribution is intended for RPM-based systems such as Linux.

To unpack a compressed tar file, use this command in the intended installation directory:

shell> tar zxvf PACKAGE.tar.gz

After unpacking the distribution, build it using the appropriate instructions for your platform later in this section.

To unpack a Zip archive, use WinZip or another tool that can read .zip files. After unpacking the distribution, build it using the appropriate instructions for your platform later in this section.

To install an RPM package, use this command to create binary RPM packages that you can install. If you do not have rpmbuild, use rpm instead.

shell> rpmbuild --rebuild --clean PACKAGE.src.rpm

The command should produce binary shared and devel RPM packages and indicate where it placed them. You can install these packages using the instructions in Section 4.1, “Installing Connector/C from a Binary Distribution”.


User Comments
Sign Up Login You must be logged in to post a comment.