LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-16-2005, 11:25 AM   #1
tobycatlin
Member
 
Registered: Apr 2005
Location: Norwich, UK
Posts: 30

Rep: Reputation: 15
cPan install problems


Hello all, I could really use some help.
I have a redhat enterprise server that has just been installed from disk and never updated. i am trying to run BackupPc which is a perl frontend for rsync.

I am following this tutorial
My problem comes when i try to install some cpan modules, i run:
cpan
install Compress::Zlib Archive::Zip File::RsyncP
I get a slew of messages but the important ones seem to be
Code:
make[1]: *** [Digest.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/File-RsyncP-0.52/Digest'
make: *** [subdirs] Error 2
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
I have never managed to complie anything on this machine. I have gcc 3.2.3 installed and if i run gcc -v i get
Code:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)
I think there is a simple answer to get the complier running but i don't know enough about linux to know where to start.

i would be a very happy lad if someone can shed some light on the situation.
 
Old 05-17-2005, 01:12 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The import messages will be slightly higher up than what you posted - it will probably ssay something about a missing file.
 
Old 05-18-2005, 06:49 AM   #3
tobycatlin
Member
 
Registered: Apr 2005
Location: Norwich, UK
Posts: 30

Original Poster
Rep: Reputation: 15
Heres the whole lot.

Code:
cpan> install Compress::Zlib Archive::Zip File::RsyncP
Running install for module Compress::Zlib
Running make for P/PM/PMQS/Compress-Zlib-1.34.tar.gz
  Is already unwrapped into directory /root/.cpan/build/Compress-Zlib-1.34
  Has already been processed within this session
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
Running install for module Archive::Zip
Running make for N/NE/NEDKONZ/Archive-Zip-1.14.tar.gz
  Is already unwrapped into directory /root/.cpan/build/Archive-Zip-1.14
  Has already been processed within this session
Running make test
---- Unsatisfied dependencies detected during [N/NE/NEDKONZ/Archive-Zip-1.14.tar.gz] -----
    Compress::Zlib
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes] yes
Running make install
  make had returned bad status, install seems impossible
  Delayed until after prerequisites
Running install for module Compress::Zlib
Running make for P/PM/PMQS/Compress-Zlib-1.34.tar.gz
  Is already unwrapped into directory /root/.cpan/build/Compress-Zlib-1.34
  Has already been processed within this session
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
Running make for N/NE/NEDKONZ/Archive-Zip-1.14.tar.gz
  Is already unwrapped into directory /root/.cpan/build/Archive-Zip-1.14
  Has already been processed within this session
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
Running install for module File::RsyncP
Running make for C/CB/CBARRATT/File-RsyncP-0.52.tar.gz
  Is already unwrapped into directory /root/.cpan/build/File-RsyncP-0.52
  Has already been processed within this session
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
 
Old 05-18-2005, 06:52 AM   #4
tobycatlin
Member
 
Registered: Apr 2005
Location: Norwich, UK
Posts: 30

