|
From: Patrick G. <cap...@sl...> - 2001-09-30 13:30:52
|
ok, do it without the -a. Then, do it with a -p to verify that that lib path is now incorporated into the system's lib path list. Don Seiler wrote: > > That doesn't appear to be a valid option. > > Don > > [root@joshua ~/.cpan/build/DBD-mysql-2.0902]# ldconfig -a > ldconfig: invalid option -- a > Try `ldconfig --help' or `ldconfig --usage' for more information. > [root@joshua ~/.cpan/build/DBD-mysql-2.0902]# ldconfig --help > Usage: ldconfig [OPTION...] > Configure Dynamic Linker Run Time Bindings. > > -c, --format=FORMAT Format to use: new, old or compat (default) > -C CACHE Use CACHE as cache file > -f CONF Use CONF as configuration file > -l Manually link individual libraries. > -n Only process directories specified on the > command > line. Don't build cache. > -N Don't build cache > -p, --print-cache Print cache > -r ROOT Change to and use ROOT as root directory > -v, --verbose Generate verbose messages > -X Don't generate links > -?, --help Give this help list > --usage Give a short usage message > -V, --version Print program version > > Mandatory or optional arguments to long options are also mandatory or > optional for any corresponding short options. > > On Sun, 30 Sep 2001, Patrick Galbraith wrote: > > > ok, put the lib path in ld.so.conf, and run ldconfig -a > > > > Don Seiler wrote: > > > > > > OK Well every DBD::mysql test failed. I get many different incarnations > > > of this error: > > > > > > t/10dsnlist.........install_driver(mysql) failed: Can't load > > > 'blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: > > > blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: mysql_store_result at > > > /usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 200. > > > at (eval 1) line 3 > > > Compilation failed in require at (eval 1) line 3. > > > Perhaps a required shared library or dll isn't installed where expected > > > at t/10dsnlist.t line 45 > > > t/10dsnlist.........dubious > > > Test returned status 255 (wstat 65280, 0xff00) > > > DIED. FAILED tests 1-3 > > > Failed 3/3 tests, 0.00% okay > > > > > > It says that a shared library isn't installed where expected. Where does > > > it expect it to be? I symlinked /opt/mysql to /usr/local/mysql, but that > > > doesn't seem to help. I added /opt/mysql/lib/mysql to /etc/ld.so.conf and > > > ran ldconfig, but that didn't seem to have any effect. > > > > > > Argh, > > > Don. > > > > > > On Sun, 30 Sep 2001, Patrick Galbraith wrote: > > > > > > > It sounds to me that you have DBD::Mysql library path issues. Template > > > > is merely using DBD, and if you get those errors, it can't even properly > > > > use DBD::Mysql. Have you ran that tests that come with DBD::Mysql? That > > > > could reveal more about your problems. You might look at recompileing > > > > DBD::Mysql and making sure all the tests work properly. You could also > > > > make sure that ld.so.conf has all the lib paths (namely the ones you're > > > > using that aren't standard) and running ldconfig load those lib paths on > > > > your system (this is Linux only too). > > > > > > > > Don Seiler wrote: > > > > > > > > > > hullo. > > > > > > > > > > I'm trying to install slash (obviously). I installed mysql into > > > > > /opt/mysql from the tarball on mysql.org. So I had to more or less > > > > > manually install DBD::mysql to give it the locations of the files etc. > > > > > > > > > > Installing template from cpan fails because the DBI fails when it tries to > > > > > connect to the mysql test database. I'm able to connect with the user > > > > > that I give to Template, but the cpan test fails every time. Obviously I > > > > > can install it when I don't run the test, but I get this error when I run > > > > > install-slashsite: > > > > > > > > > > /usr/bin/perl: error while loading shared libraries: > > > > > /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBD/mysql/mysql.so: > > > > > undefined symbol: mysql_init > > > > > > > > > > I don't know if this is related to the Template problem or what. I did > > > > > install slash into /usr/local like suggested. Should I have installed > > > > > mysql via rpm or into a different location. I notice that the files > > > > > wanted are in /opt/mysql/include/mysql and /opt/mysql/lib/mysql, instead > > > > > of just /opt/mysql/include and /opt/mysql/lib which it seems some things > > > > > are expecting. > > > > > > > > > > Here is an abridged biography of my box: > > > > > RedHat 7.1 > > > > > MySQL 3.23.40 > > > > > Apache 1.3.20 > > > > > mod_perl 1.26 > > > > > slash 2.0.0 > > > > > > > > > > The apache and mod_perl seem to be working fine, and were installed as > > > > > specified in the slash instructions. > > > > > > > > > > I've been in the irc chat room, it doesn't seem like anyone is up for a > > > > > nice slash chat on Saturday night or Sunday morning. :p > > > > > > > > > > Anyway, I'm hoping someone will have some hints and/or suggestions for my > > > > > little dilemma. > > > > > > > > > > Don. > > > > > > > > > > _______________________________________________ > > > > > Slashcode-general mailing list > > > > > Sla...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/slashcode-general > > > > > > > > _______________________________________________ > > > > Slashcode-general mailing list > > > > Sla...@li... > > > > https://lists.sourceforge.net/lists/listinfo/slashcode-general > > > > > > > > > > _______________________________________________ > > > Slashcode-general mailing list > > > Sla...@li... > > > https://lists.sourceforge.net/lists/listinfo/slashcode-general > > |