can't find Tk/JPEG.pm in @INC 
Author Message
 can't find Tk/JPEG.pm in @INC

I'm trying to install a telephony package called vocp on my linux
system.  It requires a module called Tk::JPEG, as evidenced by the
following error I get when I run the command:

# /usr/local/vocp/bin/xvocp.pl

Compilation failed in require at /usr/local/vocp/bin/xvocp.pl line 95.

What I don't understand is that I still get this error after I moved

have to do some other magic for perl to find the module?  Is there
some other install procedure other than just putting the file in the
search path?

# ll /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/JPEG.pm
-r--r--r--    1 root     root          748 2003-01-31 23:43 /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/JPEG.pm

Thanks,

-Jeff



Thu, 21 Jul 2005 10:44:29 GMT  
 can't find Tk/JPEG.pm in @INC
In addition to simply moving the PM file into one of the include
directories, you must also replicate the directory structure.

Ex.  You are including Tk::JPEG as a module.  To get this to work, you
need to place a folder called Tk in one of the include directories (
id go with site_perl ).  Then put the JPEG.pm file in there.  This is
assuming you are addressing the module correctly and what not.

Quote:

> I'm trying to install a telephony package called vocp on my linux
> system.  It requires a module called Tk::JPEG, as evidenced by the
> following error I get when I run the command:

> # /usr/local/vocp/bin/xvocp.pl

> Compilation failed in require at /usr/local/vocp/bin/xvocp.pl line 95.

> What I don't understand is that I still get this error after I moved

> have to do some other magic for perl to find the module?  Is there
> some other install procedure other than just putting the file in the
> search path?

> # ll /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/JPEG.pm
> -r--r--r--    1 root     root          748 2003-01-31 23:43 /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/JPEG.pm

> Thanks,

> -Jeff



Wed, 27 Jul 2005 00:47:17 GMT  
 can't find Tk/JPEG.pm in @INC
Hello,

Quote:

> In addition to simply moving the PM file into one of the include
> directories, you must also replicate the directory structure.

> Ex.  You are including Tk::JPEG as a module.  To get this to work, you
> need to place a folder called Tk in one of the include directories (
> id go with site_perl ).  Then put the JPEG.pm file in there.  This is
> assuming you are addressing the module correctly and what not.

Yeah, this might work with Tk::JPEG - assuming it is a *pure Perl* module.  If not, there may be xs
files to compile, autosplitting etc. etc... This - in addition to checking for and installing
dependencies - is all taken care of by a CPAN installation :

# perl -MCPAN 'install Tk::JPEG'

or by downloading the tar.gz and doing the usual

$ perl Makefile.PL
$ make
$ make test
# make install

Finally, the VOCP installer can take care of fetching missing modules directly from CPAN and
installing them, correctly - so why not use that?

HTH.

Regards,
--
Pat Deegan,
Registered Linux User #128131
http://www.psychogenic.com/



Thu, 28 Jul 2005 16:18:21 GMT  
 can't find Tk/JPEG.pm in @INC

Quote:

> Hello,

.. snip ..
> Yeah, this might work with Tk::JPEG - assuming it is a *pure Perl*
> module.  If not, there may be xs files to compile, autosplitting
> etc. etc... This - in addition to checking for and installing
> dependencies - is all taken care of by a CPAN installation :

> # perl -MCPAN 'install Tk::JPEG'

> or by downloading the tar.gz and doing the usual

> $ perl Makefile.PL
> $ make
> $ make test
> # make install

> Finally, the VOCP installer can take care of fetching missing modules
> directly from CPAN and installing them, correctly - so why not use
> that?

Thanks Pat.  The VOCP installer was trying to install the modules, but
was not successful.  I also tried using perl -MCPAN ... but I get tons
of parse errors.  I downloaded the module and did it by hand and it
seems that I'm missing some other module (X11?).  I'm not sure what
module I need to install to fix this.  I poked around on CPAN but I'm
a little lost.

Here is where I see things going awry:

In file included from /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkPort.h:42,
                 from JPEG.xs:13:
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:92:22: X11/Xlib.h: No such file or directory
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:93:28: X11/cursorfont.h: No such file or directory
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:94:24: X11/keysym.h: No such file or directory
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:95:23: X11/Xatom.h: No such file or directory
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:96:24: X11/Xproto.h: No such file or directory
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:97:27: X11/Xresource.h: No such file or directory
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:98:23: X11/Xutil.h: No such file o



Sat, 30 Jul 2005 14:38:09 GMT  
 can't find Tk/JPEG.pm in @INC

Quote:

> Here is where I see things going awry:

> In file included from /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkPort.h:42,
>                  from JPEG.xs:13:
> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:92:22: X11/Xlib.h: No such file or directory
> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:93:28: X11/cursorfont.h: No such file or directory
> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:94:24: X11/keysym.h: No such file or directory
> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:95:23: X11/Xatom.h: No such file or directory
> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:96:24: X11/Xproto.h: No such file or directory
> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:97:27: X11/Xresource.h: No such file or directory
> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Tk/pTk/tkUnixPort.h:98:23: X11/Xutil.h: No such file o

I just needed to install the x development libraries.  The Tk::JPEG
module installed just fine now.  Thanks for the help.


Sat, 30 Jul 2005 15:31:33 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Can't find AnyModule.pm in @INC

2. Solution found - Perl Module Tk::JPEG is not compatible with Tk

3. Can't locate Tk/AddScrollbars.pm in @INC

4. Can't locate URI::URL.pm in @INC using XML::Parser.pm

5. Cannot find FileHandle.pm but it is in the @INC

6. get error: cant find net/ftp.pm in @INC

7. Can't find loadable object for GD in @INC

8. DB_File: TIESCALAR.al can't be found in @INC

9. Can't find loadable object for module IO in @INC

10. Can't find module in @INC- usual fix not working

11. Can't find *** in @INC ....Help Please

12. Can't find autosplit.ix in @INC

 

 
Powered by phpBB® Forum Software