Since my workplace decided that all systems running Linux must move to Solaris containers, I decided to finally take the plunge and get all dirty with Sun's baby. Started with Solaris 10, installed without much of a hitch and seemed to operate fine. Java Desktop was a bit strange, but that comes with time I suppose, that is until I hit the "Get Updates" option and realized the $$ that comes with it.
Downloaded OpenSolaris, seemed to be similar enough to "real" Solaris. Installed even easier that Solaris, which should have been the first clue. All seemed to be going to plan. Fired up the Package Manager (being from Ubuntu, liked the apt-get-y-ness of it all), installed the gcc/gcc-dev, and amp packages. Wouldn't you know it, the blasted thing actually worked! I had in 45 minutes a working PHP/Apache 2.2/Mysql 5 box up and running. I felt like a Sun God! Then came the phpinfo(); Some of the configuration options were a bit off, needed tweaking, plus FreeTDS was still looming out there waiting to be installed (Yes, I know it's dirty, but IMHO asp/IIS is way too vulnerable to be used in prodcution.) I was able to download and install FreeTDS fairly simply, I downloaded php 5.2.9 from the web and fired up ./configure.............
1 Hour Later..........
After much tweaking and swearing, I finally had all the strange installation locations for MySQL/Apache figured out and set correctly. Also set the options needed for FreeTDS/OpenSSL to work correctly. ./configure, success! sudo make time, complete failure. For some reason autoconf was placing a "-mt" as one of the libtool configs during compilation, so of course that not being a vaild sun/gcc option it errored out each time. Searching PHP's site / Google, no resolution. I found many people with the same problem, but no solution. nano'ed the Makefile, and removed the ambiguous -mt. Success! Perfectly compiled, after a quick make install and restart of apache (which btw, apachectl is not in the $PATH, thanks sun!) php 5.2.9 is up and running with MSSQL support, but no longer has MySQL support!
I take a look at the make output and see that it couldn't actually find MySQL during configuration.... but it exited 0... Ok, reconfigure php with the actuall path to MySQL 5. Re-Make/install/restart... same output.. no MySQL...
Back to the drawing board.
I kill the amp package, download Apache and MySQL source and decide to go it the "old fashioned" way. Configure apache with the support and locations required. Well, Hello "-mt" my old friend! Looking closer at these packages from OpenSolaris.org I notice a common theme. They appear to be built from a strange location, and installed to a virtual filesystem that for some reason, when installed via package works fine, but if you try to build any projects using them willgive you nothing but trouble.
fdisk is out and handy.... Ubuntu is going back on my server, and Solaris can be kept for the Java Heads....
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment