Flex Apache module hell
Yesterday I tried to install the flex sdk apache module on the linux server of one of my clients. Note “tried”.
Problem 1: The Java JRE isn’t super easy to install. Well, actually it is, but you just have to realize how to do it and the information out there is quite misleading. I’m no Linux nerd although I can handle a linux server fairly well. This server was a Debian Etch server, so my hopes were quite high. Apt-get is a good tool. The reason the info was so misleading is that all the articles I could found out there in “space” told me you cannot use apt-get to install the Java run-time because of some Sun legal policy. This is not correct. Since sometime in 2005 you can use apt-get to install Java, however you have to add the non-free repository to the sources.list file. Finally I found out how to do it.
Problem 2: The information in the Flex SDK about the apache module is slight to say the least. It is almost essential to find a third party tutorial on some blog to figure out how to set it up. One thing I hate about Adobe, which could be a result of the multitude of information they’re hosting, is the fact that all pages refer to other pages, and some of those pages refer back to the first page and so on and so forth.
Final problem: So I finally performed a manual install of the Flex SDK for Linux! Wohoo! or… not…
The final step is to restart the Apache server. “Nope. I won’t restart” he said, sneerfully. “You are missing an essential thing called GLIBC_2.4. You need that to be able to run the mod_flex.so! Ha ha!”.
In search of such a thing and why it wasn’t already there I found out that the glibc library only exist up to version 2.3 for Debian.
Conclusion
I can’t use the f*king apache module at all and will have to compile my Flex application locally and upload to the server. Too bad, because that will not be easy giving the fact that I’m not alone in this project. The whole idea behind this new project we’re on was creating an online application we could build together.
If someone out there has made this work and can help me out… PLEASE HELP!
Chears
Daniel