Re: Can't start mysql server automatically
Michael Stassen [EMAIL PROTECTED] wrote: O Well, clearly LD_LIBRARY_PATH isn't set at startup. That's one of the reasons LD_LIBRARY_PATH isn't really the Solaris way, and is not recommended. With a proper setup, you should never need LD_LIBRARY_PATH in Solaris. In any version of Solaris, you can build with -R /usr/local/lib to create executables which know to look in /usr/local/lib to find libraries at run time. Yes and also do ldd /usr/local/lib/libstdc++.so.5 to check if everything else is found there. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net ___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
RE: Can't start mysql server automatically
Also you can also use the crle command to build a permanent set of library paths similar to ldconfig in Linux and other unices. There should be a man page for it on your system. You can simply add /usr/local/lib to there in the correct order and this resolves having to use LD_LIBRARY_PATH. Regards David Logan Database Administrator HP Managed Services 139 Frome Street, Adelaide 5000 Australia +61 8 8408 4273 - Work +61 417 268 665 - Mobile +61 8 8408 4259 - Fax -Original Message- From: Egor Egorov [mailto:[EMAIL PROTECTED] Sent: Monday, 23 August 2004 10:26 PM To: [EMAIL PROTECTED] Subject: Re: Can't start mysql server automatically Michael Stassen [EMAIL PROTECTED] wrote: O Well, clearly LD_LIBRARY_PATH isn't set at startup. That's one of the reasons LD_LIBRARY_PATH isn't really the Solaris way, and is not recommended. With a proper setup, you should never need LD_LIBRARY_PATH in Solaris. In any version of Solaris, you can build with -R /usr/local/lib to create executables which know to look in /usr/local/lib to find libraries at run time. Yes and also do ldd /usr/local/lib/libstdc++.so.5 to check if everything else is found there. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net ___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: Can't start mysql server automatically
Well, clearly LD_LIBRARY_PATH isn't set at startup. That's one of the reasons LD_LIBRARY_PATH isn't really the Solaris way, and is not recommended. With a proper setup, you should never need LD_LIBRARY_PATH in Solaris. In any version of Solaris, you can build with -R /usr/local/lib to create executables which know to look in /usr/local/lib to find libraries at run time. Starting with Solaris 8, you can use crle to add /usr/local/lib to the dynamic linker's path. Michael McAfee wrote: I configured MySQL to start automatically on a Sun Ultra10 running Solaris 9 as per the installation instructions installing the following scripts/links: - /etc/init.d/mysql - /etc/rc3.d/S99mysql - /etc/rc0.d/K01mysql The MySQL daemon however failed to start at system startup. The .err log file contained the following... 040814 21:27:55 mysqld started ld.so.1: /usr/local/mysql/libexec/mysqld: fatal: libstdc++.so.5: open failed: No such file or directory 040814 21:27:56 mysqld ended libstdc++.so.5 does exist (located in '/usr/local/lib') and is set in LD_LIBRARY_PATH. I can however start/stop/interact successfully with MySQL from the command line!?! I don't know how to correct this libstdc++.so.5 error...it exists. GR:-( Any help greatly appreciated. Thanks Graeme -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]