I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-04-01 16:07:02-07 by wimvd
Problem installing DBD::mysql
Hi all, I'm installing a new Mac (OS X 10.5, intel Pro chip) and transfering software from my old environment. I did install the gcc compiler make, lynx and wget because the CPAN installation needs them (or I do need them elsewhere later on). MySQL is up and running, interactively I can see everything, Apache runs, PHP is configured, can access the MySQL databases(s) also, so that seems to be OK. Now I run into trouble when trying to install the DBD::mysql modules, it just shows me some compilation problems I can't directly find underneath. I split the install in three parts, made sure all the relevant directories in /usr/local are there, even ran perl with the sudo command to make sure there wasn't a nasty protection problem but it doesn't want to finish it correctly.
$ sudo perl -MCPAN -e shell cpan> o conf CPAN::Config options and /Users/wim/.cpan/CPAN/MyConfig.pm: commit Commit changes to disk defaults Reload defaults from disk init Interactive setting of all options build_cache 10 build_dir /Users/wim/.cpan/build cache_metadata 1 cpan_home /Users/wim/.cpan dontload_hash ftp /usr/bin/ftp ftp_proxy getcwd cwd gpg gzip /usr/bin/gzip histfile /Users/wim/.cpan/histfile histsize 100 http_proxy inactivity_timeout 0 index_expire 1 inhibit_startup_message 0 keep_source_where /Users/wim/.cpan/sources lynx /usr/local/bin/lynx make /usr/bin/make make_arg make_install_arg makepl_arg PREFIX=/usr/local ncftp ncftpget no_proxy pager more prerequisites_policy ask scan_cache atstart shell /bin/bash tar /usr/bin/tar term_is_latin 1 unzip /usr/bin/unzip urllist ftp://download.xs4all.nl/pub/mirror/CPAN/ wget /usr/local/bin/wget cpan> install DBI cpan> install Data::ShowTable cpan> install DBD::mysql
This last one consistently runs into problems, I took the last part to show to you:
(lots of texts deleted) Manifying blib/man3/Bundle::DBD::mysql.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/a +rch')" t/*.t t/00base....................ok 1/6 # Failed test 'use DBD::mysql;' # in t/00base.t at line 21. # Tried to use 'DBD::mysql'. # Error: Can't load '/Users/wim/.cpan/build/DBD-mysql-4.010/blib/arch/auto/DBD/mysql/mysql.bun +dle' for module DBD::mysql: dlopen(/Users/wim/.cpan/build/DBD-mysql-4.010/blib/arch/auto/DBD/mysql +/mysql.bundle, 2): Symbol not found: _is_prefix # Referenced from: /Users/wim/.cpan/build/DBD-mysql-4.010/blib/arch/auto/DBD/mysql/mysql.bundle # Expected in: dynamic lookup # at (eval 6) line 2 # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at t/00base.t line 21. t/00base....................NOK 2FAILED--Further testing stopped: Unable to load DBD::mysql make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK
Can't find it, checked all I knew, did this before with older versions never a problem, especially the part on "Symbol not found: _is_prefix" worries me, but I can be wrong. Any suggestions ? Regards, Wim van Dommelen.
Direct Responses: 10424 | Write a response
Posted on 2009-04-05 18:10:41-07 by noaho in response to 10390
Re: Problem installing DBD::mysql
I, do you speak French. I have a Mac OS X Server 10.4 and use cpan I have an install of mysql for Movable type 4. DBD::mysql Your server has DBD::mysql installed (version 3.0002). I can try with you tomorrow or last. I need a week to make that I have a problem to install GD. Best regards noaho@aliceadsl.fr
Direct Responses: 10425 | Write a response
Posted on 2009-04-06 06:58:36-07 by wimvd in response to 10424
Re: Problem installing DBD::mysql
Hi,
Yes, I do speak a bit of french, not too much, not too fast.
I did this installation before, on OS X 10.4, no problem, some years ago. But now on 10..5 it just doesn't want to run. I'm sure I don't have DBD::mysql installed, because my old script (which did run fine on 10.4) complain about it.
Regards, Wim.
Direct Responses: Write a response