Jens Olscher wrote: > Hi Carilda! > > I don't know if you would be able to help, but you might at least know > someone who does.... Hi Jens. You should have put this on list, so I cc'ed to list. > I am trying to install midgard, mysql, apache, php on a solaris 2.6 > machine (sparky). Having read "Midgard Manual 6.4 Installing Midgard as > static modules in Apache", especially the first line mentioning Solaris, > we tried the here described way, but failed. Here is exactly what we did: > > - starting with a clean new solaris machine > - pkgadd gcc-2_8_1-sol26-sparc-local > - add /usr/local/bin to path via .profile (I am no expert, so that > seemed a good way..) > - pkgadd make-3_76_1-sol26-sparc-local > - pkgadd libstdc++-2_8_1-sol26.... > - added environment vars into .profile for root as detailed in Manual 6.4 > - pkgadd tar-1.12-local (to untar mysql) > - compiled new gcc-2.95.2 from source -- very good and very important because MySQL will not build with gcc 2.8.1 > > - pkgadd perl > - install mysql > - install midgard-lib > - install first preconfigured apache as per instructions > - install mod_midgard........ > > Here the trouble started, it could not find the library for midgard.... > "set" showed LD_LIBRARY_PATH to be as required, but I am not sure if the > library really is in the load path and if it is loaded..... How can I > check this? On Linux the ldconfig command does the job in telling me > where the compliler/linker will search, how do I do that on Solaris? Do > I need to reboot the machine after issuing a specific command? Hey -- this is not Microsquish here. You rarely need to reboot Solaris. LD_LIBRARY_PATH is dynamic -- and can be different for different users (neat, huh?). You were kind of quiet about "install mysql". What version, did you use a package, and most importantly, do you have the client lib, libmysqlclient.so? I think the error message for a missing mysql client had never been explicitly fixed. The library is in /usr/local/mysql/lib/mysql, and this directory must also be on your LD_LIBRARY_PATH. > > After asking about 5 people (none a "compile on Solaris" specialist) we > managed to suppress the error message (by commenting out the check for > the existance of the library test), which is not the right thing to do, > but it got us further... > > - install (from source) GNU-bison1.28 > - install midgard-php > - try to install apache: the configure worked, the make worked, but at > the make install it threw the towel, saying it can't find the > midgard.so.2.x library or so... That perhaps is a late reaction for our > trick at mod_midgard. > > After having spend 3 days asking several people, reading through man > pages, midgard-project webpages, mailing list archives I am now at the > end of all possible solutions bare asking you how you installed it on > your solaris machine... What do we have missing? How do we get this (or > any) library into the loadpath? How can we check the loadpath for > dynamic/shared libraries? Really, honestly, all you have to do is have LD_LIBRARY_PATH correctly defined for the user executing a program. Now, if you are starting apache at boot time from one of the /etc/rc.d directories, be sure to modify apachectl so that it correctly sets the LD_LIBRARY_PATH before it starts up. But, this is later, after you get it working.... This is not a Solaris thing, by the way... > Any help (whatsoever!) would be greatly appreciated!!! > > Thank you! > > Jens Olscher > > PS: MySQL works, the precompiled and installed Apache (without > mod_midgard) as well. The next level of enlightenment is now needed! -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
