Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: Quick way to set up columns with Class::DBI ?

by siracusa (Friar)
on Aug 21, 2006 at 12:39 UTC ( [id://568524]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Quick way to set up columns with Class::DBI ?
in thread Quick way to set up columns with Class::DBI ?

You do not have to set any environment variables. They are all optional.

The Rose:: modules are all pure-perl and do nothing fancy on test or install. As for your test failures, this line:

"Can't locate Rose/DB.pm in @INC ..."

Indicates to me that Rose::DB is not installed. Rose::DB is a prerequisite for Rose::DB::Object. The CPAN shell should have detected that and offered to install Rose::DB for you before attempting to install Rose::DB::Object.

The fact that this did not (apparently) happen makes me suspicious that other prerequisites may have been missed as well. I'm not sure how this could happen, since the modules specify their prerequisites in the standard, CPAN-supported way. (Look in the "Makefile.PL" of each module to see its list of prerequisites.)

Most big CPAN modules have prerequisites, and sometimes those prerequisites can be painful to install, especially if they have an XS component, and especially on Win32. And, of course, those prerequisites may have prerequisites, and so on.

Among ORMs, some prerequisites are common. For example, DateTime is used by many ORMs to abstract dates. Installing other ORMs may be a bit easier now that you've already done some of the work, but each ORM will have its own unique prerequisites as well. If the module-dependency mechanism is not working correctly on your system, you may have problems installing any non-trivial CPAN modules. But remember that you can always install prerequisites manually, if necessary.

  • Comment on Re^5: Quick way to set up columns with Class::DBI ?

Replies are listed 'Best First'.
Re^6: Quick way to set up columns with Class::DBI ?
by jfrm (Monk) on Aug 21, 2006 at 13:29 UTC
    OK, thanks once again for your extremely prompt help. I am happy to keep plugging away for now. It's very frustrating but I do take your point on prereqs etc. I've tried to install Rose::DB and I think this is the problem. I don't have a compiler, I don't think. Have done a bit of searching but can't find anything pertinent. This has me beat at the moment so any pointers gratefully received.

    (also I struggle to see the remotest reason why I might need anything to do with a TTY for my application but there you are...)
    Warning: prerequisite IO::Tty 0 not found. Writing Makefile for junoscript-perl ---- Unsatisfied dependencies detected during [J/JU/JUNOS/junoscript-p +erl-6.4I0.tar.gz] ----- IO::Tty 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 IO::Tty Running make for R/RG/RGIERSIG/IO-Tty-1.07.tar.gz Checksum for \.cpan\sources\authors\id\R\RG\RGIERSIG\IO-Tty-1.07.tar.g +z ok IO-Tty-1.07/ IO-Tty-1.07/ChangeLog IO-Tty-1.07/Makefile.PL IO-Tty-1.07/MANIFEST IO-Tty-1.07/META.yml IO-Tty-1.07/Pty.pm IO-Tty-1.07/README IO-Tty-1.07/test.pl IO-Tty-1.07/try IO-Tty-1.07/Tty.pm IO-Tty-1.07/Tty.xs CPAN.pm: Going to build R/RG/RGIERSIG/IO-Tty-1.07.tar.gz Now let's see what we can find out about your system (logfiles of failing tests are available in the conf/ dir)... ERROR: cannot run the configured compiler 'cl' (see conf/compilerok.log). Suggestions: 1) The complier 'cl' is not in your PATH. Add it to the PATH and try again. OR 2) The compiler isn't installed on your system. Install it. OR 3) You only have a different compiler installed (e.g. 'gcc'). Either fix the compiler config in the perl Config.pm or install a perl that was built with the right compiler (you could build perl yourself with the available compiler). Note: this is a system-administration issue, please ask your local admin for help. Thank you. Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install

      Let me guess... You are trying to install Rose::DB from the command line like this:

      cpan install Rose::DB

      What happens here is that CPAN tries to install a package called 'install' and then it tries to install a package named 'Rose::DB'. junoscript-perl comes with a package called 'install' so you are trying to install junoscript-perl, and that is failing.

      So what you are seeing is not a Rose::DB problem, but a cpan usage problem and a junoscript-perl problem. Try it like this instead:

      cpan Rose::DB

      Here are some other people who have discovered the same annoying side-effect...

        Yes, that did it. At least it got rid of the TTY problem, thanks very much indeed. There's another one failing now but I can fix that, luckily.

      (Update: The post above by cees seems like the real explanation.)

      (also I struggle to see the remotest reason why I might need anything to do with a TTY for my application but there you are...)

      As do I. IO::Tty is not a direct prerequisite of anything in Rose::DB::*, nor is it an indirect prerequisite as far as I know. I don't even have that module installed, and I can pass the test suite running against all supported databases on Mac OS X and Linux. Maybe it's some sort of Win32 thing?

      I use perl on Unix so I'm not very familiar with with the vagaries of perl on Win32. (I have gone through the DateTime PPM hunt before, however.) But as I said before, Rose:: is all pure perl, so no compiler should be required directly. For the few prerequisite modules that do require a compiler (e.g., DateTime), you should be able to hunt down PPMs.

      You might have better luck asking on the RDBO mailing list. I'm pretty sure at least a few of the subscribers run RDBO on Win32.

        I've now got Rose installed on my client but it's failing on my server due to DateTime. I noticed your mention of the "DateTime PPM hunt" - does this mean you know something I should know??

        WRT DateTime only, so far the following modules have failed with CPAN but I have installed them using PPM:
        Class::Singleton

        Params::Validate

        DateTime::Locale
        DateTime::TimeZone
        But DateTime itself doesn't seem to be on the AS repository and CPAN won't install it either. Stuck again...any pointers?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://568524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-18 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found