Original Poster
Rep: Reputation: 15
This is a displayed when i load cpan
Code:
Undefined value assigned to typeglob at (eval 13) line 15, <RC> line 11.
Warning [/etc/inputrc line 11]:
  Invalid variable `mark-symlinked-directories'
 
cpan shell -- CPAN exploration and modules installation (v1.76)
ReadLine support enabled
 
Can't ioctl TIOCGETP: Invalid argument
Consider installing Term::ReadKey from CPAN site nearby
        at http://www.perl.com/CPAN
Or use
        perl -MCPAN -e shell
to reach CPAN. Falling back to 'stty'.
        If you do not want to see this warning, set PERL_READLINE_NOWARN
in your environment.
 
Old 05-18-2005, 01:56 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you clean your build directory then try the install again and post the results:
rm -f /root/.cpan/build/*
 
Old 05-19-2005, 04:10 AM   #6
tobycatlin
Member
 
Registered: Apr 2005
Location: Norwich, UK
Posts: 30

Original Poster
Rep: Reputation: 15
ok cleared the build dir and got the same messages. there is a bit missing from the top as by terminal buffer isn't big enough. if it critcal i'll get it

Code:
File-RsyncP-0.52/lib/File/RsyncP.pm
File-RsyncP-0.52/Digest/
File-RsyncP-0.52/Digest/t/
File-RsyncP-0.52/Digest/t/blockDigest.t
File-RsyncP-0.52/Digest/t/fileDigest.t
File-RsyncP-0.52/Digest/Changes
File-RsyncP-0.52/Digest/Digest.pm
File-RsyncP-0.52/Digest/Digest.xs
File-RsyncP-0.52/Digest/global.h
File-RsyncP-0.52/Digest/Makefile.PL
File-RsyncP-0.52/Digest/md4.h
File-RsyncP-0.52/Digest/md4c.c
File-RsyncP-0.52/Digest/rsync_lib.c
File-RsyncP-0.52/Digest/typemap
File-RsyncP-0.52/FileList/
File-RsyncP-0.52/FileList/t/
File-RsyncP-0.52/FileList/t/fileList.t
File-RsyncP-0.52/FileList/Changes
File-RsyncP-0.52/FileList/FileList.pm
File-RsyncP-0.52/FileList/FileList.xs
File-RsyncP-0.52/FileList/flist.c
File-RsyncP-0.52/FileList/flist.h
File-RsyncP-0.52/FileList/Makefile.PL
File-RsyncP-0.52/FileList/typemap
File-RsyncP-0.52/Changes
File-RsyncP-0.52/LICENSE
File-RsyncP-0.52/Makefile.PL
File-RsyncP-0.52/MANIFEST
File-RsyncP-0.52/README

  CPAN.pm: Going to build C/CB/CBARRATT/File-RsyncP-0.52.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for File::RsyncP::Digest
Writing Makefile for File::RsyncP::FileList
Writing Makefile for File::RsyncP
cp lib/File/RsyncP/FileIO.pm blib/lib/File/RsyncP/FileIO.pm
cp lib/File/RsyncP.pm blib/lib/File/RsyncP.pm
make[1]: Entering directory `/root/.cpan/build/File-RsyncP-0.52/Digest'
cp Digest.pm ../blib/lib/File/RsyncP/Digest.pm
AutoSplitting ../blib/lib/File/RsyncP/Digest.pm (../blib/lib/auto/File/RsyncP/Digest)
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap  Digest.xs > Digest.xsc && mv Digest.xsc Digest.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686   -DVERSION=\"0.52\" -DXS_VERSION=\"0.52\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"  -DPERL_BYTEORDER=1234 Digest.c
In file included from Digest.xs:21:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:371:30: sys/types.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:402:19: ctype.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:414:23: locale.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:431:20: setjmp.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:437:26: sys/param.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:442:23: stdlib.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:447:23: unistd.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:479:23: string.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:612:27: netinet/in.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:616:26: arpa/inet.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:626:25: sys/stat.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:648:21: time.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:655:25: sys/time.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:662:27: sys/times.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:669:19: errno.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:681:25: sys/socket.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:708:21: netdb.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:805:30: sys/ioctl.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:834:23: dirent.h: No such file or directory
In file included from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/limits.h:11,
                 from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:1163,
                 from Digest.xs:21:
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/limits.h:132:75: limits.h: No such file or directory
In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:1768,
                 from Digest.xs:21:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/handy.h:119:25: inttypes.h: No such file or directory
In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:1932,
                 from Digest.xs:21:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/unixish.h:106:21: signal.h: No such file or directory
In file included from Digest.xs:21:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2027:33: pthread.h: No such file or directory
In file included from Digest.xs:21:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2029: syntax error before "perl_os_thread"
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2029: warning: data definition has no type or storage class
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2030: syntax error before "perl_mutex"
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2030: warning: data definition has no type or storage class
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2031: syntax error before "perl_cond"
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2031: warning: data definition has no type or storage class
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2032: syntax error before "perl_key"
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2032: warning: data definition has no type or storage class
In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/iperlsys.h:51,
                 from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2259,
                 from Digest.xs:21:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perlio.h:64:19: stdio.h: No such file or directory
