4 messages in com.mysql.lists.plusplusinstalling mysql++ api| From | Sent On | Attachments |
|---|---|---|
| jarle rudihagen | 02 May 2001 11:22 | |
| Greg Berry | 02 May 2001 12:43 | |
| craz...@swissinfo.org | 02 May 2001 13:17 | |
| Curtis, Lorenzo | 02 May 2001 13:36 |
| Subject: | installing mysql++ api![]() |
|---|---|
| From: | Greg Berry (greg...@yahoo.com) |
| Date: | 05/02/2001 12:43:34 PM |
| List: | com.mysql.lists.plusplus |
Do any one got a good idea and a recepie for > installation of the mysql++ api on Red Hat 7.0??
Why, yes, I do. I spent a week figuring this out myself.
mysql++ won't compile with gcc-2.96, which comes with RH 7.0. So you have to install gcc.2.95.2.1 (it doesn't seem to work with gcc-2.95.3 either). I'm not sure what is the proper way to install an older version of gcc from a newer one, but I compiled 2.95.2.1 using 2.96, then installed it. After that you have to make sure the compiler your make is using is the correct one. Type c++ -v to see the version.
The exceptions thrown by the shared library of mysql++ still won't work even when compiled with 2.95.2.1. You have two options. You can run configure with --enable-shared=no so the shared libraries aren't even compiled. That's what I've done. That way I automatically use the static version. It makes the object files of your programs bigger, but faster and they actually work. Or you could just not worry about it, and assume core dumps were caused by exceptions being thrown. (That's obviously not a good solution.)
Some other things to note:
automake doesn't work with the distribution of the source code. You have to run automake -a to add the necessary files.
The manual says to run reset-db. In the distribution it's actually resetdb.
The RH 7.0 rpms install everthing in /usr. gcc-2.95.2.1 and mysql++ will both install in /usr/local. Be aware of that--you may have to add some different paths to your Makefiles. (I'm sure you can specify where to install these things, but in my dream world I would spend my time programming, not installing, so I don't know much about those things. Look at the trouble it causes me!)
Hope this helps.
Greg
__________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/




