OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: w14 on September 08, 2004, 06:49:27 pm

Title: Compiling recent version of MySQL
Post by: w14 on September 08, 2004, 06:49:27 pm
I'd like to get a more recent version of MySQL on my Z than that available via the ZSI (3.22?). It seems to me to be a potentially easier task than editing the install scripts for many recent versions of php/mysql applications that are out there which use data types which are unsupported in version 3.22.

Has anyone any opinion whether this a safe assumption? Has anyone tried compiling a recent version for the Z, and would like to share the experience? (I think jp40 was attempting it?) If not, I'll give it a go and post the results here.

Mike.
Title: Compiling recent version of MySQL
Post by: w14 on September 09, 2004, 04:04:13 pm
Well, this ain't so easy, since I don't have a clue what I am doing ...

I set up the cross compiler and that works. It seems that mysql 4.0.20 isn't ready for cross compiling, even though the build scripts are full of tests for that very thing. A quote from the mysql bug lists:

"This requested feature (to make MySQL capable of being cross-compiled) is on our
project TODO list.  We hope to have this added in version 4.1."

Oh well. I'l try getting hold of the gamma version of 4.1 and see if this statement is correct.

If not, I guess I better learn about configure scripts ...

Mike.
Title: Compiling recent version of MySQL
Post by: jscriv on September 15, 2004, 07:14:04 pm
The releases for MySQL for Debian (ARM) should be compatible with the Z. However, the  more recent versions of MySQL for Debian ARM have been linked against later versions of the libraries that we have on the Z...  so a new compile may be easier.

I'd love to be able to play with a later version of MySQL too, I find the Z is a great learning platform when I'm on the bus etc
Title: Compiling recent version of MySQL
Post by: jp40 on September 16, 2004, 04:19:32 am
Hi
I built MySql 4.0.18 for my c760 which seems to work ok.

I had to hack the configure script to coment out the areas where cross compilation caused a problem
but it worked.

I never had time to package up the build as an rpm and installed and configured it manually.

 
Title: Compiling recent version of MySQL
Post by: asmar on September 16, 2004, 05:00:13 am
Solution is simply under http://anjackson.net/book/print/693 (http://anjackson.net/book/print/693)
Title: Compiling recent version of MySQL
Post by: w14 on September 16, 2004, 06:31:49 am
JP40, OK, thanks, I'll try again. Did you, by any chance, keep a copy of the configure script you used?

asmar, thanks for the link. The desription at the end for repackaging debian arm packages is very interesting.

Mike.
Title: Compiling recent version of MySQL
Post by: jscriv on September 16, 2004, 09:59:55 pm
Could I ask that if somone is going to cross-compile a later version that they also do one targetting the 5500?

Cheers,

Jeremy.
Title: Compiling recent version of MySQL
Post by: jp40 on September 17, 2004, 06:02:40 am
I have attached the configure script / config.status file and the Makefile
if that is of use