devslashneil has asked for the wisdom of the Perl Monks concerning the following question:
However after executing the script i get the following error:#!/usr/bin/perl use DBI; ($pass = shift) || die Useage(); print "Enter Listname:"; my $listname = <STDIN>; $db = "nMail"; $sock = "/tmp/mysql.sock"; $user = "nmail"; $dsn = "DBI:mysql:$db;mysql_socket=$sock"; $dbh = DBI->connect($dsn,$user,$pass); $sth = $dbh->prepare("INSERT INTO nMail.ML_Lists (Mname) VALUE +S ('$listname')"); $sth->execute() || die "Error: Could not create mailing list $ +listname\n"; $sth->finish(); $dbh->disconnect(); sub Useage { return " Error Invalid Arguments, Useage: $0 <password> "; }
Does anyone have any idea what may be causing this error? Or any ideas how to fix it?bash-2.03$ ./add_list.pl <*password-cut*> Enter Listname:Test ld.so.1: /usr/bin/perl: fatal: relocation error: file /usr/local/lib/p +erl5/site_perl/5.6.1/sun4-solaris/auto/DBD/mysql/mysql.so: symbol mys +ql_init: referenced symbol not found Killed bash-2.03$
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Database access error.
by Anonymous Monk on Jun 27, 2003 at 03:10 UTC | |
by devslashneil (Friar) on Jun 27, 2003 at 05:32 UTC | |
by devslashneil (Friar) on Jun 27, 2003 at 03:14 UTC | |
|
Re: Database access error.
by cchampion (Curate) on Jun 27, 2003 at 09:21 UTC | |
|
Re: Database access error.
by Anonymous Monk on Jun 27, 2003 at 02:57 UTC | |
by devslashneil (Friar) on Jun 27, 2003 at 03:08 UTC |