In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/iperlsys.h:51,
                 from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2259,
                 from Digest.xs:21:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perlio.h:244: syntax error before '*' token
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perlio.h:247: syntax error before '*' token
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perlio.h:247: warning: data definition has no type or storage class
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perlio.h:250: syntax error before '*' token
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perlio.h:250: warning: data definition has no type or storage class
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perlio.h:253: syntax error before "FILE"
In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2262,
                 from Digest.xs:21:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/sv.h:383: syntax error before "DIR"
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/sv.h:383: warning: no semicolon at end of struct or union
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/sv.h:383: warning: no semicolon at end of struct or union
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/sv.h:385: syntax error before '}' token
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/sv.h:385: warning: data definition has no type or storage class
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/sv.h:399: syntax error before '}' token
In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/op.h:480,
                 from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2268,
                 from Digest.xs:21:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:67:20: pwd.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:70:20: grp.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:73:22: netdb.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:76:43: stdlib.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:80:26: crypt.h: No such file or directory
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:85:27: shadow.h: No such file or directory
In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/op.h:480,
                 from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:2268,
                 from Digest.xs:21:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:602: field `_crypt_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:610: field `_drand48_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:614: field `_grent_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:625: field `_hostent_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:644: field `_netent_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:659: field `_protoent_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:674: field `_pwent_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:685: field `_servent_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:700: field `_spent_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:711: field `_gmtime_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:714: field `_localtime_struct' has incomplete type
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/reentr.h:747: confused by earlier errors, bailing out
make[1]: *** [Digest.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/File-RsyncP-0.52/Digest'
make: *** [subdirs] Error 2
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

cpan>
 
Old 05-19-2005, 10:19 AM   #7
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
Install your distros glibc-devel package....
 
Old 05-19-2005, 10:39 AM   #8
tobycatlin
Member
 
Registered: Apr 2005
Location: Norwich, UK
Posts: 30

Original Poster
Rep: Reputation: 15
Ah i think i have been down this road, got confused and ran back.
I am running redhat enterprise and it's pretty much a fresh install

Is there a rpm i can use or do you know of a tutorial install guide. I tried to make sense of http://www.gnu.org/software/libc/ but it's all a bit beyond me
 
Old 05-19-2005, 11:45 AM   #9
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
if you have a subscription for your ES setup you can do 'up2date glibc-devel' to install it, there should also be a rpm on your install media somewhere....
 
Old 05-20-2005, 03:17 AM   #10
tobycatlin
Member
 
Registered: Apr 2005
Location: Norwich, UK
Posts: 30

Original Poster
Rep: Reputation: 15
this is a test/development server so i don't have a subscription. I do have a subscription for our live main server but i want to get everything working 100% on my test system before even trying anything on our live server.

i'll have a look on my install CD. thanks
 
Old 05-20-2005, 03:29 AM   #11
tobycatlin
Member
 
Registered: Apr 2005
Location: Norwich, UK
Posts: 30

Original Poster
Rep: Reputation: 15
everything seems to dependant on another RPM's. does it ever stop??
 
Old 05-20-2005, 01:02 PM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It will stop eventually, this is why I usually reccomend to people that they just install all of the development libraries unless they are setting up a minimal system.
 
Old 05-23-2005, 03:12 AM   #13
tobycatlin
Member
 
Registered: Apr 2005
Location: Norwich, UK
Posts: 30

Original Poster
Rep: Reputation: 15
is there a single install with all the development libraries? Can it be done off the original install CD. That would make my life much easier
 
Old 05-23-2005, 01:08 PM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You can install them from the original CDs, you should be able to start the package tool used during setup to choose the development packages.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I install cpan? abefroman Linux - Software 1 11-16-2005 11:28 PM
Unable to install Perl module via CPAN Sparky.Watson Linux - Software 1 08-24-2005 08:23 PM
Cpan install problem MicroSun Linux - Software 1 01-31-2005 08:39 AM
perl modules problems CPAN tardigrade Linux - Software 6 09-02-2004 12:29 PM
Slackware 10 and cpan template problems strangelite Slackware 3 07-05-2004 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration