Softaculous http://www.softaculous.com/board/index.php? <![CDATA[Problems to connect to MySQL via Perl]]> http://www.softaculous.com/board/index.php?tid=7895&tpg=1#p27233
we have a problem to connect from a cgi file to a MySQL database.

(With AMPPS 3.2 on a MAC OS X 10.10.4 Yosemite)

Our small test script is the following:

Code
#!/Applications/AMPPS/perl/bin/perl -w

use strict;
use DBI;
use CGI::Carp qw(fatalsToBrowser);
use Digest::MD5 qw(md5_hex);
use CGI;

my $query=new CGI ;

my $dbh=DBNEW();
$dbh->disconnect ();

##########
sub DBNEW 
##########
{
    my $dsn = "DBI:mysql:database-name:database-host";
    my $dbh="";

    # Connect
    unless ( $dbh = DBI -> connect ("$dsn", "db-user", "dbpass" , {RaiseError=>1,PrintError=>0} ) ) {
        die "no connect: $DBI::errstr";   
    }
       
    return ( $dbh );
}

And when we start this script in a browser, we get the following error notice:

Code
Software error:

install_driver(mysql) failed: Can't load '/Applications/AMPPS/perl/lib/site_perl/5.20.2/darwin-2level/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Applications/AMPPS/perl/lib/site_perl/5.20.2/darwin-2level/auto/DBD/mysql/mysql.bundle, 1): Library not loaded: libmysqlclient.18.dylib
  Referenced from: /Applications/AMPPS/perl/lib/site_perl/5.20.2/darwin-2level/auto/DBD/mysql/mysql.bundle
  Reason: image not found at /Applications/AMPPS/perl/lib/5.20.2/darwin-2level/DynaLoader.pm line 197.
at (eval 7) line 3.
Compilation failed in require at (eval 7) line 3.
Perhaps a required shared library or dll isn't installed where expected
at /Applications/AMPPS/www/cgi-bin/test.cgi line 35.

Can you maybe see, what we are doing wrong? How can we solve the problem?

Thank you!

Funny

]]>
Wed, 29 Jul 2015 13:02:52 GMT http://www.softaculous.com/board/index.php?tid=7895&tpg=1#p27233
<![CDATA[Oxwall 1.7.5]]> http://www.softaculous.com/board/index.php?tid=7850&tpg=1#p27232 Wed, 29 Jul 2015 12:38:03 GMT http://www.softaculous.com/board/index.php?tid=7850&tpg=1#p27232 <![CDATA[Hi..]]> http://www.softaculous.com/board/index.php?tid=7894&tpg=1#p27231 ]]> Wed, 29 Jul 2015 08:20:25 GMT http://www.softaculous.com/board/index.php?tid=7894&tpg=1#p27231 <![CDATA[Update curl]]> http://www.softaculous.com/board/index.php?tid=7893&tpg=1#p27230 Is there a way to update curl in ampps?
In 3.2 the version is still 7.35 and i have a problem with that.
Thanks
Marco]]>
Wed, 29 Jul 2015 08:16:46 GMT http://www.softaculous.com/board/index.php?tid=7893&tpg=1#p27230
<![CDATA[Where can I get the best Denim Jeans ?]]> http://www.softaculous.com/board/index.php?tid=7892&tpg=1#p27229 ]]> Wed, 29 Jul 2015 06:57:47 GMT http://www.softaculous.com/board/index.php?tid=7892&tpg=1#p27229 <![CDATA[script install problem]]> http://www.softaculous.com/board/index.php?tid=7888&tpg=1#p27228
You can use Webuzo / Softaculous to install scripts on your server.]]>
Wed, 29 Jul 2015 06:40:04 GMT http://www.softaculous.com/board/index.php?tid=7888&tpg=1#p27228
<![CDATA[PHPLinkDirectory switched to payed service]]> http://www.softaculous.com/board/index.php?tid=5730&tpg=1#p27227 Tue, 28 Jul 2015 20:24:48 GMT http://www.softaculous.com/board/index.php?tid=5730&tpg=1#p27227 <![CDATA[Please add Max SiteSite CMS!]]> http://www.softaculous.com/board/index.php?tid=7844&tpg=1#p27226 Tue, 28 Jul 2015 12:10:10 GMT http://www.softaculous.com/board/index.php?tid=7844&tpg=1#p27226 <![CDATA[Where can I get the best Denim Jeans ?]]> http://www.softaculous.com/board/index.php?tid=7892&tpg=1#p27225 Thanks for replying. I have seen that they have a wide variety of bootcut jeans for women as well. I will definitely look through their catalog and consider buying something for my wife from there.]]> Tue, 28 Jul 2015 08:26:06 GMT http://www.softaculous.com/board/index.php?tid=7892&tpg=1#p27225 <![CDATA[Where can I get the best Denim Jeans ?]]> http://www.softaculous.com/board/index.php?tid=7892&tpg=1#p27224 best denim jeans at ShoppersFeed. I have been buying denim jeans from that website for some time now and they have the widest range of classy jeans fit to dress for any ocassion.
I hope it helped.
]]>
Tue, 28 Jul 2015 06:00:51 GMT http://www.softaculous.com/board/index.php?tid=7892&tpg=1#p27224