Allan, Thanks again for describing that "install_cluster" and "wizard_prep" (and as hinted by you, doubtless further scripts down the road) need to be "hand-held" regarding how to find the custom perl and python modules. Remembering about PERL5LIB should've been obvious. (And thanks for reminding that there should be no quotes around the arg when exporting PERL5LIB - no worries ;). I'll confess that I haven't yet had to explicitly export PYTHONLIB, but I haven't gotten that far yet.
Only, (properly) exporting PERL5LIB still doesn'ty fix things. It's possible I've missed something. You'd think this would (trivially) work and enable all the install scripts and scripts called therein to work. To reiterate, the variable is exported from the shell invoking "install_cluster", with contents determined by "updatedb" and "locate PackageSmart (or PackagePath, or...)", ie., /opt/oscar/lib/ (leaving out the trailing OSCAR/, since this is explicitly included in the scripts). It's easy to test that one is using the right variable contents, by substituting a bogus value and watching it fail, and to test that wizard_prep is inheriting the variable (by having it echo it, say). All seems well here. Only it isn't helping. What might perplex me is that, in /opt/oscar/scripts/wizard_prep, the "use OSCAR::PackagePath;" statement succeeds (and can only succeed when PERL5LIB is set correctly) yet the call of a subroutine (prepare_pool()) in PackageSmart, further down, fails with "Undefined subroutine", and moreover, as if it can't find PackageSmart at all; PackagePath and PackageSmart sit right next to one another in /opt/oscar/lib/OSCAR. I'm obviously missing something. Again, the only thing I can think of comes from what happens if one also puts a "use OSCAR::PackageSmart;" in wizard_prep (which you'd think would be okay); immediate complaints about no "PackMan". PackMan does not exist in my OSCAR tree: [EMAIL PROTECTED] OSCAR]# cd /opt [EMAIL PROTECTED] opt]# find . -name "Pack*" ./oscar/lib/OSCAR/PackageSet.pm ./oscar/lib/OSCAR/PackageSmart.pm ./oscar/lib/OSCAR/PackageBest.pm ./oscar/lib/OSCAR/PackagePath.pm ./oscar/lib/OSCAR/PackageInUn.pm ./oscar/lib/OSCAR/Package.pm [EMAIL PROTECTED] opt]# cd /tftpboot [EMAIL PROTECTED] tftpboot]# !find find . -name "Pack*" ./oscar/oscar-5.1rc1/lib/OSCAR/PackageSet.pm ./oscar/oscar-5.1rc1/lib/OSCAR/PackageSmart.pm ./oscar/oscar-5.1rc1/lib/OSCAR/PackageBest.pm ./oscar/oscar-5.1rc1/lib/OSCAR/PackagePath.pm ./oscar/oscar-5.1rc1/lib/OSCAR/PackageInUn.pm ./oscar/oscar-5.1rc1/lib/OSCAR/Package.pm ./distro/fedora-9-x86_64/PackageKit-0.1.12-10.20080505.fc9.x86_64.rpm ./distro/fedora-9-x86_64/PackageKit-libs-0.1.12-10.20080505.fc9.x86_64.rpm ./distro/fedora-9-x86_64/PackageKit-libs-0.1.12-10.20080505.fc9.i386.rpm Should it? Other than PERL5LIB, was there something else in particular you needed to ensure before wizard_prep could finish and the install GUI (which I have yet to see) fire up? Do you have a quick synopsis handy of just what you had to do to get OSCAR installed on F9? I would be very grateful. In the meantime, I'll triple-check what I'm doing re: your advice. It's encouraging that at least you managed to get this process to work! Chris On Fri, 10 Oct 2008, Allan Menezes wrote: > Allan Menezes wrote: > >> Hi Christopher, >> I have succesfully installed fc9x86_64 on an 6 node intel quad core >> cluster. >> You can try using updatedb as root and then try locate PackageSmart.pm >> to locate the file where wizard_prep crashes saying it cannot find it. >> Note installing fc9 is hard and not for novices but not impossible. I >> have done it. >> For wizard_prep to find the file PackageSmart.pm you have to give it's >> path without the OSCAR etc suffix to the perl environment variable. >> So my apologies to Munkhzorig Gankhuyag there was an error in that >> reply that escaped me then. >> My reply was #export PERL5LIB=$PERL5LIB:"/opt/oscar/lib" >> IT should have been #export PERL5LIB=$PERL5LIB:/opt/oscar/lib >> to see what i say try #echo $PATH and it will tell you the path of the >> executables in your .bash_profile directory. >> So try #echo $PERL5LIB and see what you get. IT it is empty then just >> type #export PERL5LIB=/opt/oscar/lib >> All these things can be hard coded but for now try this Also do it >> always in the shell you invoke ./install_cluster ... >> and if you start another shell or close the shell and reopen the shell >> and try ./install_cluster .... type #export PERL5LIB=/opt/oscar/lib > > Also do the export of the PERL5LIB environment var before you invoke > ./install_cluster ... And you may also have to export to PYTHONPATH > later on if you succed with this. > It's actually simple. Try ./install_cluster ... and every time it fails > because it cannot find a perl module or a python module try #locate and > the filename.pm or .py > and then type export PERL5LIB=$PERL5LIB:/path name that you can cut and > paste from the locate output and export PYTHONPATH=$PYTHONPATH:/path to > python module the oscar setup cannot find. > Also if the #locate filename is large redirect it to a file called test > or something and in another xterm type vi test so you can can see it! > It's difficult but doable > Thanks, > Allan Menezes > >> note also no spaces in the export. >> Try this and see if your problem goes away. >> Email the results please >> Good luck! >> Allan Menezes >> Christopher C. Stevenson wrote: >> >>> Greetings - my first posting. >>> >>> The quick synopsis is: "Someone HAS to have installed OSCAR 5.1rc1 >>> successfully on Fedora 9 x86_64 by now - I've read the threads and >>> tried repeatedly but cannot. Please help". I am not a complete >>> linux newbie. >>> >>> Please read on. I've now been at this for several days and have hit >>> a wall. >>> >>> I'm building a cluster of 16+1 Intel quad-cores for some in-house HPC >>> and have chosen OSCAR to provide the infrastructure, on Fedora 9 >>> because we've supported Fedora since its inception, it's familiar, >>> and Fedora has worked as a distro for (smaller) clusters I've made >>> (by hand) in the past. >>> >>> So, on top of a fresh (non-updated) install of Fedora 9 on the master >>> node, I've been attempting to install what the OSCAR site and >>> SOURCEFORGE both seem to consider the latest (safe, not a >>> nightly-build) release, 5.1rc1 >>> >>> I downloaded oscar-repo-fc-9-x86_64-5.1rc1.tar.gz and >>> oscar-repo-common-rpms-5.1rc1.tar.gz, unpacked them into >>> /tftpboot/oscar/, provided a copy of my entire Fedora 9 distro DVD in >>> /tftpboot/distro/fedora-9-x86_64, etc., following the instructions in >>> http://svn.oscar.openclustergroup.org/trac/oscar/wiki/InstallGuide >>> >>> At this point this posting will look almost identical to one made on >>> Aug 31 by Munkhzorig Gankhuyag and discussed/answered by Allan >>> Menezes et al. >>> (http://www.mail-archive.com/oscar-users@lists.sourceforge.net/msg07168.html); >>> >>> >>> "I resolved all errors" (in my case this means, among other things, >>> adding a "|9" to [fedora*:5|6|7|8:*] in >>> /opt/oscar/packages/yume/prereq.cfg, or manually install perl-IO-Tty >>> and perl-AppConfig because this wasn't happening automatically) "but >>> still can't solve this error: >>> >>> [...] >>> ============================================================================= >>> >>> == Running OSCAR wizard_prep script >>> ============================================================================= >>> >>> >>> --> Bootstrapping OSCAR smart package manager >>> Undefined subroutine &OSCAR::PackageSmart::prepare_pools called at >>> ./wizard_prep line 185. >>> eval require PackageSmart returned No such file or directory >>> --> Checking OSCAR repositories existence. >>> Oscar Wizard preparation script failed to complete (cd >>> /opt/oscar/scripts && ./wizard_prep) at ./install_cluster line 285. >>> " >>> >>> That thread ended with "export PERL5LIB properly so attempts by perl >>> to load local OSCAR modules will work >>> >>> (ie., "#export PERL5LIB=$PERL5LIB:/opt/oscar/lib/" in the shell >>> you're working in) >>> >>> and the thread appeared resolved/closed. Unfortunately, by itself >>> this advice is a step in the right direction (allows, eg., "use >>> PackagePath;" in wizard_prep to work) but does not solve the >>> problem. The best I can determine so far is that PackMan needs to be >>> in there, too, but isn't provided by what I downloaded. The >>> distro.url exists so the installer can run off to get things not in >>> the distro directory. >>> >>> Rather than continue to burn more time chasing this down, please >>> enlighten me as to how I can even begin the installation process for >>> OSCAR 5.1rc1 on Fedora 9. Someone on this list must've done this. >>> I've even contemplated backing up to Fedora 8 (which seems "more >>> supported"), though we're on the eve of the release of 10. >>> >>> Thanks in advance, >>> Chris >>> ====================================================================== >>> "We are all in the gutter, >>> but some of us are looking at the stars." - Oscar Wilde >>> >>> >>> ------------------------------------------------------------------------- >>> >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win >>> great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the >>> world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Oscar-users mailing list >>> Oscar-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/oscar-users >>> >>> >>> >> >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Oscar-users mailing list > Oscar-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oscar-users > ====================================================================== Christopher C Stevenson, C4063 office: (709) 737-2624 Dept. of Physics & Physical Oceanography fax: (709) 737-8739 Memorial University of Newfoundland St. John's, NL, CANADA A1B 3X7 URL: http://www.physics.mun.ca/~csteven ====================================================================== "We are all in the gutter, but some of us are looking at the stars." - Oscar Wilde ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Oscar-users mailing list Oscar-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oscar-users