install/Linux/MySQL
編集   新規   履歴   最終更新者 lethevert   最終更新時刻 2007-08-01 14:12:31 UTC

This document is to explain how to install MySQL binding library.


Supported MySQL database version

This library supports only MySQL 5.0.


Get the source code

Check out from subversion repository at 'https://cleanoptenv.svn.sourceforge.net/svnroot/cleanoptenv/trunk/DB/MySQL' to '~/lib/clean2.2/MySQL.'


Build object files

Change directory to '~/lib/clean2.2/MySQL/Foreign' and type 'make.' It will produce the following file.


Modify environment variables

Append the library directory to 'CLEANPATH' environment variable.


How to build a program with MySQL

Add the following lines in the link option file.

-lmysqlclient
-lz

If the link option file is 'link.lo' then use the following command to compile the program.

clm -sl link MainModule -o Target