Author Topic: Compiling recent version of MySQL  (Read 2935 times)

w14

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • http://
Compiling recent version of MySQL
« 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.
« Last Edit: September 08, 2004, 06:53:02 pm by w14 »
sl-c3100
pdaxrom 1.1.0 beta1

w14

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • http://
Compiling recent version of MySQL
« Reply #1 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.
sl-c3100
pdaxrom 1.1.0 beta1

jscriv

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • http://
Compiling recent version of MySQL
« Reply #2 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

jp40

  • Newbie
  • *
  • Posts: 11
    • View Profile
Compiling recent version of MySQL
« Reply #3 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.

 

asmar

  • Newbie
  • *
  • Posts: 9
    • View Profile
Compiling recent version of MySQL
« Reply #4 on: September 16, 2004, 05:00:13 am »
Solution is simply under http://anjackson.net/book/print/693

w14

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • http://
Compiling recent version of MySQL
« Reply #5 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.
sl-c3100
pdaxrom 1.1.0 beta1

jscriv

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • http://
Compiling recent version of MySQL
« Reply #6 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.

jp40

  • Newbie
  • *
  • Posts: 11
    • View Profile
Compiling recent version of MySQL
« Reply #7 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