Dynamic binding problem

Dynamic binding problem

Post by NICHOLAS DRON » Sat, 01 May 1999 04:00:00



: Hi, Guys:
: In my company, there is a central machine which has all kind of app/scripts
: installed on /usr/local , and this machine export its /usr/local directory to
: all other machines in house, so that all other machine can nfs mount this
: directory and can share the app/scripts on this central machine.

: We have some scripts writen in Perl/tk which calls the Perl in
: /usr/local/bin. Those scripts ran OK several weeks ago. However, recently, we
: cutover the central machine from Tokenring to ethernet, and now this central
: machine is in the same subnet as other machine nfs mounted the usr/local.
: From then on, those Perl/Tk script no longer works, even though other
: app/scripts in /usr/local/bin still works fine. Everytime when I try to run a
: perl script, it gives out following message:

: Can't load '/usr/local/lib/perl5/aix/auto/Tk/Tk.so' for module Tk: dlopen:
: /usr/local/lib/perl5/aix/auto/Tk/Tk.so: No such file or directory at
: /usr/local/lib/perl5/DynaLoader.pm line 450.

:  at /usr/local/lib/perl5/Tk.pm line 31
: BEGIN failed--compilation aborted at test.pl line 2.

: The content of test.pl has just two line:
: #!/usr/local/bin/perl -w
:     use Tk;

: I heard that there's some dynamic binding /NFS problem of Perl modules . IS
: there any solution to this problem??

Line 31 of Tk.pm is probably where bootstrap is called.   Hmmm.

DynaLoader is being called successfully, and that is in the
same directory structure below /usr/local, so it may not
be a problem with /etc/exports.

NFS just uses RPC to execute/read/write files on the remote system.  
If there were a problem with dlopen and perl over NFS, wouldn't that
same problem affect C programs?

Some obvious questions: can you run the perl program on the
NFS server? Does the Tk shared object exist?  What are it's
permissions?  As which user are you trying to run the script
on the NFS clients?  Can you cd into /usr/local/lib/perl5/aix/auto/Tk
on one of the NFS clients?  (The permissions questions are a bit
of a reach, as dlopen() calls load(), which is capable of returning
EACCESS.)

Anyway, this is an interesting problem.  Good luck with it.

 
 
 

Dynamic binding problem

Post by Jens-Uwe Mag » Sat, 01 May 1999 04:00:00




>In my company, there is a central machine which has all kind of app/scripts
>installed on /usr/local , and this machine export its /usr/local directory to
>all other machines in house, so that all other machine can nfs mount this
>directory and can share the app/scripts on this central machine.

>We have some scripts writen in Perl/tk which calls the Perl in
>/usr/local/bin. Those scripts ran OK several weeks ago. However, recently, we
>cutover the central machine from Tokenring to ethernet, and now this central
>machine is in the same subnet as other machine nfs mounted the usr/local.
>From then on, those Perl/Tk script no longer works, even though other
>app/scripts in /usr/local/bin still works fine. Everytime when I try to run a
>perl script, it gives out following message:

>Can't load '/usr/local/lib/perl5/aix/auto/Tk/Tk.so' for module Tk: dlopen:
>/usr/local/lib/perl5/aix/auto/Tk/Tk.so: No such file or directory at
>/usr/local/lib/perl5/DynaLoader.pm line 450.

Simply do an ls -l /usr/local/lib/perl5/aix/auto/Tk/Tk.so, probably this is
missing.

Quote:> at /usr/local/lib/perl5/Tk.pm line 31
>BEGIN failed--compilation aborted at test.pl line 2.

>The content of test.pl has just two line:
>#!/usr/local/bin/perl -w
>    use Tk;

>I heard that there's some dynamic binding /NFS problem of Perl modules . IS
>there any solution to this problem??

I have not noticed any problems in that area, and we have perl and other stuff
that does dynamic loading across NFS and it works fine.

--
Jens-Uwe Mager  <pgp-mailto:62CFDB25>
When your hammer is C++ everything starts to look like a thumb.

 
 
 

1. Dynamic update problems with Bind 8.2

Is anyone aware of a problem with nsupdate and named 8.2?  I have a perl
script I use to generate the input file for nsupdate and it works
flawlessly with named 8.1.2.  However, another user is having problems with
it working with 8.2.  

When using the script the PTR record is created but the A record is not.
He can run nsupdate in batch mode or interactive mode and gets the same
error.  I can run the same commands with 8.1.2 and everything works fine.
I'm stumped.

Suggestions?

--
Stephen Carville

----------------------------------------------------
It's all right to have geniuses build systems for use by idiots, but
the path from laboratory to marketplace needs to go through the
proving ground of prudent engineering.
                                        Peter Coffee

2. NetBSD on Netwinder?

3. Stick problem - BIND 4.9.5, Msql-Bind 1.31 and Linux 2.0.13

4. programming serial I/O

5. Bind capable of Dynamic DNS?

6. problems with Ethernet (3com 3c509b)

7. Dynamic implementation binding

8. Is my linux installation too slow?

9. bind, DHCP and dynamic DNS updates

10. dynamic binding

11. Shareable Images/dynamic binding possible with Unix?

12. dynamic binding, linking, loading etc

13. Dynamic DNS and dhcpd/bind