User Profile
Collapse
-
Jeff, I'm still having massive problems with this. No matter how I install the DBI module, it's never in the @INC path. You said that that path is set upon installation. Is it set in the Perl installation? If so, would uninstalling Perl and resinstalling it reset it? Also, what's the best way to remove perl from OS X? If all else fails, I'm about ready to do a clean reinstall of OS X and start from scratch.... -
Makefile.PL output - what's wrong here?
Can anyone help me debug this output? I've followed all the installation instructions to the letter, and I'm still getting this error:
...Code:peterv@MBP17.local<506>$: sudo Perl Makefile.PL | tee makefile.log tee: makefile.log: Permission denied PLEASE NOTE: For 'make test' to run properly, you must ensure that the database user 'root'
Leave a comment:
-
Jeff,
Yes I did write a simple script using DBI, and it failed. I don't remember what the original error message was, since I've been installing & uninstalling things all weekend trying to get the thing to work. Currently, this is the error message I get:
...Code:peterv@MBP17.local<502>$: db.pl install_driver(mysql) failed: Can't locate loadable object for module DBD::mysql in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.10.1/darwin-multi-2level
Leave a comment:
-
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC
I'm running OS X Snow Leopard on a MacBook Pro. I've installed Mysql using Macports. MySQL works fine, but I need to install the DBI module. I've tried several ways, but I always get the following error:
...Code:install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level
-
How to install a package in OS X
I'm new to OS X & Perl in general and have no experience in installing packages. I got the following message: "Can't locate Mysql.pm in @INC". I assume I need to install the Mysql.pm. Can someone post a simple step-by-step list of how to do this for me? I'd really appreciate it. Or, maybe better, point me to a reference on how to install packages?
Thanks much! -
How to create a button that references a hyperlink
I want to create a button on my page that when clicked, will take me to my homepage. Using just a link on the page works
,Code:<a href="index.html">Main Page</a
but I want to use a button. I've noticed posts mentioning javascript, but I'm already using php in this page, and I want to do the button with HTML. Can anyone help me out with this? Thanks in advance.... -
Problems writing stdout to a file
I'm having problems writing records to an output file. When I do it in Textpad running on Windows, the output file looks fine. When, however, I copy the script to a Linux machine and use the exact same code, it appends a ^M character on each line written to the file. I have no idea why this is happening. I'm writing to the file by redirecting STDOUT to it.
open STDOUT,"> ${output}" || die "$0 can't open $ifile";... -
Subroutine Parameters and Return Values
I'm using a "package" type subroutine, called test_package.pl . I'm calling it from a script called split0.pl. I want to pass the $0 variable, use the subroutine to split out just the filename, and pass that filename value back to the calling script. The subroutine does the processing correctly (I've verified with print statements), but I'm having trouble getting the value passed back to the calling script.
Here's the subroutine:...
No activity results to display
Show More
Leave a comment: