LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   perl modules (http://www.linuxquestions.org/questions/linux-newbie-8/perl-modules-153002/)

mairul 03-03-2004 09:19 AM

perl modules
 
I want to install following perl modules...

MIME/PARSER/FILER
Convert/TNEF
Archieve/Zip

but failed to install..

I have download "Archieve-Zip-1.09.tar.gz"...from web..then I untar it and give "perl Makefile.PL" command but it says...

[root@pc2 Archive-Zip-1.09]# perl Makefile.PL

Warning: I could not locate your pod2man program. Please make sure,
your pod2man program is in your PATH before you execute 'make'

Writing Makefile for Archive::Zip
[root@pc2 Archive-Zip-1.09]#


I have download the "perl-Convert-TNEF-0.17-1.noarch.rpm" file from web and when try to install it says...

[root@pc2 test]# rpm -ivh perl-Convert-TNEF-0.17-1.noarch.rpm
error: Failed dependencies:
perl(IO::Wrap) is needed by perl-Convert-TNEF-0.17-1
perl(MIME::Body) is needed by perl-Convert-TNEF-0.17-1
[root@pc2 test]#


I search for "perl-Convert-TNEF-0.17-1" at my redhat 9 CD but can't find..

I search for "MIME::Parser::Filer" at web but cannot find....

really I am in great problem...:(

guygriffiths 03-03-2004 10:14 AM

Well the first one doesn't work because you don't have pod2man installed. Do a google or freshmeat search, and install it.
The second one doesn't work because you are missing perl modules which it depends on. Install those perl modules first and all will be well.

mairul 03-03-2004 11:17 AM

actually i have search those files at google and at CPAN but cannot find the specific file that could help me...can you help me little more finding those files..

guygriffiths 03-03-2004 12:54 PM

Go to http://search.cpan.org and search for:
IO Wrap
MIME Body
That's how I found them.
pod2man should be included with perl, so do:
find / -name pod2man
and make sure the path is in your PATH environment variable

mairul 03-03-2004 11:13 PM

following your suggesion I was able to install

MIME/PARSER/FILER
Convert/TNEF

but still trying to install

Archieve/Zip

as you say...I search at my hard disk..

it says..

[root@pc2 /]# find / -name pod2man
/usr/bin/pod2man
/home/test/podlators-1.27/scripts/pod2man
/home/test/podlators-1.27/blib/script/pod2man
[root@pc2 /]#

I think pod2man is installed but not properly....or it is not in right path...

can I get a little help more...so that I can be able to install "Archieve/Zip"

I install perl-5.8.0-88 again but it does'nt work...

guygriffiths 03-04-2004 03:39 AM

Well pod2man seems installed in the right place. Just check to make sure that /usr/bin is in your PATH variable (although I'm sure it will be) by doing "printenv" or "echo $PATH".
Since the message was only a warning, try doing "make" and see what happens.

mairul 03-04-2004 07:31 AM

Here is the output....

[root@pc2 /]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:
/root/bin
[root@pc2 /]#

I tried to make and make test and make install....but same error..

I am also sure that there might be no problem...any alternate solution pls...

sorry for the same type of questions again...:)

guygriffiths 03-04-2004 07:37 AM

Well, pod2man is in your path, so it should work. What happens when you type "pod2man --help"? I imagine it runs.
What errors are you getting when you try "make"? You only posted the warning you were getting with "perl Makefile.PL"

mairul 03-05-2004 02:24 AM

[root@pc2 /]# pod2man --help
Usage:
pod2man [--section=*manext*] [--release=*version*] [--center=*string*]
[--date=*string*] [--fixed=*font*] [--fixedbold=*font*]
[--fixeditalic=*font*] [--fixedbolditalic=*font*] [--name=*name*]
[--official] [--lax] [--quotes=*quotes*] [--verbose] [*input* [*output*]
...]

pod2man --help

[root@pc2 /]#


[root@pc2 Archive-Zip-1.09]# perl Makefile.PL

Warning: I could not locate your pod2man program. Please make sure,
your pod2man program is in your PATH before you execute 'make'

Writing Makefile for Archive::Zip
[root@pc2 Archive-Zip-1.09]# make
Makefile:68: *** missing separator. Stop.
[root@pc2 Archive-Zip-1.09]# make test
Makefile:68: *** missing separator. Stop.
[root@pc2 Archive-Zip-1.09]# make install
Makefile:68: *** missing separator. Stop.
[root@pc2 Archive-Zip-1.09]#


[root@pc2 /]# printenv
HOSTNAME=pc2.dns2.com
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=202.84.35.225 1505 22
QTDIR=/usr/lib/qt-3.1
OLDPWD=/root
SSH_TTY=/dev/pts/0
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
USERNAME=root
MAIL=/var/spool/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/
LANG=en_US.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=1
HOME=/root
BASH_ENV=/root/.bashrc
LOGNAME=root
SSH_CONNECTION=202.84.35.225 1505 202.84.35.224 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/usr/bin/printenv
[root@pc2 /]#

guygriffiths 03-05-2004 04:10 AM

I'm sorry but I have no idea what's wrong. I tried downloading the file, and when I moved my pod2man so that it was no longer in my path, and did "perl Makefile.PL", I got no warnings or errors. It was fine on the make stage as well, so obviously pod2man wasn't being used.
The only warning I get is about missing dependencies, but this doesn't affect the build. I'm sorry, but I honestly don't know what's gone wrong here.

mairul 03-06-2004 02:06 AM

ok...:)....thanks for your nice and helpful co-operation..let me continue trying and i will let you know if I able to solve the problem...thank you again...

lonesail 03-08-2004 04:46 PM

try this
 
try this:

bash# unset $LANG

or if that doesn't work

bash# unset LANG

and then

bash# make Makefile.PL

mairul 03-08-2004 08:56 PM

thank you so much....it works.....:)

actually I was trying to install amavis mailscanner at my redhat 9..after successful installation of all perl modules I was trying to configure amavis..

but at the time of my amavis installation I got following errors..

[root@pc2 amavis-0.3.12]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for perl... /usr/bin/perl
checking for perl modules... found
checking for file... /usr/bin/file
checking whether /usr/bin/file recognises TNEF files... yes
checking for id... /usr/bin/id
checking for arc... no
configure: error: Sorry, you need arc
[root@pc2 amavis-0.3.12]#

neo77777 03-08-2004 09:41 PM

why not utilize CPAN from whitin perl
perl -MCPAN -e shell
cpan> install Perl::Package
is all that is needed, just insruct it to follow the dependencies during initial setup of CPAN and it will do its best to get you desired modules.


All times are GMT -5. The time now is 08:52 AM.