473,666 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can't run perl DBI to access mysql

1 New Member
Hi All,

I have installed mysql on my powermac G5 (64 bits) and I installed perl DBD-mysql-4.005 and DBI-1.601 that I obtained from CPAN. The installation did not work and I kept getting error message. I saw somewhere that the 64 bit version of mysql was creating problems so i installed the 32 bit version. Installing the perl modules went well but now I get error message when running my scripts.

I get:
<<
Expand|Select|Wrap|Line Numbers
  1. Can't load '/sw/lib/perl5/5.8.6/darwin-thread-multi-2level/auto/DBI/DBI.bundle' for module DBI: dlopen(/sw/lib/perl5/5.8.6/darwin-thread-multi-2level/auto/DBI/DBI.bundle, 1): no suitable image found.  Did find:
  2.  
  3.         /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/auto/DBI/DBI.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.8.6/darwin-thread-multi-2level/DynaLoader.pm line 230.
  4.  at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBI.pm line 255
  5. BEGIN failed--compilation aborted at /sw/lib/perl5/5.8.6/darwin-thread-multi-2level/DBI.pm line 255.
  6. Compilation failed in require at connect.pl line 4.
  7. BEGIN failed--compilation aborted at connect.pl line 4 >>
  8.  
  9. One source of problem might be that I transferred my files and folders from a macbook pro when I install the system on my G5. Could it carry over stuff made for the intel architecture?
  10.  
  11. my mysql version is:
  12. Server version: 5.0.45 MySQL Community Server (GPL)
  13. osx tiger 10.4.11
How whould I proceed? What is the problem? Perl, the modules or mysql? how can i reinstall perl simply on my machine?
Thanks for your help,

Christ
Removed Email Address
Nov 16 '07 #1
1 1929
eWish
971 Recognized Expert Contributor
I have not worked on a MAC I can not offer much assistance. For a faster resolution to your issue I would try seraching google and/or read the readme file, then lastly check out the DBI mailinglist.

--Kevin
Nov 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
8994
by: packrat | last post by:
I am attempting to build a Bugzilla server on OS X. All of this is new to me, working with the Perl, MySQL, and Bugzilla, so I have been banging my head often. Software error: When I run the bugzilla 'checksetup.pl' file, I get the following: -------------------------------------------------------------------
0
1387
by: John Ntow | last post by:
I have a binary distribution of MySQL 4.0.20 installed in /usr/local/mysql. Therefore, the only libmysqlclient file I have is libmysqlclient.a (static library). And also, Perl:DBI already installed. I'm trying to install perl-DBD-MySQL-2.9004 from source. What should I add to 'perl Makefile.PL' as arguments to make sure it finds the static library?
1
2616
by: Yun Guan | last post by:
Hello, I have problems installing DBD:mysql on Red Hat Linux 9, either from CPAN, or mannual install. The error is the same, something related to this Kid.pm file under perl. Should I reinstall Perl? Perl came with Red Hat Linux 9 installation. Please help. 1.) from CPAN: perl -MCPAN -e shell
1
3627
by: smsabu2002 | last post by:
Hi, I am facing the build problem while installing the DBD-MySql perl module (ver 2.9008) using both GCC and CC compilers in HP-UX machine. For the Build using GCC, the compiler error is produced due to the unknown GCC compiler option "+DAportable". For the Build using CC, the preprocessor error is produced due to the recursive declration of macro "PerlIO" in perlio.h file.
6
2534
by: Doomster | last post by:
In a previous job, we had Perl scripts which could interact with a SQL DB using Perl's DBI module We were able to programmatically add, delete and query tables using this module. Is it possible to do something similiar with Perl? (and not VBA)??? The reason I ask is because I want to use Access instead of MySQL because with Access, I can design Forms and Queries to display data relatively quickly. With MySQL, I'd have to use third...
3
4391
by: Shiraz | last post by:
Updated to the latest version of DBD-mysql using perl -MCPAN -e "install DBD-mysql" and now the calling mysql function r2() within perl work > $SQL_Text = "select r2() from dual " ; > $sth=$dbh->prepare($SQL_Text); > $sth->execute(); > while ( ($tt) = $sth->fetchrow_array( ) ) { print $tt; } for reference here is the mysql Funtion
3
5803
by: wombat | last post by:
I have a question about using arrays in Perl, involving connecting to MySQL databases. In the past I've used PHP to access databases and I've been playing around now with Perl. In PHP to access data in an array you would see something along the lines of $theresult and this would retrieve the data under the column "firstname". So far the only way I see how to retrieve data from an array in Perl would be $theresult, insert whatever number...
1
1837
by: incd | last post by:
Hello, I started out learning Perl today, but strict mode is just *weird* and not usefull? Why should I use it? What makes $Username different than the other variables? I was wondering, why I have to use "my ($Username)" to get this working: #!/usr/bin/perl -w
1
8871
by: chaosbuddha | last post by:
Hi! I am trying to set-up mysql-zrm to take backups of a remote mysql server. The mysqlhotcopy command is throwing up the following error: Output of command: 'mysqlhotcopy' is { install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5 /site_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib...
0
8454
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8785
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8560
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7389
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6200
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5671
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.