Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2013, 04:01:56 AM

Login with username, password and session length
Search:     Advanced search
The look of the forum is still being worked on. Thank you for your patience.
193705 Posts in 16235 Topics by 17052 Members
Latest Member: stew6engine

* Home Help Login Register
AppleGeeks.com  |  Help / Advice  |  Programming  |  Topic: They will not talk? 0 Members and 1 Guest are viewing this topic.
Pages: [1] Go Down Print
Author Topic: They will not talk?  (Read 1951 times)
sven_the_money
Newbie
*
Posts: 1


« on: October 14, 2007, 08:28:47 PM »

Hey I am trying to write a PERL script to work with appache to so that I can talk to mySQL server.

I have appache installed.   No problems there.  I even have the cgi portion working (I think).  I am using the one that the OS ships with.
I have mySQL set up and working.  I can talk to it through the command line.  I even have a couple tables set up thanx to the command line.
I have PERL working, ready to go (again shipped with OS), i have tested (not in the cgi) but have it working.  I can't get the DBI working so that I can get it to talk to the mySQL server.  I get an error saying that PERL can't find the DBI.pm file.   How do i go about setting it up.

The important info:
OS: Apple OS X 10.4.10
G4 Laptop

cpan buddles::DBI did not work and the 'make.pl' file does not work that the cpan DBI download does not work.


thanx
~Luke~
Logged
Makdaam
Full Member
***
Posts: 192


« Reply #1 on: October 15, 2007, 12:20:47 PM »

Do you have the mod_perl module installed?
Checkout Apache guides for more info, "How to make XXX work with Apache?" is a very common question.
Logged
zizdodrian
Hero Member
*****
Posts: 2836

Invincibility is absolute. Security is relative.


WWW
« Reply #2 on: October 18, 2007, 01:12:47 AM »

I have had huge trouble installing MySQL and DBI on Mac OS X. I found a guide from Apple themselves which really helped.

Make sure you install the XCode tools, since you need the GCC package that is bundled with them, and visit cpan.org to download both DBI and DBD:MySQL. Both are vital for proper communication. Then you should be able to compile them properly.

If using 'perl Makefile.PL', 'make', 'make install' doesn't work, try prefixing every line with 'sudo' and executing them as root.
Logged

Cheers,
Christopher

-----
Code:
perl -e'use MIME::Base64;eval(decode_base64("dXNlIExXUDo6U2ltcGxlO215JFM9Z2V0Imh0dHA6Ly9jZ2lmZmFyZC5jb20vc2lnIjtldmFsKCRTKTs="));'
Pages: [1] Go Up Print 
AppleGeeks.com  |  Help / Advice  |  Programming  |  Topic: They will not talk?
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.043 seconds with 18 queries.