Perl problems

Just upgraded to OSX Lion and trying to get my Perl install running again:
sudo /usr/bin/perl -MCPAN -e 'install "MODULENAME"'
with any value of MODULENAME that I tried (e.g. JSON) produces:
Checking if your kit is complete...
Looks good
Writing Makefile for JSON
make: *** No rule to make target `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'.  Stop.
  MAKAMAKA/JSON-2.53.tar.gz
  /Developer/usr/bin/make -- NOT OK
I can't find anything resembling config.h anywhere, the directory exists though ...
Not even this works:
/usr/bin/cpan CPAN
Does this work for anybody?

Solved: Getting the new version of Xcode from the AppStore is insufficient: it only dumps an installer into /Applications (why, Apple, oh why?) but does not run it automatically. Once you run it, it resolves this problem.

Similar Messages

  • Perl problem (OS X Tiger)

    Hi,
    I'm working on a script converting Unix LF to Windows CRLF and in some cases vice versa. I'm using Perl in conversion:
    perl -i -pe 's/\n/\r\n/' filename
    or
    perl -i -pe 's/\012/\015\012/g' filename
    These worked in workstation (OS X 10.4.11) but not in server (OS X 10.4.11 Server). File is still in LF. It converts happily with TextWrangler. I have no clue what could be the culprit.

    I see nobody has chimed in yet, so while I don't have an answer to the perl problem, I thought I'd at least drop my two cents. If you're really only using perl for that replace-regex one-liner and not a long perl script, perhaps you could just use a different program like sed, awk, or even tr to get what you need yet not require a gui app. Googling how to apply them will pull up a lot, but just as a foot in the door, you could pull what you need from this script, which uses sed:
    http://www.noels-lab.com/crlf.html
    and here are a couple other regex one-liners (in awk and tr) which you could adapt to your purposes. Note, though, that the examples aren't for crlf and that tr cannot add characters, only swap or remove.
    http://kb.iu.edu/data/agiz.html
    I just don't know the quirks of Perl well enough to address the odd behaviour, but if you do decide to try another method and get stuck, I (we?) would be glad to help.
    Good luck.

  • [SOLVED] Perl problem (in myth)

    I am trying to run a simple script that fetches info from themoviedb.org, here's the MythTV wiki for it: http://www.mythtv.org/wiki/Tmdb.pl
    All permissions are correct, files are in the right places, the problem seems to be with my perl setup. On running the script in the Mythfrontend, I get this: click for error png
    I have been corresponding on the Mythtv mailing list, and they asked if I'm using SELinux which I am not, of course. I don't know hardly anything about perl, so any help is appreciated. Any more info needed I will surely provide.
    Thanks
    Last edited by colbert (2009-04-06 04:44:14)

    What about the setgid permission?  That really seems the cause of the problem, the -Uw was just a hackish workaround.  List the files with 'ls -l' to see if the script (or the .pm module file) are setgid.  If they are an s will show up in the group field, like this:
    -rwxr-sr-x 1 justin users 11327 2009-04-05 12:41 tmdb.pl*
    This is also highlighted in yellow for me, I'm not sure if you have ls colors working.  Also check the directory they are in using 'ls -ld <dirpath>'.
    If you find it, try unsetting the setgid bit using chmod like: 'chmod g-s <target>'.  Google setuid or see the chmod manpage to learn more about it.
    Edit:
    As soon as I posted this I remember you can find files with certain permissions.  If you type this on the shell it should print any files/dirs with setgid on:
    find /MythTV's/Base/Directory/ -perm /2000
    Last edited by juster (2009-04-06 00:02:47)

  • Perl problem

    Since reinstalling OS 10.5 (then updating to 10.5.8) I notice that my fan/hard drive is running full blast all the time. I checked the Activity Monitor and it shows the "perl" CPU reading running from about 97 to 99. A search of my hard disk shows "perl5.8.7 document" in two places.
    If select perl in the activity monitor and click the "quit process" button the fast spinning stops.
    Is there a fix for this? Is perl necessary?

    I think I found the source of the problem... Logitech's Squeezebox Server, which I recently installed. If I disable Squeezebox, the problem goes away.
    Did like you said anyway (with Squeezebox disabled). Here is what came up:
    This is perl, v5.8.8 built for darwin-thread-multi-2level
    (with 4 registered patches, see perl -V for more detail)
    Copyright 1987-2006, Larry Wall
    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.
    Complete documentation for Perl, including FAQ lists, should be found on
    this system using "man perl" or "perldoc perl".  If you have access to the
    Internet, point your browser at http://www.perl.org/, the Perl Home Page.

  • Perl problem? Run postflight script

    Yesterday my USB mobile internet aircard wouldn't mount in OS X (10.5.6). I spent hours on the phone with the ISP's tech support, and they ultimately had me download and reinstall the software. When I attempted to install that software, it failed with this error message: "The following install step failed: run postflight script for Franklin Wireless".
    A few hours later I tried to install a different program (unrelated to the internet issue) and I got the same kind of message "The following install step failed: run postflight script"
    I've googled for hours, and there's almost nothing out there. Everything I did find led me to stuff about "perl" and "bash". I'm not exactly new to computers, but I'm not a programmer either and I don't understand any of that.
    I don't know what to do here. Is it possible my "perl" is corrupted or missing? Or my "bash"? I checked my software updates and I happened to be due for an upgrade to 10.5.7. So, I did that hoping it might fix anything that was corrupted or missing. But, afterwards I tried the install again and got the same error.
    I'm 2,000 miles from home on the second day of a two-week business trip. I need my computer to work, I need the internet access...basically I'm screwed. If ANYONE can offer any insight, I would be eternally grateful.
    Thank you.

    Check the Console messages and post back anything that looks interesting after getting the postflight error.
    Eric
    Ps. Doesn't the hotel have internet you can hook to?
    Message was edited by: ericmeyers

  • [stow] perl problem: Possible precedence issue

    Hi there,
    It came with the last perl update that I am no longer able to run stow.
    I already reinstalled the package but it still fails with the following error:
    Possible precedence issue with control flow operator at /usr/lib/perl5/vendor_perl/Stow.pm line 1736.
    Does someone know how to fix this issue?
    Thank you!

    It looks like it's just a warning that doesn't actually affect how it runs.  Anyway, I know almost nothing about Perl, but this patch silences the warning:
    diff -x config.log -x config.status -ru lib/Stow.pm.in lib/Stow.pm.in
    --- lib/Stow.pm.in 2012-02-18 20:33:34.000000000 +0000
    +++ lib/Stow.pm.in 2014-06-08 22:46:03.420893651 +0100
    @@ -1732,7 +1732,7 @@
    elsif (-l $path) {
    debug(4, " read_a_link($path): real link");
    - return readlink $path
    + (return readlink $path)
    or error("Could not read link: $path");
    internal_error("read_a_link() passed a non link path: $path\n");
    Last edited by jakobcreutzfeldt (2014-06-09 09:27:20)

  • Ndiswrapper/Perl problem

    I am trying to load the INF file for my wireless card into ndiswrapper.  However, I get a perl error when I try:
    [root@AVERATEC ~]# ndiswrapper -i /home/cconover/Wireless/Ralink/Rt2500.INF
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_COLLATE = "C",
    LANG = "en_US.utf8"
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    I get the same error no matter what ndiswrapper command I run (ndiswrapper -l, ndiswrapper -e).  I have never seen this error before, so I don't understand what it needs.  How can I resolve this?

    It means you don't have the locale en_US.utf8 installed.  Edit /etc/locale.gen so it isn't commented, and run locale-gen.  That should fix it.

  • Problems with perl 5.8

    Hi everyone.
    I'm running Solaris 8 in a dual p III 450Mhz box with 512 Mb RAM. I started to download every perl module I need to do my research, but after installing some modules I got this:
    perl -MCPAN -e shell
    Out of memory!
    Callback called exit.
    BEGIN failed--compilation aborted.
    What is the meaning of that?. What memory is perl talking about?. I did a "top" and I found the box with 422 MB RAM free and an uptime 0.02.
    What should be the problem?.
    Thanks alot.

    I have tried modifying the path and environment
    variables without success. I have heard from some
    classmates that these perl problems have been encountered and solved before. Have changed path on system/user level or on command prompt.
    - Virag Sharma
    http://viragsharma.blogspot.com
    http://virag.sharma.googlepages.com

  • PERL script on Solaris

    My ISP is running on solaris. I have place a PERL (.pl) script which will fire a mail. He says 'Sendmail' is configured and I can create any folder and place my script and system will recognize is automatically. As we know, all the web servers will have 'cgi-bin' directory where the .pl or .cgi files will be placed for execution. My ISP tells me that he has configured the server in such a way that I can create a 'cgi' directory anywhere and can run it from the browser. I am unable to do it. Tell me how I can do it.

    Unfortunately this stupid perl script isn't that
    easy. It uses Rational cqperl, then some libraries
    and modules I don't understand. I can't even find
    the actual code it uses that uses flexlm.
    That's why I was asking what is different with java
    1.2 and java 1.4. Is there some way that Runtime
    acts differently?Not in any fundamental way that I am aware of.
    The fact that the script is running at all though tells me that the problem is on the PERL side of things. I suspect that some of those modules and libraries are not being loaded correctly or the same way on both systems.
    I fear the answer is that you need to figure out what components the script needs to run and make sure that it has them under all circumstances. This is like a classpath problem except it is with your PERL script so you need to solve it as a PERL problem.
    Again if it wasn't running at all that would be one concern but it is running just not finding all it's bits.. a problem of that nature strongly indicates that the issue is happening once the process has already been spawned (correctly) and so is out of the realm of the Java part of your program.

  • Java 1.2 Versus Java 1.4?

    This may sound quite strange, but I have a java program which uses Runtime.getRuntime().exec(...) and runs a perl process. The thing is when I run it using java 1.4.1 on a Solaris 9 platform, the perl script fails. However, if I use java 1.2 on Solaris 9 platform, the perl script works fine. However, java 1.2 is much older so I'm hestitant to use it.
    What differences are there in java 1.2 versus 1.4 with regards to the Runtime.getRuntime exec???

    Unfortunately this stupid perl script isn't that
    easy. It uses Rational cqperl, then some libraries
    and modules I don't understand. I can't even find
    the actual code it uses that uses flexlm.
    That's why I was asking what is different with java
    1.2 and java 1.4. Is there some way that Runtime
    acts differently?Not in any fundamental way that I am aware of.
    The fact that the script is running at all though tells me that the problem is on the PERL side of things. I suspect that some of those modules and libraries are not being loaded correctly or the same way on both systems.
    I fear the answer is that you need to figure out what components the script needs to run and make sure that it has them under all circumstances. This is like a classpath problem except it is with your PERL script so you need to solve it as a PERL problem.
    Again if it wasn't running at all that would be one concern but it is running just not finding all it's bits.. a problem of that nature strongly indicates that the issue is happening once the process has already been spawned (correctly) and so is out of the realm of the Java part of your program.

  • Amavis and clamav .... wierd

    Hello, out of the box, amavis is acting wierd.
    Oct 4 22:24:11 darwin amavis[6192]: Using internal av scanner code for (primary) Clam Antivirus-clamd
    Oct 4 22:24:11 darwin amavis[6192]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan
    Oct 4 22:26:22 darwin amavis[6272]: (06195-01) run_command: child process [6272]: Can't close main::stdin: Bad file descriptor at /usr/bin/amavisd line 1589, <GEN3> line 58.\n
    Oct 4 22:26:23 darwin amavis[6195]: (06195-01) TROUBLE in check_mail: mime_decode-1 FAILED: parsing file(1) results - missing last 2 results at (eval 41) line 150.
    Oct 4 22:26:23 darwin amavis[6195]: (06195-01) PRESERVING EVIDENCE in /var/amavis/amavis-20061004T222621-06195
    Oct 4 22:26:23 darwin amavis[6195]: (06195-01) TROUBLE in process_request: Error writing a SMTP response to the socket: Broken pipe at (eval 36) line 760, <GEN2> line 55.
    Oct 4 22:26:23 darwin amavis[6195]: (06195-01) Requesting process rundown after fatal error
    any ideas or link to refer to?
    PowerMac QuickSilver   Mac OS X (10.4.8)  

    This:Can't close main::stdin:
    is a perl problem. Did you install anything else or is mail the first thing you ever turned on on your server?

  • Problem calling two perl modules from java in seperate threads(JVM CRASHES)

    Dear Friends,
    I have one severe problem regarding calling perl modules from java
    I had to call two perl modules simultaneously (i.e.) from two threads,,, but jvm crashes when one of the perl calls is exiting earlier
    I am unable to spot out why ....
    For calling perl from java ...., We are first calling C code from java using JNI and then Perl code from C
    All works fine if we call only one perl call at a time.... If we call them in a synchronized manner the JVM is not crashing .... But we don't want blocking..
    The following is the code snippet
    <JAVA FILE>
    class Sample
         static {
              System.loadLibrary("xyz");  // Here xyz is the library file generated by compiling c code
         public native void call_PrintList();
         public native void call_PrintListNew();
         Sample()
              new Thread1(this).start();     
         public static void main(String args[])
              System.out.println("In the main Method");
              new Sample().call_PrintList();
         class Thread1 extends Thread
              Sample sample;
              Thread1(Sample sam)
                   sample=sam;
              public void run()
                   sample.call_PrintListNew();     
    }<C FILE>
    #include <EXTERN.h>
    #include <perl.h>
    static PerlInterpreter *my_perl;
    static char * words[] = {"alpha", "beta", "gamma", "delta", NULL } ;
    static void
    call_PrintList(){
         printf("\nIn the Call method of string.c\n");
            char *wor[] = {"hello", "sudha", NULL } ;
               char *my_argv[] = { "", "string.pl" };
               PERL_SYS_INIT3(&argc,&argv,&env);
               my_perl = perl_alloc();
                   PL_perl_destruct_level = 1; //// We have mentioned this also and tried removing destruct call
               perl_construct( my_perl );
               perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
              PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
               perl_run(my_perl);
         dSP ;
            perl_call_argv("PrintList",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
    //     perl_destruct(my_perl);
    //          perl_free(my_perl);
    //           PERL_SYS_TERM();
    static void
    call_PrintListNew(){
    printf("In the new call method\n");
    char *wor[] = {"Hiiiiiiiiiiiiiii", "Satyam123333", NULL } ;
            char *my_argv[] = { "", "string.pl" };
            PERL_SYS_INIT3(&argc,&argv,&env);
            my_perl = perl_alloc();
    PL_perl_destruct_level = 1;
            perl_construct( my_perl );
            perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
            PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
            perl_run(my_perl);
            dSP ;
            perl_call_argv("PrintListNew",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
      //      perl_destruct(my_perl);
      //      perl_free(my_perl);
       //     PERL_SYS_TERM();
    void callNew()
    call_PrintListNew();
    void call ( )
    call_PrintList();
    //char *wor[] = {"hello","sudha",NULL};
    /*   char *my_argv[] = { "", "string.pl" };
          PERL_SYS_INIT3(&argc,&argv,&env);
          my_perl = perl_alloc();
          perl_construct( my_perl );
          perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
         PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
          perl_run(my_perl);*/
       //   call_PrintList();                      /*** Compute 3 ** 4 ***/
    /*      perl_destruct(my_perl);
          perl_free(my_perl);
          PERL_SYS_TERM();*/
        }And Finally the perl code
    sub PrintList
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
    sub PrintListNew
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
            }Please help me in this regard

    Dear Friends,
    I have one severe problem regarding calling perl modules from java
    I had to call two perl modules simultaneously (i.e.) from two threads,,, but jvm crashes when one of the perl calls is exiting earlier
    I am unable to spot out why ....
    For calling perl from java ...., We are first calling C code from java using JNI and then Perl code from C
    All works fine if we call only one perl call at a time.... If we call them in a synchronized manner the JVM is not crashing .... But we don't want blocking..
    The following is the code snippet
    <JAVA FILE>
    class Sample
         static {
              System.loadLibrary("xyz");  // Here xyz is the library file generated by compiling c code
         public native void call_PrintList();
         public native void call_PrintListNew();
         Sample()
              new Thread1(this).start();     
         public static void main(String args[])
              System.out.println("In the main Method");
              new Sample().call_PrintList();
         class Thread1 extends Thread
              Sample sample;
              Thread1(Sample sam)
                   sample=sam;
              public void run()
                   sample.call_PrintListNew();     
    }<C FILE>
    #include <EXTERN.h>
    #include <perl.h>
    static PerlInterpreter *my_perl;
    static char * words[] = {"alpha", "beta", "gamma", "delta", NULL } ;
    static void
    call_PrintList(){
         printf("\nIn the Call method of string.c\n");
            char *wor[] = {"hello", "sudha", NULL } ;
               char *my_argv[] = { "", "string.pl" };
               PERL_SYS_INIT3(&argc,&argv,&env);
               my_perl = perl_alloc();
                   PL_perl_destruct_level = 1; //// We have mentioned this also and tried removing destruct call
               perl_construct( my_perl );
               perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
              PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
               perl_run(my_perl);
         dSP ;
            perl_call_argv("PrintList",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
    //     perl_destruct(my_perl);
    //          perl_free(my_perl);
    //           PERL_SYS_TERM();
    static void
    call_PrintListNew(){
    printf("In the new call method\n");
    char *wor[] = {"Hiiiiiiiiiiiiiii", "Satyam123333", NULL } ;
            char *my_argv[] = { "", "string.pl" };
            PERL_SYS_INIT3(&argc,&argv,&env);
            my_perl = perl_alloc();
    PL_perl_destruct_level = 1;
            perl_construct( my_perl );
            perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
            PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
            perl_run(my_perl);
            dSP ;
            perl_call_argv("PrintListNew",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
      //      perl_destruct(my_perl);
      //      perl_free(my_perl);
       //     PERL_SYS_TERM();
    void callNew()
    call_PrintListNew();
    void call ( )
    call_PrintList();
    //char *wor[] = {"hello","sudha",NULL};
    /*   char *my_argv[] = { "", "string.pl" };
          PERL_SYS_INIT3(&argc,&argv,&env);
          my_perl = perl_alloc();
          perl_construct( my_perl );
          perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
         PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
          perl_run(my_perl);*/
       //   call_PrintList();                      /*** Compute 3 ** 4 ***/
    /*      perl_destruct(my_perl);
          perl_free(my_perl);
          PERL_SYS_TERM();*/
        }And Finally the perl code
    sub PrintList
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
    sub PrintListNew
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
            }Please help me in this regard

  • 10.5.8 Server, Amavisd 2.6.4 crahing perl, with BerkeleyDB Problem

    By searching the interwebs and discussions here didn't find a solution that worked for me yet.
    System Details: Quad intel Xserve, 10.5.8 Server (Security Update 2009-005 not yet applied.)
    Seems to have started this night around 2am.
    Amavisd-new 2.6.4 will not accept transport anymore. Logs the well known
    Sep 16 15:23:00 mail postfix/qmgr[3853]: warning: connect to transport smtp-amavis: Connection refused
    Sep 16 15:23:12 mail deliver[3869]: connect(/var/imap/socket/lmtp) failed: Connection refused
    messages to the log.
    Tried rebuilding amasid-new and all the needed perl modules. CPAN worked well, yet perl seems to crash anytime amavisd will access a BerkelyDB from cyrus.
    SMTP in seems to work fine, SMTP out as well, transport from postfix to cyrus via amavisd is still broken. My own user account can send and even receive mails without a problem, which stumps me a little. I only have that user for testing purposes, so it doesn't carry any amount of email beyond test mails, counting less than 100 messages.
    I have already checked for privileges and quota problems with the .db.
    Repairing the Database with ServerAdmin hasn't helped, as did a reconstruct with ServerAdmin. I'm still trying to avoid full mailbox rebuilds. I'd prefer rebuilding only the problematic mailboxes and not all mailboxes to have a few as possible users with all their unread status reset.
    For a quick fix, I'd like to be able to deliver mails to the users boxes so they get their mails for the moment, seems they are able to send without problems. This should buy me a little more time until I can fix it all properly.
    Turning off Spam and Virus filtering doesn't help the delivery, which I expected it would. doesn't this time.
    How can I find out which user's mailboxes are corrupted so I can only completely rebuild the ones really needed? I'm willing to jump through substantial hoops to prevent the need to do a full server mailbox rebuild. (ca. 90GB of mails in total… would take a looong time and upset the users.)
    I can test everything and can of course provide any more details you might need to help me.
    This setup is quite modified from Apple's stock setup mostly following pterobyte's excellent recommendations and tutorials for improvement.
    Best regards
    Pepi
    This is what the mail system logs when starting up:
    Clearly there is a problem with the cyrus databases which seem to cause amavisd/perl to crash.
    Sep 16 15:43:29 mail sudo[68375]: radmin : TTY=ttys007 ; PWD=/private/var ; USER=root ; COMMAND=/usr/sbin/serveradmin start mail
    Sep 16 15:43:30 mail master[68377]: process started
    Sep 16 15:43:30 mail postfix/postfix-script[68382]: fatal: the Postfix mail system is not running
    Sep 16 15:43:30 mail ctl_cyrusdb[68379]: DBERROR db4: DBENV->logflush: LSN of 1/62288 past current end-of-log of 1/15979
    Sep 16 15:43:30 mail ctl_cyrusdb[68379]: DBERROR db4: Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment
    Sep 16 15:43:30 mail ctl_cyrusdb[68379]: DBERROR db4: /var/imap/tls_sessions.db: unable to flush page: 0
    Sep 16 15:43:30 mail ctl_cyrusdb[68379]: DBERROR db4: txn_checkpoint: failed to flush the buffer cache Invalid argument
    Sep 16 15:43:30 mail ctl_cyrusdb[68379]: DBERROR db4: PANIC: Invalid argument
    Sep 16 15:43:30 mail ctl_cyrusdb[68379]: DBERROR: critical database situation
    Sep 16 15:43:35 mail master[68377]: process 68379 exited, status 75
    Sep 16 15:43:35 mail idled[68430]: cleaning up corrupted database files in: /var/imap/db
    Sep 16 15:43:35 mail idled[68430]: ----: removed file: __db.001
    Sep 16 15:43:35 mail idled[68430]: ----: removed file: __db.002
    Sep 16 15:43:35 mail idled[68430]: ----: removed file: __db.003
    Sep 16 15:43:35 mail idled[68430]: ----: removed file: __db.004
    Sep 16 15:43:35 mail idled[68430]: ----: removed file: __db.005
    Sep 16 15:43:35 mail idled[68430]: ----: removed file: log.0000000001
    Sep 16 15:43:36 mail master[68377]: Cyrus POP/IMAP Server v2.3.8 ready for work
    Sep 16 15:43:36 mail ctl_cyrusdb[68432]: checkpointing cyrus databases
    Sep 16 15:43:36 mail ctl_cyrusdb[68432]: done checkpointing cyrus databases
    Sep 16 15:44:01 mail sudo[68459]: root : TTY=unknown ; PWD=/ ; USER=_cyrus ; COMMAND=/usr/bin/cyrus/bin/cyrus-quota -r
    This is what is written to the crash report:
    $ cat perl2009-09-16-145012Buzz-Lightyear.crash
    Process: perl [2230]
    Path: /usr/bin/perl
    Identifier: perl
    Version: ??? (???)
    Code Type: X86 (Native)
    Parent Process: launchd [1]
    Date/Time: 2009-09-16 14:50:12.683 +0200
    OS Version: Mac OS X Server 10.5.8 (9L34)
    Report Version: 6
    Anonymous UUID: 351B0AD5-FE9F-4556-A043-7FE8E4595D06
    Exception Type: EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread: 0
    Dyld Error Message:
    Symbol not found: dbversion
    Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/BerkeleyDB/BerkeleyDB.bundl e
    Expected in: dynamic lookup
    I don't expect it to be of help in this case, but here is my postconf for completeness.
    $ postconf -n
    always_bcc = [email protected]
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter =
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    html_directory = no
    inet_interfaces = all
    localrecipientmaps = proxy:unix:passwd.byname $alias_maps
    mail_owner = _postfix
    mailboxsizelimit = 0
    mailbox_transport = cyrus
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    mapsrbldomains =
    messagesizelimit = 20971520
    mydomain = mail.raiffeisenzeitung.at
    mydomain_fallback = localhost
    myhostname = mail.raiffeisenzeitung.at
    mynetworks = 127.0.0.1/32
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    relayhost =
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpdclientrestrictions = permit_mynetworks rejectrblclient zen.spamhaus.org rejectrblclient ix.dnsbl.manitu.net permit
    smtpdenforcetls = no
    smtpdpw_server_securityoptions = gssapi,cram-md5
    smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,hash:/etc/postfix/rejects,reject_unauth_des tination,reject_unlistedrecipient,permit
    smtpdsasl_authenable = yes
    smtpdtls_certfile = /etc/certificates/mail.raiffeisenzeitung.at.crt
    smtpdtls_keyfile = /etc/certificates/mail.raiffeisenzeitung.at.key
    smtpduse_pwserver = yes
    smtpdusetls = yes
    tlsrandomsource = dev:/dev/urandom
    unknownlocal_recipient_rejectcode = 550
    virtualaliasdomains = hash:/etc/postfix/virtual_domains
    virtualaliasmaps = hash:/etc/postfix/virtual
    virtualmailboxdomains = hash:/etc/postfix/virtualdomainsdummy
    virtual_transport = lmtp:unix:/var/imap/socket/lmtp

    Hi Alex,
    thanks for chiming in!
    I'm quite confident, that nobody installed BerkeleyDB at 2am on that server. Neither on purpose nor accidentally.
    Just for the record… the usual suspects have be checked as well:
    I've checked the filesystem, and it seems to be ok.
    I've repaired privileges, and they seem to be ok.
    I've used mailbfr to rebuild each and every mailbox. (-m)
    I've used mailbfr to repair mail system privs and quota. (-o, -q)
    The system has plenty of freespace on all drives.
    Additional info about the current behavior:
    I've turned off virus and spam filtering for the moment. Mails can be sent and do get delivered for all the accounts I've tested. The ones that are already in the queue do not get delivered. I've even tried to manually flush the queue, though postfix usually never needs that and know best when to do what. Anyway it didn't convince postfix to deliver the queued mails.
    From the logs I can see that cyrus complains about a critical database condition in
    Sep 16 20:49:41 mail ctl_cyrusdb[39320]: DBERROR db4: Log sequence error: page LSN 1 3679; previous LSN 10 7846960
    Sep 16 20:49:41 mail ctl_cyrusdb[39320]: DBERROR db4: Recovery function for LSN 1 3308 failed on forward pass
    Sep 16 20:49:41 mail ctl_cyrusdb[39320]: DBERROR db4: PANIC: Invalid argument
    Sep 16 20:49:41 mail ctl_cyrusdb[39320]: DBERROR: critical database situation
    Sep 16 20:49:47 mail idled[39372]: cleaning up corrupted database files in: /var/imap/db
    These problems persist after a server restart.
    Log Details when I try to activate Spam or virus filtering again:
    Sep 16 21:19:30 mail org.amavis.amavisd[1278]: Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/BerkeleyDB/BerkeleyDB.bundl e
    Sep 16 21:19:30 mail org.amavis.amavisd[1278]: Expected in: dynamic lookup
    Sep 16 21:19:31 mail ReportCrash[1292]: Formulating crash report for process perl[1278]
    Sep 16 21:19:31 mail ReportCrash[1292]: Saved crashreport to /Library/Logs/CrashReporter/perl2009-09-16-211931Buzz-Lightyear.crash using uid: 0 gid: 0, euid: 0 egid: 0
    Sep 16 21:19:31 mail com.apple.launchd[1] (org.amavis.amavisd[1278]): Exited abnormally: Trace/BPT trap
    Sep 16 21:19:31 mail org.amavis.amavisd[1294]: dyld: lazy symbol binding failed: Symbol not found: dbversion
    Sep 16 21:19:31 mail org.amavis.amavisd[1294]: Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/BerkeleyDB/BerkeleyDB.bundl e
    Sep 16 21:19:31 mail org.amavis.amavisd[1294]: Expected in: dynamic lookup
    Sep 16 21:19:31 mail org.amavis.amavisd[1294]: dyld: Symbol not found: dbversion
    Sep 16 21:19:31 mail org.amavis.amavisd[1294]: Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/BerkeleyDB/BerkeleyDB.bundl e
    Sep 16 21:19:31 mail org.amavis.amavisd[1294]: Expected in: dynamic lookup
    Sep 16 21:19:31 mail ReportCrash[1292]: Formulating crash report for process perl[1294]
    Sep 16 21:19:31 mail ReportCrash[1292]: Saved crashreport to /Library/Logs/CrashReporter/perl2009-09-16-211931Buzz-Lightyear.crash using uid: 0 gid: 0, euid: 0 egid: 0
    Sep 16 21:19:31 mail com.apple.launchd[1] (org.amavis.amavisd[1294]): Exited abnormally: Trace/BPT trap
    Sep 16 21:19:31 mail com.apple.launchd[1] (org.amavis.amavisd): Throttling respawn: Will start in 10 seconds
    Sep 16 21:19:34 mail org.clamav.clamd[1204]: Pid file removed.
    Sep 16 21:19:34 mail org.clamav.clamd[1204]: --- Stopped at Wed Sep 16 21:19:34 2009
    Sep 16 21:19:34 mail org.clamav.clamd[1204]: Socket file removed.
    I've already rebuilt amavisd-new 2.6.4 and ClamAV 0.95.2 (with your extras) then rebootet. As expected, the cyrus problems remain. Perl is still crashing as soon as amavisd or ClamAV shall start. Mail delivery directly to cyrus without filtering seems to work fine at the moment. Queued mails stay where they are and do not get delivered.
    Log and status output:
    This is what CPAN tells me about the installed Perl BerkeleyDB Module:
    CPAN: Storable loaded ok (v2.15)
    Going to read '/Users/radmin/.cpan/Metadata'
    Database was generated on Wed, 16 Sep 2009 07:31:39 GMT
    Module id = BerkeleyDB
    DESCRIPTION Interface to Berkeley DB version 2, 3 or 4
    CPAN_USERID PMQS (Paul Marquess <[email protected]>)
    CPAN_VERSION 0.39
    CPAN_FILE P/PM/PMQS/BerkeleyDB-0.39.tar.gz
    UPLOAD_DATE 2009-06-06
    DSLIP_STATUS RdcOp (released,developer,C,object-oriented,Standard-Perl)
    MANPAGE BerkeleyDB - Perl extension for Berkeley DB version 2, 3 or 4
    INST_FILE /Library/Perl/5.8.8/darwin-thread-multi-2level/BerkeleyDB.pm
    INST_VERSION 0.39
    This happens when I start the mail system with spam and virus filtering turned off:
    Sep 16 20:49:37 mail com.apple.launchd[1] (org.postfix.master[35692]): Exited: Terminated
    Sep 16 20:49:37 mail postfix/postfix-script[39262]: fatal: the Postfix mail system is not running
    Sep 16 20:49:40 mail net.clamav.clamd[35631]: Pid file removed.
    Sep 16 20:49:40 mail net.clamav.clamd[35631]: --- Stopped at Wed Sep 16 20:49:40 2009
    Sep 16 20:49:40 mail net.clamav.clamd[35631]: Socket file removed.
    Sep 16 20:49:40 mail com.apple.launchd[1] (edu.cmu.andrew.cyrus.master[35710]): Stray process with PGID equal to this dead job: PID 38979 PPID 1 imapd
    Sep 16 20:49:41 mail master[39317]: process started
    Sep 16 20:49:41 mail postfix/postfix-script[39322]: fatal: the Postfix mail system is not running
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Limits: Global size limit set to 20971520 bytes.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Limits: File size limit set to 15728640 bytes.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Limits: Recursion level limit set to 10.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Limits: Files limit set to 1500.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Archive support enabled.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Algorithmic detection enabled.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Portable Executable support enabled.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: ELF support enabled.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Detection of broken executables enabled.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Mail files support enabled.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: OLE2 support enabled.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: PDF support enabled.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: HTML support enabled.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Self checking every 600 seconds.
    Sep 16 20:49:41 mail net.clamav.clamd[39308]: Set stacksize to 1048576
    Sep 16 20:49:41 mail ctl_cyrusdb[39320]: DBERROR db4: Log sequence error: page LSN 1 3679; previous LSN 10 7846960
    Sep 16 20:49:41 mail ctl_cyrusdb[39320]: DBERROR db4: Recovery function for LSN 1 3308 failed on forward pass
    Sep 16 20:49:41 mail ctl_cyrusdb[39320]: DBERROR db4: PANIC: Invalid argument
    Sep 16 20:49:41 mail ctl_cyrusdb[39320]: DBERROR: critical database situation
    Sep 16 20:49:47 mail master[39317]: process 39320 exited, status 75
    Sep 16 20:49:47 mail idled[39372]: cleaning up corrupted database files in: /var/imap/db
    Sep 16 20:49:47 mail idled[39372]: ----: removed file: __db.001
    Sep 16 20:49:47 mail idled[39372]: ----: removed file: __db.002
    Sep 16 20:49:47 mail idled[39372]: ----: removed file: __db.003
    Sep 16 20:49:47 mail idled[39372]: ----: removed file: __db.004
    Sep 16 20:49:47 mail idled[39372]: ----: removed file: __db.005
    Sep 16 20:49:47 mail idled[39372]: ----: removed file: log.0000000001
    Sep 16 20:49:47 mail master[39317]: Cyrus POP/IMAP Server v2.3.8 ready for work
    Sep 16 20:49:47 mail ctl_cyrusdb[39374]: checkpointing cyrus databases
    Sep 16 20:49:47 mail ctl_cyrusdb[39374]: done checkpointing cyrus databases
    Should I try to use mailbfr -f (and get about 900.000 unread mails)? If there is nothing else I can do to fix this, I'll do it. It takes what it takes.
    Thanks
    Best regards
    Pepi

  • Problems while developing a Perl client

    Hi,
    I am trying to interface to the OCWS using SOAP through Perl.
    Here is the code:
    #!/usr/bin/perl
    use strict;
    use LWP::UserAgent;
    use HTTP::Request;
    my $ua = LWP::UserAgent->new(env_proxy => 1, keep_alive => 1, timeout => 30, );
    my $data_to_send;#-- And build a string of it
    open(SOAPREQ,"soap_req.soap");
    while(<SOAPREQ>) {
    $data_to_send = "$data_to_send$_";
    print "Sending :\n$data_to_send\n";
    #-- Create the Request Object and send the data
    my $response =
    $ua->request(HTTP::Request->new('POST', 'http://development-10.cc.uic.edu/ocws-bin/ocas.fcgi',
    HTTP::Headers->new('Content-Type' => 'text/xml', 'SOAPAction' => 'http://www.oracle.com/WebServices/Calen\
    daring/1.0/'), $data_to_send));
    #-- Print the response
    print $response->as_string;
    Note that I have my SOAP payload in the soap_req.soap file. This is a simple Ping command. Here is the listing:
    <?xml version='1.0' encoding='UTF-8'?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <cwsl:Ping xmlns:cwsl=
    "http://www.oracle.com/WebServices/Calendaring/1.0/">
    </cwsl:Ping>
    </soap:Body>
    </soap:Envelope>
    But, this doesn't seem to work. (I realise that I have not set the Content-Length SOAP header in the Perl code. If this could be the source of the problem, would someone please tell me whether the Content-Length includes the length of the headers also or just the payload).
    The listing for the response in SOAP indicates a "method name not supported error". Here is the listing for the response:
    HTTP/1.1 500 Internal Server Error
    Connection: close
    Date: Mon, 21 Feb 2005 18:22:24 GMT
    Server: Apache/1.3.31 (Unix) mod_fastcgi/2.2.12 mod_perl/1.27 mod_ssl/2.8.19 OpenSSL/0.9.7d
    Content-Type: text/xml; charset=utf-8
    Client-Date: Mon, 21 Feb 2005 18:37:54 GMT
    Client-Peer: 128.248.155.93:80
    Client-Response-Num: 1
    Client-Transfer-Encoding: chunked
    <?xml version="1.0" encoding="utf-8" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Client.Error::System::SOAPRequest</faultcode>
    <faultstring>The SOAPAction&apos;s method name is not supported</faultstring>
    <detail>
    <cwsl:Error xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/">
    <Class>Error::System::SOAPRequest</Class>
    <Code>0020-00-00-00000009</Code>
    <Line>1258</Line>
    <FileName>SOAPRequestHandler.cpp,v</FileName>
    <Version>1.33</Version>
    <LastMod>2003/09/16 19:40:42</LastMod>
    <Author>ericp</Author>
    <Date>Mon Feb 21 12:22:24 2005</Date>
    <PID>21360</PID>
    <TID>3030703024</TID>
    <Level>Error</Level>
    </cwsl:Error>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    Would greatly appreciate any help with this.
    Thanks.

    Hi,
    We are actually trying to test Calendar WebServices on a fresh OCS Release 2 installation, with Testoraptor (!), but unsuccessfully ...
    So, I tried you Perl script, and I have the same problem :
    Sending :
    <?xml version='1.0' encoding='UTF-8'?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <cwsl:Ping xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/">
    </cwsl:Ping>
    </soap:Body>
    </soap:Envelope>
    HTTP/1.1 500 Internal Server Error
    Connection: close
    Date: Tue, 19 Jul 2005 15:35:53 GMT
    Server: Oracle9iAS/9.0.2.3.0 Oracle HTTP Server
    Content-Type: text/xml; charset=utf-8
    Client-Date: Tue, 19 Jul 2005 15:35:53 GMT
    Client-Response-Num: 1
    Client-Transfer-Encoding: chunked
    <?xml version="1.0" encoding="utf-8" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Client.Error::System::SOAPRequest</faultcode>
    <faultstring>The SOAPAction's method name is not supported</faultstring>
    <detail>
    <cwsl:Error xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/">
    <Class>Error::System::SOAPRequest</Class>
    <Code>0020-00-00-00000009</Code>
    <Line>1258</Line>
    <FileName>SOAPRequestHandler.cpp,v</FileName>
    <Version>1.33</Version>
    <LastMod>2003/09/16 19:40:42</LastMod>
    <Author>ericp</Author>
    <Date>Tue Jul 19 17:35:53 2005</Date>
    <PID>4518</PID>
    <TID>3030571952</TID>
    <Level>Error</Level>
    </cwsl:Error>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    And into a browser, the URL "http://<machine>:<port>/ocws-bin/ocas.fcgi" give us the message :
    500 Internal Error
    Could you help us ?
    Thank's,
    Eric

  • 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

Maybe you are looking for

  • I am on a new computer and cannot access my itunes account for my iphone 3gs

    How can I update my iPhone to a new computer?

  • Error Message when downlaoding itunes

    Hey, Ive had an ipod nano for xmas that I will be using for the gym. I already have an ipod mini installed on itunes and would like the nano on the same account. However, it says that the nano will not work on anything less that itunes 7.0. When ive

  • Placing file in a folder on FTP

    Hi, Could any body please guide me about the following query: Can we directly place a file to a folder on the FTP through my ABAP program or i need to use Connect and then FTP_COPY. Please guide. Thanks and Regards

  • How to open an old .book/ .doc file(s) and create PDF?

    Hi team, I seek your help and would like to know if you have a suggestion/ solution for the situation stated below − Situation Our development team received some files. These files seem to comprise of two sets of files and one .derive file. The sets

  • Permemantly deleting an old email address.

    When I created a new contact I misspelled his email address. After receiving a delivery failed error I fixed the spelling, but now when I start typing his name in a new email I see both email addresses, the old incorrect one and the correct one. I ha