Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. Perl DBI; mysql

    Perl DBI; mysql

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • Article Type: General
    • Product: Aleph
    • Product Version: 16.02

    Description:
    We are looking at ways to exchange information between Aleph and External system and one way we are considering is with perl dbi -- I see from US PRB 13584 that this is not part of Aleph Installation, but it looks like it can be installed, can someone install this for me on Alfred, or give me the instructions to do it myself?

    Resolution:
    [From Greg I:]
    Even though it is not our responsibility to manage mysql , I have spent some time with it and unfortunately ran into compilation problem whicnh may be related to mysql server setup in your system

    alfred-a16(1) >>perl Makefile.PL PREFIX=/exlibris/aleph/a16_1/product/perl-5.8.2 --cflags="-I/opt/csw/include/mysql -D_FORTEC_"
    I will use the following settings for compiling and testing:

    cflags (Users choice) = -I/opt/csw/include/mysql -D_FORTEC_
    libs (mysql_config) = -L/opt/csw/lib -L/opt/csw/lib/mysql -lmysqlclient -lz -lposix4 -lc -lgen -lsocket -lnsl -lm -L/opt/csw/lib -lssl -lcrypto
    nocatchstderr (default ) = 0
    nofoundrows (default ) = 0
    ssl (guessed ) = 1
    testdb (default ) = test
    testhost (default ) =
    testpassword (default ) =
    testuser (default ) =

    To change these settings, see 'perl Makefile.PL --help' and
    'perldoc INSTALL'.

    Checking if your kit is complete... Looks good

    Using DBI 1.37 installed in /exlibris/aleph/a16_1/product/perl-5.8.2/lib/site_perl/5.8.2/sun4-solaris/auto/DBI
    Writing Makefile for DBD::mysql
    alfred-a16(1) >>make
    cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
    cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
    cp lib/Mysql.pm blib/lib/Mysql.pm
    cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
    cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
    cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
    gcc -c -I/exlibris/aleph/a16_1/product/perl-5.8.2/lib/site_perl/5.8.2/sun4-solaris/auto/DBI -I/opt/csw/include/mysql -D_FORTEC_ -DDBD_MYSQL_WITH_SSL -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" -fPIC "-I/exlibris/aleph/a16_1/product/perl-5.8.2/lib/5.8.2/sun4-solaris/CORE" dbdimp.c
    /exlibris/aleph/a16_1/product/bin/perl -p -e "s/~DRIVER~/mysql/g" < /exlibris/aleph/a16_1/product/perl-5.8.2/lib/site_perl/5.8.2/sun4-solaris/auto/DBI/Driver.xs
    t > mysql.xsi
    /exlibris/aleph/a16_1/product/bin/perl /exlibris/aleph/a16_1/product/perl-5.8.2/lib/5.8.2/ExtUtils/xsubpp -typemap /exlibris/aleph/a16_1/product/perl-5.8.2/lib/5.8.2/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
    Warning: duplicate function definition 'do' detected in mysql.xs, line 192
    Warning: duplicate function definition 'rows' detected in mysql.xs, line 290
    gcc -c -I/exlibris/aleph/a16_1/product/perl-5.8.2/lib/site_perl/5.8.2/sun4-solaris/auto/DBI -I/opt/csw/include/mysql -D_FORTEC_ -DDBD_MYSQL_WITH_SSL -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" -fPIC "-I/exlibris/aleph/a16_1/product/perl-5.8.2/lib/5.8.2/sun4-solaris/CORE" mysql.c
    mysql.xs: In function `XS_DBD__mysql__dr__admin_internal':
    mysql.xs:100: too few arguments to function `mysql_shutdown'
    make: *** [mysql.o] Error 1
    alfred-a16(1) >>

    I would suggest your OS guys to take over from here.
    The working directory was this

    /exlibris/aleph/a16_1/product_source/source/DBD-mysql-2.9003


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Period must be entered" error creating a new course in v19
      • Perl module problem in upgrade express 20-21
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 16.02
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved