Results 1 to 8 of 8

Thread: mysql.pm error

  1. #1
    Join Date
    Feb 2003
    Location
    Kuala Lumpur, Malaysia
    Posts
    4,980

    mysql.pm error

    # /scripts/runstatsonce
    This script requires cPanel 6.4.2 Build 11+
    Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.6.1/mach /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.6.1/BSDPAN /usr/local/lib/perl5/5.6.1/mach /usr/local/lib/perl5/5.6.1 . /usr/local/cpanel /usr/local/cpanel/3rdparty/lib/perl) at /usr/local/cpanel/cpanellogd line 43.
    BEGIN failed--compilation aborted at /usr/local/cpanel/cpanellogd line 43.


    This is a FreeBSD system, tried ports but didn't work. How can we work out?

  2. #2
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Do you have bsdpan-DBD-mysql installed which is installed by cpanel?
    Code:
    pkg_info|grep DBD
    Giam Teck Choon
    :: Join choon.net Community today to share your tips and tricks on server issues please ::
    :: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::

  3. #3
    Join Date
    Feb 2003
    Location
    Kuala Lumpur, Malaysia
    Posts
    4,980
    bsdpan-DBD-mysql-2.9004 DBD::mysql - MySQL driver for the Perl5 Database Interface
    bsdpan-DBD-mysql-2.9006 DBD::mysql - MySQL driver for the Perl5 Database Interface
    bsdpan-DBD-mysql-2.9007 DBD::mysql - MySQL driver for the Perl5 Database Interface
    p5-DBI-137-1.37 The perl5 Database Interface. Required for DBD::* modules

  4. #4
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Output of:
    Code:
    perl -V
    Giam Teck Choon
    :: Join choon.net Community today to share your tips and tricks on server issues please ::
    :: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::

  5. #5
    Join Date
    Feb 2003
    Location
    Kuala Lumpur, Malaysia
    Posts
    4,980
    Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
    Platform:
    osname=freebsd, osvers=5.2-beta, archname=i386-freebsd
    uname='freebsd freebsd.org 5.2-beta freebsd 5.2-beta #0: thu dec 4 18:51:41
    pst 2003 kris@freebsd.org:usrsrcsysmagickernelpath i386 '
    config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.6.1/m
    ach -Dprivlib=/usr/local/lib/perl5/5.6.1 -Dman3dir=/usr/local/lib/perl5/5.6.1/ma
    n/man3 -Dsitearch=/usr/local/lib/perl5/site_perl/5.6.1/mach -Dsitelib=/usr/local
    /lib/perl5/site_perl/5.6.1 -Dscriptdir=/usr/local/bin -Dcc=cc -Ui_malloc -Ui_ico
    nv -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.6.1/BSDPAN" -Ui_gdbm -Dusemym
    alloc=n'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=unde
    f
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    Compiler:
    cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.6.1/BSDPAN" -fno-st
    rict-aliasing -I/usr/local/include',
    optimize='-O -pipe -mcpu=pentiumpro',
    cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.6.1/BSDPAN" -fno-strict-alia
    sing -I/usr/local/include'
    ccversion='', gccversion='3.3.3 [FreeBSD] 20031106', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize
    =8
    alignbytes=4, usemymalloc=n, prototype=define
    Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lm -lc -lcrypt -lutil
    perllibs=-lm -lc -lcrypt -lutil
    libc=, so=so, useshrplib=false, libperl=libperl.a
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib'


    Characteristics of this binary (from libperl):
    Compile-time options: USE_LARGE_FILES
    Built under freebsd
    Compiled at Dec 5 2003 03:03:19
    @INC:
    /usr/local/lib/perl5/site_perl/5.6.1/mach
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl
    /usr/local/lib/perl5/5.6.1/BSDPAN
    /usr/local/lib/perl5/5.6.1/mach
    /usr/local/lib/perl5/5.6.1

  6. #6
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    I guess you are using the system perl. Do this:
    Code:
    use.perl port
    Then try again:
    Code:
    perl -V
    Compare the result with the previous ones
    Then you can try running:
    Code:
    /scripts/runstatsonce
    But I advise you to run the below first:
    Code:
    /scripts/upcp
    Giam Teck Choon
    :: Join choon.net Community today to share your tips and tricks on server issues please ::
    :: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::

  7. #7
    Join Date
    Feb 2003
    Location
    Kuala Lumpur, Malaysia
    Posts
    4,980
    No, didn't fix it

  8. #8
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    Ops, you are running FreeBSD 5.x huh... didn't read your post carefully. Did you do any portupgrade recently?
    Giam Teck Choon
    :: Join choon.net Community today to share your tips and tricks on server issues please ::
    :: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •