Professional Web Applications Themes

Please help a rookie on shared lib problems - PERL Modules

Some time ago a developer installed the perl XML package onto our Unix system. When it was installed, it created the normal XML directory (with modules) in the /usr/share/lib/perl5/XML I have learned that I can take these *.pm files, move them into a "modules" directory under the path of my application and then use a "use lib('')" command in my .pTk file to reference that module. No problems. For example, the app could live in ~me/coolApp and the modules would be ~me/coolApp/modules The problem though is that when Expat is installed (a requirement for XML), it creates a series of ...

  1. #1

    Default Please help a rookie on shared lib problems

    Some time ago a developer installed the perl XML package onto our Unix
    system. When it was installed, it created the normal XML directory
    (with modules) in the /usr/share/lib/perl5/XML

    I have learned that I can take these *.pm files, move them into a
    "modules" directory under the path of my application and then use a
    "use lib('')" command in my .pTk file to reference that module. No
    problems. For example, the app could live in ~me/coolApp and the
    modules would be ~me/coolApp/modules

    The problem though is that when Expat is installed (a requirement for
    XML), it creates a series of shared libraries (.so files) in
    /usr/lib32 like: libexpat.so.1.0, libexpat.la, etc. My question is
    how can I simliarly MOVE these libraries into a "lib" directory off of
    my application and allow the modules who use it to SEE that they are
    there instead of in the /usr/lib32 directory.

    You might ask why I am doing this. I am trying to make a
    self-contained little application (TAR'ed up) that can be brought to
    any of our Unix Servers and run. The System Admins here are not the
    greatest and getting them to "build" something and installed onto all
    the servers is near impossible. IN addition, the testers who will be
    using this app are not the brightest and have troubles doing things
    like "make" and "install". Keeping it to a simple "tar -xvf" is about
    the limit that I want them to have to do. So I am trying to build a
    self-contained program that has all its libraries, modules, etc right
    off of the directory in which the program is un-tarred.

    Can any one help?
    Thanks!
    Sean
    Sean Guest

  2. #2

    Default Re: Please help a rookie on shared lib problems

    Sean wrote:

    [snipped]
    > So I am trying to build a
    > self-contained program that has all its libraries, modules, etc right
    > off of the directory in which the program is un-tarred.
    This is exactly the case the PAR Module was build for.

    [url]http://par.perl.org[/url]

    Thomas

    --
    open STDIN,"<&DATA";$=+=14;$%=50;while($_=(seek( #J~.> a>n~>>e~.......>r.
    STDIN,$:*$=+$,+$%,0),getc)){/\./&&last;/\w| /&&( #.u.t.^..oP..r.>h>a~.e..
    print,$_=$~);/~/&&++$:;/\^/&&--$:;/>/&&++$,;/</ #.>s^~h<t< ..~. ...c.^..
    &&--$,;$:%=4;$,%=23;$~=$_;++$i==1?++$,:_;}__END__#.... >>e>r^..>l^...>k^..
    Thomas Kratz Guest

Similar Threads

  1. problems using Runtime shared library
    By gumnam in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: April 17th, 02:32 PM
  2. Having problems with shared object
    By Pal_w_G in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: October 31st, 10:12 AM
  3. OS X shared memory problems 8.0rc3
    By Timothy Perrigo in forum PostgreSQL / PGSQL
    Replies: 4
    Last Post: January 3rd, 01:22 PM
  4. [PHP-DEV] Shared module problems (core dumps) (under
    By Zeev Suraski in forum PHP Development
    Replies: 0
    Last Post: August 29th, 06:42 PM
  5. shared folder problems
    By Robin in forum Windows Networking
    Replies: 1
    Last Post: July 7th, 07:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139