Can't install perl modul DBD::Oracle with XE

Hello,
I have installed oracle 10.2.0.1 XE and want now install the perl modul DBD::Oracle.
After running
perl Makefile.PL
I get the message:
Unable to locate an oracle.mk, proc.mk or other suitable *.mkfile in your Oracle installation. (I looked in
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/lib/oracle.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/oracle.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo/demo_rdbms.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/otrace/demo/atmoci.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/precomp/demo/proc/proc.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/precomp/demo/proc/demo_proc.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/proc/lib/proc.mk /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/proc16/lib/proc16.mk)
And the program is right!!
I do not have any of this files on my Computer.
I also looked in the files
oracle-instantclient-basic-10.2.0.1-1.i386.rpm
oracle-instantclient-devel-10.2.0.1-1.i386.rpm
where I also can't find these files.
Could you please help and tell me, where I can get these files?
Thank you,
Marc

See the thread on Perl with XE in Re: How can I get CPAN  DBD::Oracle to install with XE?
-- cj

Similar Messages

  • Can't install perl modules for bugzilla

    I'm currently attempting to install Bugzilla on my Arch server. This service depends on Perl and a collection of modules.
    I attempted:
    perl install-module.pl --all
    ... and it worked, so it seemed. However, when attempting to run my install script again, I am warned that the module DBI is not installed. I attempt to install it manually (specify it in particular with the previous command), and it says that DBI is up to date. I attempt the script again, and still get the error.
    Is this a bug with Bugzilla's install script, or with the installation of Perl modules?

    Here is a link to a resolution in Lion. It may also solve your Mountain Lion Perl DBD issue as well.
    If you run the command below before executing your Perl script the library is found and all is well!
    export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
    Put this in your .bashrc or .bash_profile.
    On Apple StackExchange, Matthew Weiss had another approach.
    I found on another website the following command
    $ sudo perl -MCPAN -e 'CPAN::Shell->notest(install => CPAN::Shell->r)'
    This updated all my perl modules and all is back to normal. Not sure why or what, but don't care that it is working now.

  • Uninstall all CPAN-installed Perl modules

    A while back, there was a large perl upgrade which required rebuilding of manually-installed Perl modules. At the time, I did not take much of any action as I did not use any applications which depended on CPAN-installed modules -- all I did was to uninstall some older Perl apps which I no longer used.
    Unfortunately, that has recently changed.
    Though I know exactly which modules I need to have on my system when all is said and done, I have no idea how to uninstall all of the old ones which came from the CPAN shell. Does anyone know how to do so?

    rowdog wrote:
    Well, modules are just files so, if you're lucky, the easy way is to find the directory where the modules were installed and delete them.
    If you're unlucky, you've intermingled CPAN modules with those installed by Arch. If that's the case, you might be able to delete each module by hand but you need to be careful not to wipe out Arch's modules. This is slow and hazardous work so please be careful.
    My guess would be that the files are installed in /usr/lib/perl5/site_perl, because mine's empty and that's what it's for. The exact location is controlled by whatever you used to install the modules. (cpan probably, but there are others.)
    If you're really lucky, you can get away with
    cd /usr/lib/perl5/site_perl
    rm -rf .
    Yes, I do have such bad luck. I have used the CPAN.pm shell, the AUR, and pacman to install Perl modules. I shall do more research regarding exactly what goes where during a CPAN.pm-based install. I am not at my own computer so I cannot do all of this now. I will get back to you on this tomorrow. Thank you for your response.
    Last edited by Bushman (2011-07-31 13:10:00)

  • How Can I install Web Service on Oracle 11g r1?

    How Can I install Web Service on Oracle 11g r1?

    Hi,
    Is necesary install XDB?
    Because i have executed;
    select * from dba_registry
    where COMP_ID = 'XDB'
    Oracle XML Database
    Regards

  • How can I install attachments for SAP notes with zip-files ???

    How can I install attachments for SAP notes with zip-files ???

    Can you elaborate on your question? How exactly is your question related to SAP NetWeaver Portal: Application Integration? If you are really asking how to install attachments contained in SAP notes, there is no automatic/general way and you should ask your question in the Software Support and Maintenance space to begin with. What SAP note(s) are you looking at installing?

  • Can we install PHP server under Oracle E-Business R12?

    Hi,
    Can we install PHP server on oracle applications R12 for publishing PHP pages from E-Business?
    Thanks & Regards.

    Can we install PHP server on oracle applications R12 for publishing PHP pages from E-Business?As long as you install it in a different home/directory then you should be OK.
    Thanks,
    Hussein

  • Why I can't install Flash Builder 4.6 with a Master Collection Serial Number?

    Hi all,
    downloaded Flash builder 4.6, i had a Master collection 5.5 suite which includes (obviously) Flash Builder 4.5,1.
    I found that I can’t install the 4.6 version with the serial number of the Master Collection.
    The Adobe support told me thet I can’t install the single packet but I can upgrade the entire suite of (probably) six months when the 6.0 version will becomes available.
    I feel cheated.
    I spent a lot of money to buy and upgrade the entire suite and now I can’t upgrade Flash Builder only.
    Can you help me?
    If there is not a solution I think I'll nerver upgrade the suite anymore, I'will port all of my mobile code in Objective-C and "tanti saluti".

    Deeptika's answer is very helpful.
    Now, this is how I activated the FB 4.6, using theMaster Collection CS 5.5 serial number:
    1.- Uninstalled Flash Builder 4.5 from the MC (Select the 'Delete preferencies'- checkbox).
    2.- Deleted and cleaned all program's cache with CCleaner.
    3.- Installed Flash Builder 4.6 in TRIAL MODE, and -IMPORTANT!- Be sure that you are selecting the SAME LANGUAGE on wich you installed your Master Collection!!
        (I had some troubles because I didn't remember that I installed the MC with "Español", and I tried to install FB 4.6 in "Español (Latinoamerica)").
    4.- After a reboot of my PC, I opened Flash Builder 4.6.
    5.- It asked me for a serial number, I had to wrote down my Master Collection's serial number.
    6.- I was happy because my FB 4.6 serial number was accepted, (after three unsuccesful attempts because of the wrong language installation).
    So, everything is about languages.
    In the last case, maybe you should uninstall your entire Master Collection (including Flash Builder 4.5) and then reinstall it (without FB 4.5). Then install FB 4.6.
    Yep, this is a little annoying, but now I can use the Flash Builder 4.6. It worth the work.
    Let us now if you could install your FB 4.6 succesfuly.
    Regards!

  • Am in france how can i install itunes in my laptop with english lenguoges

    am in france how can i install itunes in my laptop with english lenguoges

    Set your computer language to english.
    Cotrol panel > Region and language.

  • Problems to compile Perl DBD::Oracle with InstantClient 11.1.0.7

    machine:~/.cpan/build/DBD-Oracle-1.22-WXjXWy# perl Makefile.PL
    Using DBI 1.607 (for perl 5.010000 on x86_64-linux-gnu-thread-multi) installed in /usr/local/lib/perl/5.10.0/auto/DBI/
    Configuring DBD::Oracle for perl 5.010000 on linux (x86_64-linux-gnu-thread-multi)
    Remember to actually READ the README file! Especially if you have any problems.
    Installing on a linux, Ver#2.6
    Using Oracle in /usr/lib/oracle/11.1/client64
    DEFINE SQLPLUSRELEASE = "1101000700" (CHAR)
    Oracle version 11.1.0.7 (11.1)
    Found /usr/share/oracle/11.1/client64/demo.mk
    Found /usr/share/oracle/11.1/client64/demo.mk
    Using /usr/share/oracle/11.1/client64/demo.mk
    Your LD_LIBRARY_PATH env var is set to '/usr/lib/oracle/11.1/client64/lib'
    Reading /usr/share/oracle/11.1/client64/demo.mk
    WARNING: Oracle /usr/share/oracle/11.1/client64/demo.mk doesn't define a 'build' rule.
    WARNING: I will now try to guess how to build and link DBD::Oracle for you.
    This kind of guess work is very error prone and Oracle-version sensitive.
    It is possible that it won't be supported in future versions of DBD::Oracle.
    PLEASE notify dbi-users about exactly why you had to build it this way.
    Found header files in /usr/include/oracle/11.1/client64.
    Checking for functioning wait.ph
    System: perl5.010000 linux excelsior 2.6.26-1-vserver-amd64 #1 smp sat nov 8 20:24:14 utc 2008 x86_64 gnulinux
    Compiler: cc -O2 -g -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    Linker: /usr/bin/ld
    Sysliblist:
    Oracle makefiles would have used these definitions but we override them:
    CC: /usr/bin/g++
    LDFLAGS: -g
    [-g]
    Linking with -L../../ -locci -lclntsh -lpthread [from $(CCLIB)]
    Checking if your kit is complete...
    Warning: the following files are missing in your kit:
    META.yml
    Please inform the author.
    Warning: -L../../ changed to -L/root/.cpan/build/DBD-Oracle-1.22-WXjXWy/../../
    LD_RUN_PATH=/usr/lib/oracle/11.1/client64/lib
    Using DBD::Oracle 1.22.
    Using DBD::Oracle 1.22.
    Using DBI 1.607 (for perl 5.010000 on x86_64-linux-gnu-thread-multi) installed in /usr/local/lib/perl/5.10.0/auto/DBI/
    Writing Makefile for DBD::Oracle
    *** If you have problems...
    read all the log printed above, and the README and README.help.txt files.
    (Of course, you have read README by now anyway, haven't you?)
    Everything works fine right now ;-) but now:
    machine:~/.cpan/build/DBD-Oracle-1.22-WXjXWy# make
    Skip blib/lib/DBD/Oracle.pm (unchanged)
    Skip blib/lib/oraperl.ph (unchanged)
    Skip blib/arch/auto/DBD/Oracle/dbdimp.h (unchanged)
    Skip blib/arch/auto/DBD/Oracle/ocitrace.h (unchanged)
    Skip blib/lib/Oraperl.pm (unchanged)
    Skip blib/arch/auto/DBD/Oracle/Oracle.h (unchanged)
    Skip blib/lib/DBD/Oracle/GetInfo.pm (unchanged)
    Skip blib/arch/auto/DBD/Oracle/mk.pm (unchanged)
    cc -c -I/usr/include/oracle/11.1/client64 -I/usr/local/lib/perl/5.10.0/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"11.1.0.7\" Oracle.c
    Oracle.xsi: In function 'XS_DBD__Oracle__db_disconnect':
    Oracle.xsi:306: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:306: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    Oracle.xsi: In function 'XS_DBD__Oracle__db_DESTROY':
    Oracle.xsi:352: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:352: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    Oracle.xsi:380: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:380: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    Oracle.xsi: In function 'XS_DBD__Oracle__st_finish':
    Oracle.xsi:675: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:675: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    Oracle.xsi: In function 'XS_DBD__Oracle__st_DESTROY':
    Oracle.xsi:752: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:752: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    Oracle.xsi:766: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:766: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    cc -c -I/usr/include/oracle/11.1/client64 -I/usr/local/lib/perl/5.10.0/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"11.1.0.7\" dbdimp.c
    dbdimp.c: In function 'ora_db_login6':
    dbdimp.c:528: warning: format '%d' expects type 'int', but argument 8 has type 'size_t'
    dbdimp.c:535: warning: format '%d' expects type 'int', but argument 8 has type 'size_t'
    dbdimp.c:738: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
    dbdimp.c:738: warning: format '%d' expects type 'int', but argument 9 has type 'long unsigned int'
    dbdimp.c:787: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    dbdimp.c:787: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    dbdimp.c: In function 'ora_st_cancel':
    dbdimp.c:842: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    dbdimp.c: In function 'ora_db_disconnect':
    dbdimp.c:879: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    dbdimp.c:879: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    dbdimp.c: In function 'ora_db_STORE_attrib':
    dbdimp.c:976: warning: value computed is not used
    dbdimp.c: In function 'createxmlfromstring':
    dbdimp.c:1058: warning: format '%d' expects type 'int', but argument 3 has type 'STRLEN'
    dbdimp.c:1066: warning: format '%ld' expects type 'long int', but argument 2 has type 'int'
    dbdimp.c:1077: warning: passing argument 4 of 'OCILobWriteAppend' from incompatible pointer type
    dbdimp.c: In function 'dbd_preparse':
    dbdimp.c:1243: warning: value computed is not used
    dbdimp.c: In function 'dbd_rebind_ph_varchar2_table':
    dbdimp.c:1546: warning: format '%d' expects type 'int', but argument 3 has type 'STRLEN'
    dbdimp.c:1554: warning: format '%d' expects type 'int', but argument 3 has type 'STRLEN'
    dbdimp.c:1584: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long unsigned int'
    dbdimp.c:1584: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long unsigned int'
    dbdimp.c: In function 'dbd_rebind_ph_number_table':
    dbdimp.c:1991: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long unsigned int'
    dbdimp.c:1991: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long unsigned int'
    dbdimp.c: In function 'dbd_rebind_ph_char':
    dbdimp.c:2197: warning: format '%d' expects type 'int', but argument 5 has type 'IV'
    dbdimp.c: In function 'pp_exec_rset':
    dbdimp.c:2412: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    dbdimp.c:2412: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    dbdimp.c: In function 'ora_bind_ph':
    dbdimp.c:2743: warning: format '%d' expects type 'int', but argument 2 has type 'IV'
    dbdimp.c:2752: warning: format '%d' expects type 'int', but argument 2 has type 'IV'
    dbdimp.c:2786: warning: format '%d' expects type 'int', but argument 3 has type 'IV'
    dbdimp.c:2799: warning: unknown conversion type character '_' in format
    dbdimp.c: In function 'ora_st_execute':
    dbdimp.c:3018: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    dbdimp.c:3018: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    dbdimp.c: In function 'ora_st_execute_array':
    dbdimp.c:3328: warning: unused variable 'sv2'
    dbdimp.c: In function 'ora_st_finish':
    dbdimp.c:3473: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    dbdimp.c:3473: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    dbdimp.c:3491: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    dbdimp.c: In function 'ora_st_destroy':
    dbdimp.c:3587: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    dbdimp.c: In function 'ora_st_STORE_attrib':
    dbdimp.c:3672: warning: value computed is not used
    dbdimp.c: In function 'ora_st_FETCH_attrib':
    dbdimp.c:3720: warning: value computed is not used
    cc -c -I/usr/include/oracle/11.1/client64 -I/usr/local/lib/perl/5.10.0/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"11.1.0.7\" oci8.c
    oci8.c: In function 'fetch_cleanup_rset':
    oci8.c:974: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    oci8.c:974: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    oci8.c: In function 'fetch_func_rset':
    oci8.c:1031: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    oci8.c:1031: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    oci8.c: In function 'dbd_rebind_ph_lob':
    oci8.c:1095: warning: format '%ld' expects type 'long int', but argument 2 has type 'ub4'
    oci8.c: In function 'get_attr_val':
    oci8.c:1655: warning: unknown conversion type character 'O' in format
    oci8.c:1655: warning: format '%s' expects type 'char *', but argument 6 has type 'size_t *'
    oci8.c:1655: warning: too many arguments for format
    oci8.c:1672: warning: unknown conversion type character 'O' in format
    oci8.c:1672: warning: format '%s' expects type 'char *', but argument 6 has type 'size_t *'
    oci8.c:1672: warning: too many arguments for format
    oci8.c: In function 'get_object':
    oci8.c:1911: warning: format '%d' expects type 'int', but argument 6 has type 'struct OCIIter **'
    oci8.c: In function 'fetch_get_piece':
    oci8.c:2024: warning: format '%d' expects type 'int', but argument 6 has type 'ub1 *'
    oci8.c:2047: warning: format '%d' expects type 'int', but argument 7 has type 'ub4 *'
    oci8.c:2056: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    oci8.c:2061: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    oci8.c:2061: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    oci8.c: In function 'ora_describe':
    oci8.c:2823: warning: format '%ld' expects type 'long int', but argument 2 has type 'ub4'
    oci8.c:2963: warning: format '%d' expects type 'int', but argument 6 has type 'void *'
    oci8.c: In function 'ora_st_fetch':
    oci8.c:3048: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    oci8.c:3063: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    oci8.c:3074: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    oci8.c:3085: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    oci8.c:3085: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    oci8.c:3092: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    oci8.c:3092: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    oci8.c: In function 'init_lob_refetch':
    oci8.c:3474: warning: value computed is not used
    oci8.c:3549: warning: value computed is not used
    oci8.c:3556: warning: format '%ld' expects type 'long int', but argument 2 has type 'ub4'
    oci8.c:3596: warning: format '%ld' expects type 'long int', but argument 2 has type 'int'
    Running Mkbootstrap for DBD::Oracle ()
    chmod 644 Oracle.bs
    rm -f blib/arch/auto/DBD/Oracle/Oracle.so
    LD_RUN_PATH="/usr/lib/oracle/11.1/client64/lib" cc -shared -O2 -g -L/usr/local/lib Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so \
    -L/usr/lib/oracle/11.1/client64/lib -L/root/.cpan/build/DBD-Oracle-1.22-WXjXWy/../.. -locci -lclntsh -lpthread \
    chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
    cp Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs
    chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
    /usr/bin/perl "-Iblib/arch" "-Iblib/lib" ora_explain.PL ora_explain
    Extracted ora_explain from ora_explain.PL with variable substitutions.
    cp ora_explain blib/script/ora_explain
    /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/ora_explain
    Manifying blib/man1/ora_explain.1p
    Manifying blib/man3/DBD::Oracle.3pm
    Manifying blib/man3/DBD::Oraperl.3pm
    Some clues or just forget it!
    Thanx, Alejandro

    I'm also a PostgreSQL man, so it should be easy to communicate.
    I can reproduce your problem with DBD::Oracle, and I guess that your problem is that the database is on a different machine, while "make test" assumes that it is on the same machine (like when you unset PGHOST in PostgreSQL).
    The error message means that for a local database Oracle expects a local "database name" in the environment variable ORACLE_SID, but the environment variable is unset (roughly equivalent to PGDATABASE).
    When you encounter connection problems with DBI, it's always a good idea to try to connect in the same way with the command line utility "sqlplus".
    In your case, I would say that the equivalent connection attempt with sqlplus would be:
    sqlplus scott/tiger
    which will probably give you the same error message, right?
    With your tnsnames.ora, I would recommend that you set the environment variable TWO_TASK to "caw".
    Then Oracle will look for the entry "caw" in tnsnames.ora (this is roughly comparable to setting PGSERVICE in PostgreSQL, where PGSYSCONFDIR corresponds to Oracle TNS_ADMIN).
    If your test login is not "scott/tiger", set ORACLE_USERID as described in README.login.txt.
    Yours,
    Laurenz Albe

  • Can't install Perl DBI or DBD::mysql after Mountain Lion upgrade

    I recently upgraded to Mountain Lion and found that my Perl DBI scripts stopped working, with the error message "Can't locate DBD/mysql.pm in @INC".
    The last time this happened, after upgrading to Lion, the solution was to install the new version of Xcode. Then I was able to use the Perl CPAN module to install DBI and DBD::mysql. (MySQL is already installed and running with no problem on the Mountain Lion machine.)
    Now I have installed Xcode 4.5.1, and tried
    mrb% sudo perl -MCPAN -e shell
    [then CPAN configures itself]
    cpan[1]> install DBI
    and it fails with this final message:
    /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:583:11: fatal error:
          'sys/types.h' file not found
    #       include <sys/types.h>
                    ^
    1 error generated.
    make: *** [Perl.o] Error 1
      TIMB/DBI-1.622.tar.gz
      /Developer/usr/bin/make -- NOT OK
    'YAML' not installed, will not store persistent state
    Running make test
      Can't test without successful make
    Running make install
      Make had returned bad status, install seems impossible
    Failed during this command:
    TIMB/DBI-1.622.tar.gz                        : make NO
    Can anybody help?

    Here is a link to a resolution in Lion. It may also solve your Mountain Lion Perl DBD issue as well.
    If you run the command below before executing your Perl script the library is found and all is well!
    export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
    Put this in your .bashrc or .bash_profile.
    On Apple StackExchange, Matthew Weiss had another approach.
    I found on another website the following command
    $ sudo perl -MCPAN -e 'CPAN::Shell->notest(install => CPAN::Shell->r)'
    This updated all my perl modules and all is back to normal. Not sure why or what, but don't care that it is working now.

  • How to install Perl DBI & DBD modules correctly?

    PLEASE HELP!
    I'm running OS X Snow Leopard 10.6.3 on a MacBook Pro.
    Using MacPorts I've installed the following items:
    mysql5 @5.1.45_0 (active)
    mysql5-server @5.1.45_0 (active)
    p5-dbd-mysql @4.013_0+mysql5 (active)
    p5-dbi @1.609_0 (active)
    perl5.10 @5.10.1_1+darwin (active)
    Everything seems to be working, with the exception ofthe Perl DBI module, and the DBD module. Whenever I try to run a Perl program using DBI, I get the following error:
    Sun Apr 18 03:18:42 EDT 2010
    ~/Perl1 ->
    [email protected]<520>$: db.pl
    install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .) at (eval 3) line 3.
    Perhaps the DBD::mysql perl module hasn't been fully installed,
    or perhaps the capitalisation of 'mysql' isn't right.
    Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge.
    at /Users/peterv/Perl1/db.pl line 8
    Sun Apr 18 03:18:42 EDT 2010
    If anyone can also explain what @INC is (I'm assuming it's some kind of path), how to display its value, and how to set it correctly, I'd appreciate that too! I've been working on this for days, so I'd really be grateful for some help!
    Thanks,
    Peter V.

    I've found the problem. I didn't realize that OS X Snow Leopard came with 2 versions of Perl installed, so when I wanted to upgrade to 5.10, I installed it using MacPorts. I also hadn't realized that MacPorts paths had /opt/local prepended to them, so I was running the wrong version of Perl with it. Now I don't get the original error message I posted, but I do get these error messages:
    dyld: lazy symbol binding failed: Symbol not found: mysqlinit
    Referenced from: /opt/local/lib/perl5/site_perl/5.10.1/darwin-multi-2level/auto/DBD/mysql/mysql. bundle
    Expected in: dynamic lookup
    dyld: Symbol not found: mysqlinit
    Referenced from: /opt/local/lib/perl5/site_perl/5.10.1/darwin-multi-2level/auto/DBD/mysql/mysql. bundle
    Expected in: dynamic lookup
    Trace/BPT trap
    Can someone help me out with these?
    Thanks in advance!

  • How to remove/uninstall custom installed perl modules?

    Hello all.
    Yesterday I upgraded from 10.3.7 to 10.4.5, then started to reinstall a bundle of perl modules (via the Terminal and 'perl Makefile.PL -- make -- make test -- [sudo] make install').
    As I saw too late, some of those modules I installed are now part of the standard OS X installation -- now some perl modules are twice on my machine, the 'originals' (so to say) in '/System/Library/Perl/5.8.6/...', and the 're-installed' are -- as usually -- in '/Library/Perl/5.8.6/...'.
    My questions:
    (1) Can these duplicates do any harm while executing perl code?
    (2) Is there an easy way to get rid of the duplicates (e.g., move the associated files in '/Library/Perl/5.8.6/...' to the trash)?
    Fortunately I have saved the terminal output of every installation, so it should be easy to find everything that was changed.
    Any advice is appreciated -- thanks in advance.
    Joerg
    G4/400 PCI (Oct. 1999) w/ 1 GB RAM & 128GB internal drive, Pioneer DVR-110D   Mac OS X (10.4.4)  

    Perl has a list of paths it searches when it needs to find a given module, similar to how the shell uses the PATH variable. If the things you installed are in a directory after that which contains Apple's official stuff, your stuff is invisible. Check the section labeled "@INC" in the output of 'perl -V'...that list is searched top-to-bottom.
    If what you installed is ahead of Apple's but what you installed is at least as high a version number as Apple's, again no problem in general. The modules Apple supplies have genereally quite stable API, so there's no problem if a program expects Appl'es but gets yours instead. OTOH, if you have a lower version, there could be trouble, since things may rely on the features only present in new versions (something for a certain OS X would reasonably assume "the stuff that came with that OS X" as a minimum).
    Anything you installed manually you can remove manually as well, using "rm" or dragging stuff to the trash. Modules often install a .packlist file somewhere in $arch/auto/ in your perl lib dir.
    I think you can often do '[sudo] make uninstall UNINST=1' to uninstall, assuming you kept the original builds or feel like redoing 'perl Makefile.PL' in the exact same version of the modules you installed. However, the 'uninstall' target is generally frowned upon by perl folks.

  • Fail installing perl modules in new sparc server

    Hi,
    I'm trying to install the perl modules needed by my applications in a sparc server SunFire V210 with solaris 9 64bit. All the attempts fail because the interpreter is compiled with forte, this is the explanation i got. I found a solution in CPAN called perlgcc but it doesn't work it build a bad Makefile, the file has a lot of mistakes. Perl.com people tell me to change parameters in the makefiles and Config.pm but it's very hard to find the correct values, i'm not sure i fix the correct things.still it doesn't work.
    I need an urgent solution it permits me to add modules without correction in the each makefile. I hope there is a standar procedure to solve it.
    Thanks!

    Hi,
    Here is your solution (I hope). I've being doing this this week and worked.
    Look the stuff is connected with the compilers used to complie perl and as you see later other stuff on the sun. At the sun the stuff is compiled with sun compiler which is not provided on the solaris 8, 9 nor 10. Fortunately there is gcc installed on the sol10.
    -bash-3.00# gcc --version<br />
    gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
    Copyright (C) 2004 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    -bash-3.00#
    The perl is compiled with sun compiler cc
    -bash-3.00# perl -V | more
    More
    Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
    More
    Platform:
    osname=solaris, osvers=2.10, archname=sun4-solaris-64int
    uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=unde
    f
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    Compiler:
    cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_T
    S_ERRNO',
    optimize='-xO3 -xspace -xildoff',
    cppflags=''
    ccversion='Sun WorkShop', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lsee
    ksize=8
    alignbytes=8, prototype=define
    Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.8.
    4/lib/sun4-solaris-64int/CORE'
    cccdlflags='-KPIC', lddlflags='-G'
    What to do??? Yes - you are on sol10 - then do it
    1. Logon as a root
    2. Check your path and compare with
    -bash-3.00# echo $PATH
    /usr/sbin:/usr/bin:/usr/sfw:/usr/sfw/bin:/usr/sfw/lib:/usr/s fw/include:/opt/sfw:
    /opt/sfw/bin:/opt/sfw/lib:/opt/sfw/include:/usr/ccs/bin:/usr /ccs/lib
    -bash-3.00#
    if differs upto the last /usr/ccs/lib modify your profile file ( anthing ofter the last /usr/ccs/lib can be aded).
    3. Check out the the comands
    gcc --version<br />
    perl -V
    4. If everything upto this step is ok you can proceed
    5. You may do the installation of the perl modules in two ways:
    a.) with CPAN module - Internet connection MANDATORY
    b.) with perl and downloaded tar.gz module
    5.a) With CPAN module
    5.a.1) Launch the command to configure the CPAN module
    perl -MCPAN -e shell
    you will be asked to give the answers inorder to configure CPAN
    5.a.2) When you see cpan> prompt do the following:
    o conf makepl_arg 'CC=gcc CCCDLFLAGS=-fPIC CCFLAGS=" " OPTIMIZE=" " LD=gcc' press return
    5.a.3) Type "o conf commit" press return. You may install your modules now with the install command e.g. install HTML::Parser for example.
    5.b.1) Download your modules from http://www.cpan.org to your server to /var/tmp/packed or whatever folder you want.
    5.b.2) unzip then untar and cd into subfolder
    5.b.3) type ./Makefile.PL -t 'CC=gcc CCCDLFLAGS=-fPIC CCFLAGS=" " OPTIMIZE=" " LD=gcc'
    5.b.4) Type make install
    6.) In both methods you have to check if the modules are installed by issuing the commnad:
    perl -e 'use Your::Module' e.g.
    perl -e 'use HTTP::Parser'
    if no error message on the term you are ready
    Rem. The differrences are in the flags used to compile and link with these two compilers sun cc and gnu cc. There are of course problems with 64bit values on sun64bit e.g. SPARC and Intel stuff cause Perl does not support real 64bit values yet. The Perl modules should use only floating point represetnation with around 53~bit precision. But this issue depends on the module creator not you if you do not want to do the remedy.
    I hope it will help you
    good luck

  • Cannot install perl modules

    Hi team,
    I’m trying to do a little perl script to telnet some cisco equipment.
    I’m trying to install some perl module through CPAN but I was got an error. Output is the following. Any ideas?
    Using MAC OSX 10.6.4
    cpan[13]> install Net::Telnet:Cisco
    Running install for module 'Net::Telnet::Cisco'
    CPAN: Data::Dumper loaded ok (v2.121_14)
    'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/Users/sepinto/.cpan/prefs'
    Running make for J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    Checksum for /Users/sepinto/.cpan/sources/authors/id/J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.g z ok
    x Net-Telnet-Cisco-1.10/
    x Net-Telnet-Cisco-1.10/README
    x Net-Telnet-Cisco-1.10/Cisco.pm
    x Net-Telnet-Cisco-1.10/.cvsignore
    x Net-Telnet-Cisco-1.10/MANIFEST
    x Net-Telnet-Cisco-1.10/test.pl
    x Net-Telnet-Cisco-1.10/MANIFEST.SKIP
    x Net-Telnet-Cisco-1.10/Changes
    x Net-Telnet-Cisco-1.10/INSTALL
    x Net-Telnet-Cisco-1.10/Makefile.PL
    x Net-Telnet-Cisco-1.10/TODO
    Warning (usually harmless): 'YAML' not installed, will not store persistent state
    CPAN.pm: Going to build J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    Checking if your kit is complete...
    Looks good
    Warning: prerequisite Net::Telnet 3.02 not found.
    Writing Makefile for Net::Telnet::Cisco
    ---- Unsatisfied dependencies detected during ----
    ---- JOSHUA/Net-Telnet-Cisco-1.10.tar.gz ----
    Net::Telnet [requires]
    Shall I follow them and prepend them to the queue
    of modules we are processing right now? [yes]
    Running make test
    Delayed until after prerequisites
    Running make install
    Delayed until after prerequisites
    Running install for module 'Net::Telnet'
    'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/Users/sepinto/.cpan/prefs'
    Running make for J/JR/JROGERS/Net-Telnet-3.03.tar.gz
    Has already been unwrapped into directory /Users/sepinto/.cpan/build/Net-Telnet-3.03-naYMND
    Could not make: Unknown error
    Warning (usually harmless): 'YAML' not installed, will not store persistent state
    Running make test
    Can't test without successful make
    Running make install
    Make had returned bad status, install seems impossible
    Running make for J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    Has already been unwrapped into directory /Users/sepinto/.cpan/build/Net-Telnet-Cisco-1.10-jrURaI
    CPAN.pm: Going to build J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    Warning: Prerequisite 'Net::Telnet => 3.02' for 'J/JO/JOSHUA/Net-Telnet-Cisco-1.10.tar.gz' failed when processing 'J/JR/JROGERS/Net-Telnet-3.03.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
    Can't exec "make": No such file or directory at /System/Library/Perl/5.10.0/CPAN.pm line 7698.
    JOSHUA/Net-Telnet-Cisco-1.10.tar.gz
    make -- NOT OK
    Warning (usually harmless): 'YAML' not installed, will not store persistent state
    Running make test
    Can't test without successful make
    Running make install
    Make had returned bad status, install seems impossible
    Failed during this command:
    JOSHUA/Net-Telnet-Cisco-1.10.tar.gz : make NO
    Thanks for your help.
    Regards
    SP

    Hi Robert,
    Unfortunately, I already tried that. Here are the results:
    sepinto-mac:~ sepinto$ sudo perl -MCPAN -e shell
    Password:
    Terminal does not support AddHistory.
    cpan shell -- CPAN exploration and modules installation (v1.9205)
    ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)
    cpan[1]> install Net::Telnet
    CPAN: Storable loaded ok (v2.18)
    Going to read /Users/sepinto/.cpan/Metadata
    Database was generated on Mon, 16 Aug 2010 10:36:17 GMT
    Running install for module 'Net::Telnet'
    CPAN: Data::Dumper loaded ok (v2.121_14)
    'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/Users/sepinto/.cpan/prefs'
    Running make for J/JR/JROGERS/Net-Telnet-3.03.tar.gz
    CPAN: Digest::SHA loaded ok (v5.45)
    CPAN: Compress::Zlib loaded ok (v2.008)
    Checksum for /Users/sepinto/.cpan/sources/authors/id/J/JR/JROGERS/Net-Telnet-3.03.tar.gz ok
    Scanning cache /Users/sepinto/.cpan/build for sizes
    ............................................................................DONE
    x Net-Telnet-3.03/
    x Net-Telnet-3.03/Makefile.PL
    x Net-Telnet-3.03/ChangeLog
    x Net-Telnet-3.03/lib/
    x Net-Telnet-3.03/lib/Net/
    x Net-Telnet-3.03/lib/Net/Telnet.pm
    x Net-Telnet-3.03/t/
    x Net-Telnet-3.03/t/select.t
    x Net-Telnet-3.03/README
    x Net-Telnet-3.03/MANIFEST
    CPAN: File::Temp loaded ok (v0.18)
    Warning (usually harmless): 'YAML' not installed, will not store persistent state
    CPAN.pm: Going to build J/JR/JROGERS/Net-Telnet-3.03.tar.gz
    Checking if your kit is complete...
    Looks good
    Writing Makefile for Net::Telnet
    Can't exec "make": No such file or directory at /System/Library/Perl/5.10.0/CPAN.pm line 7698.
    JROGERS/Net-Telnet-3.03.tar.gz
    make -- NOT OK
    Warning (usually harmless): 'YAML' not installed, will not store persistent state
    Running make test
    Can't test without successful make
    Running make install
    Make had returned bad status, install seems impossible
    Failed during this command:
    JROGERS/Net-Telnet-3.03.tar.gz : make NO

  • RAC - CRS - TieRegistry.pm can't load perl module SetDualVar.pm

    Hi,
    I seem to be having an issue configuring a cluster with enterprise manager grid control.
    Here's the test scenario.
    Test #1
    - CRS installed and patched to 11.1.0.7.0 on two nodes running Windows 2003 R2 x64
    - ASM installed and patched to 11.1.0.7.0 on cluster config
    - DB installed and patched to 11.1.0.7.0 on cluster config
    - DB created via DBCA (dropped em via emca)
    - Agent 10.2.0.5.0 x64 installed on cluster config
    Test #2
    - CRS installed and patched to 10.2.0.4.0 on two nodes running Windows 2003 R2 x64
    - ASM installed and patched to 10.2.0.4.0 on cluster config
    - DB installed and patched to 10.2.0.4.0 on cluster config
    - Agent installed 10.2.0.5.0 x64 on cluster config
    (Note I haven't updated 10.2.0 release to 10.2.0.5.0, as this is production)
    1. I'm receiving the following in Critical Alerts, and its showing Pending Status in target list.
    2. Both test scenarios produce similar error and showing pending status.
    3. Note that SetDualVar.pm is non-existent in any %ORACLE_HOME%/perl
    Target          pre-db-crs
         Type          Cluster
         Metric          Clusterware
         Collection Timestamp          Jun 10, 2009 2:47:06 PM
         Error Type          Collection Failure
         Message          em_error=ERROR|Can't locate SetDualVar.pm in @INC (@INC contains: c:\oracle\product\10.2.0\agent10g\\perl\5.8.3\bin\MSWin32-x64-multi-thread c:\oracle\product\10.2.0\agent10g\perl\lib c:\oracle\product\10.2.0\agent10g\perl\lib\site_perl c:\oracle\product\10.2.0\agent10g\perl\site\lib c:\oracle\product\10.2.0\agent10g\sysman\admin\scripts c:\oracle\product\10.2.0\agent10g\sysman\admin\scripts\Net-DNS-0.48\lib c:\oracle\product\10.2.0\agent10g\bin c:\oracle\product\10.2.0\agent10g\bin c:/oracle/product/10.2.0/agent10g/perl/5.8.3/lib/MSWin32-X64-multi-thread c:/oracle/product/10.2.0/agent10g/perl/5.8.3/lib c:/oracle/product/10.2.0/agent10g/perl/site/5.8.3/lib/MSWin32-X64-multi-thread c:/oracle/product/10.2.0/agent10g/perl/site/5.8.3/lib .) at c:/oracle/product/10.2.0/agent10g/perl/site/5.8.3/lib/MSWin32-X64-multi-thread/Win32/TieRegistry.pm line 42. em_error=ERROR|Failed Execution
    Any ideas?
    Thanks.
    Edited by: Kaz on Jun 10, 2009 11:05 AM

    I'm curious, did you ever find a resolution to this? I'm experiencing a similar issue, but on slightly different platform:
    Agents:
    2-node RAC cluster on Windows Server Enterprise 2003 SP2
    RDBMS/CRS version 10.2.0.4 (was also occurring on 10.2.0.3), CPU July 2009
    Grid Control agent version 10.2.0.5
    OMS:
    Windows Server Enterprise 2003 SP2
    RDBMS/Repository 10.2.0.4 CPU July 2009
    Grid Control 10.2.0.5
    From emagent_perl.trc:
    has_metrics.pl: Fri Sep 25 15:21:23 2009: ERROR: ERROR:has::Common:: Can't locate SetDualVar.pm in @INC (@INC contains: E:\oracle\product\10.2.0\agent10g\\perl\5.8.3\bin\MSWin32-x86-multi-thread E:\oracle\product\10.2.0\agent10g\perl\lib E:\oracle\product\10.2.0\agent10g\perl\lib\site_perl E:\oracle\product\10.2.0\agent10g\perl\site\lib E:\oracle\product\10.2.0\agent10g\sysman\admin\scripts E:\oracle\product\10.2.0\agent10g\sysman\admin\scripts\Net-DNS-0.48\lib E:\oracle\product\10.2.0\agent10g\bin E:\oracle\product\10.2.0\agent10g\bin E:/oracle/product/10.2.0/agent10g/perl/5.8.3/lib/MSWin32-x86-multi-thread E:/oracle/product/10.2.0/agent10g/perl/5.8.3/lib E:/oracle/product/10.2.0/agent10g/perl/site/5.8.3/lib/MSWin32-x86-multi-thread E:/oracle/product/10.2.0/agent10g/perl/site/5.8.3/lib .) at E:/oracle/product/10.2.0/agent10g/perl/site/5.8.3/lib/MSWin32-x86-multi-thread/Win32/TieRegistry.pm line 42.
    has_metrics.pl: Fri Sep 25 15:21:23 2009: ERROR: HAS:Failed execution in fnexitfail
    I just submitted a TAR & will let you know if I find out anything.

Maybe you are looking for

  • I entered my gift card under the wrong email account. How can I change it?

    I entered my gift card under the wrong email account. How can I change it? It is really hard getting support from iTunes. It keeps throwing me back to Apple.

  • Coveyance exemption amout exiding the limit 9600

    Hi, We are facing a problem regarding Car and conveyance exemption in under section -10 . in the month exemtion is giving 9600 hundred but when we are running payroll for next month it is exdiing the limit and coming as 98100.We have analysed . /3c4

  • Changing partners using BAPI_ACTIVITYCRM_CHANGEMULTI

    Hello, I'm using the BAPI "BAPI_ACTIVITYCRM_CHANGEMULTI" to change the partner of an activity. But each time the update (Verbucher) throws a dump. The problem: I'm using the users, not businesspartners. Here my code:     ls_partner-ref_guid          

  • Tape Compression for Protection Groups Not Working

    Hi everyone, We've since started using DPM 2012 R2 to backup our systems. Everything is working except for tape compression. I've read some other discussions regarding similar issues, but none have been of any help to me. DPM (version 4.2.1254.0) is

  • Edit photo's on Synology NAS via Photoshop Touch on iPAd

    Hi Adobe, Can I edit photo's on Synology NAS via Photoshop Touch on iPAd>? I have many many photos on the NAS and would like to remove unneeded photos and edit the good ones. I don't want to use laptop or PC, just the iPad. gr-JW