Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bootstrap

Status
Not open for further replies.

weirdcpu

IS-IT--Management
Mar 19, 2005
22
FR
hello

I try to use a documentation program nammed "edoc".
It use tk and it's written in Perl
I m trying it on Win98

The programme stop because it don't find tk::photo.

I have all the needed modules installed on my computer
so i think that there is a pathway problem inside these
lines :


package Tk;
require DynaLoader;
eval q{ require Tk::Event };
@ISA = qw(DynaLoader);
bootstrap Tk;
sub TranslateFileName { $_[0] };
sub SplitString { split /\s+/, $_[0] }; # rough approximation

package Tk::photo;
@ISA = qw(DynaLoader);
bootstrap Tk::photo;

Can you explain what the mean of the bootstrap instruction ?

Thanks

PS : All the above code is after BEGIN
 
package Tk::photo;
@ISA = qw(DynaLoader);
bootstrap Tk::photo;
where did you get this from?

could you show us the code of the program or a link to it?
which version of perl do you have and which version of Tk suite?

TIMTOWTDI
 
i found this project by a link on :


"from Thomas Schmickl, the e.doc project gives the users of SGML-based text systems the possibility to design their documents in a nearly WYSIWYG environment (What You See Is What You Get).
This is a real full software, runs under Win32 and x$.
The web site of Thomas is located at ":

 
following :

My perl version is activestate 5.8.6
It contains tk ( under \site\lib )

@INC contains c:\Perl\lib and c:\Perl\site\lib so perl should be able to find tk.

It will be difficult to provide the entire code as the lines above start at lines number 90 ( perhaps a little too much too post ).

As i understand the situation the first package ( tk ) loaded correctly.
The second package tk::photo don't load ( Yes tk::photo is under \site\lib\tk )

I suspect that the code :

sub TranslateFileName { $_[0] };
sub SplitString { split /\s+/, $_[0] };

change the way of the instruction "bootstrap".
My gut feeling it's that a code for unix system not for windows. But i m on very thin ground here.

This is the error i get :

"C:\edoc\redist>perl edoc.pl
Operating System: Win32
e:doc script is in path: "C:/edoc/redist"
Can't locate loadable object for module Tk::photo in @INC (@INC contains: C:/Pe
l/lib C:/Perl/site/lib .) at edoc.pl line 88
Can't call method "update" on an undefined value at edoc.pl line 159 (#1)
(F) You used the syntax of a method call, but the slot filled by the
object reference or package name contains an undefined value. Something
like this will reproduce the error:

$BADREF = undef;
process $BADREF 1,2,3;
$BADREF->process(1,2,3);

Uncaught exception from user code:
Can't call method "update" on an undefined value at edoc.pl line 159.
at edoc.pl line 159"
 
I have try to comment bootstrp :
package Tk::photo;
@ISA = qw(DynaLoader);
#bootstrap Tk::photo;


an i have something different :

Operating System: Win32
e:doc script is in path: "C:/edoc/redist"
Can't set relief to `raised' for Tk::Frame=HASH(0x289835c): unknown option "reli
ef" at C:/Perl/site/lib/Tk/Configure.pm line 46.
at C:/Perl/site/lib/Tk/Derived.pm line 294

at C:/Perl/site/lib/Tk/Derived.pm line 306
Uncaught exception from user code:
Tk::NBFrame object version 804.027 does not match $Tk::NBFrame::VERSION
4.004 at C:/Perl/lib/DynaLoader.pm line 253.
Compilation failed in require at (eval 13) line 3.
...propagated at C:/Perl/lib/base.pm line 85.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Tk/NoteBook.pm line 15.
Compilation failed in require at edoc.pl line 176.
at edoc.pl line 176
 
I just tried to push the tk subdir into @INC :


package Tk::photo;

@ISA = qw(DynaLoader);
push( @INC,"C:/Perl/site/lib/tk");
bootstrap Tk::photo;


No change : ( except for the values in @INC )


C:\edoc\redist>perl edoc.pl
Operating System: Win32
e:doc script is in path: "C:/edoc/redist"
Can't locate loadable object for module Tk::photo in @INC (@INC contains: C:/Per
l/lib C:/Perl/site/lib . C:/Perl/site/lib/tk) at edoc.pl line 88



C:\Perl\site\lib\Tk>dir Pho*.*

here my tk subdirectory :

Le volume dans le lecteur C n'a pas de nom
Le numéro de série du volume est 2664-11D4
Répertoire de C:\Perl\site\lib\Tk

PHOTO PM 426 13/12/04 10:23 Photo.pm
PHOTO POD 18 984 13/12/04 10:23 Photo.pod
 
Sorry to disappoint you but that is not the only error this script has, and it will be very painfull to sit and try to correct all the errors. There are also many modules builded by the author which contain errors.

This begin block it has that bootstrap in, is only for the splach screen, even if you delete it there are more errors coming up. If you try to follow the errors they lead you to more........headache!!!!!!!!

Maybe it is only compatible with preview versions of Perl/Tk.

What do you want to do and you turned out to this program anyway?


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Thank very much for your help and your quick response.

I have think that this program could help me to manage the many documents i must follow in my work.

Actually i have to control the receiving, testing and sending of many programs from a financial application undex unix.

As this application is very old, the management is do with a mess of various documents, including text under vi, *.doc under windows, mails under Lotus.

edoc was interesting because as i have the source i hope to configure it to my need with win32 modules.

But if it has too many bug i will search something else...

What i have in mind is something like this :


Chandler ( ) will be great if it can be compatible with windows 98 :-(
 
Download Chandler for Windows, and although it as been tested on XP, it might work on 98 too.

But everyone would suggest an upgrade of your OS to Win XP, anyway. Did you thought of that?

Anyway, i'll get back to you tommorow, i got to go. Later......


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
But everyone would suggest an upgrade "

I wish i can but it's not me wich decides when my organisation will upgrade its PC park ( sometime in 2006 probably ).

Thank very much for your help, i think i will try chandler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top