in reply to perl network / internet access problems

Contents of test file "ftp.pl":

use strict; use warnings; use Net::FTP; my $ftp = Net::FTP->new("ftp.mirror.ac.uk", Debug => 1) or die "Cannot connect to ftp.mirror.ac.uk: $@"; $ftp->login("anonymous",'-anonymous@') or die "Cannot login ", $ftp->message; $ftp->cwd("/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/id/C/CF +/CFRANKS/") or die "Cannot change working directory ", $ftp->message; $ftp->get("HTML-Menu-DateTime-0.94.tar.gz") or die "get failed ", $ftp->message; $ftp->quit;

Runs OK with the site installed Perl:

[fireartist@sphinx source]$ /usr/bin/perl ftp.pl Net::FTP: Net::FTP(2.62) Net::FTP: Exporter(5.562) Net::FTP: Net::Cmd(2.20) Net::FTP: IO::Socket::INET(1.25) Net::FTP: IO::Socket(1.26) Net::FTP: IO::Handle(1.21) Net::FTP=GLOB(0x819612c)<<< 220-Welcome to the JISC National Mirror Se +rvice. Net::FTP=GLOB(0x819612c)<<< 220- Net::FTP=GLOB(0x819612c)<<< 220-To discover more about the service, pl +ease visit: http://www.mirror.ac.uk/ Net::FTP=GLOB(0x819612c)<<< 220- Net::FTP=GLOB(0x819612c)<<< 220-The service is funded by HEFCE via the + Joint Information Systems Committee Net::FTP=GLOB(0x819612c)<<< 220-(JISC) and is intended to support the +UK academic community with a portfolio of Net::FTP=GLOB(0x819612c)<<< 220-useful technical mirrors directly on t +he Joint Academic Network (JANET). Net::FTP=GLOB(0x819612c)<<< 220- Net::FTP=GLOB(0x819612c)<<< 220-We welcome your feedback on the curren +t service and suggestions for new Net::FTP=GLOB(0x819612c)<<< 220-mirrors. Please contact us via mirrors +upport@mirror.ac.uk Net::FTP=GLOB(0x819612c)<<< 220- Net::FTP=GLOB(0x819612c)<<< 220 Net::FTP=GLOB(0x819612c)>>> user anonymous Net::FTP=GLOB(0x819612c)<<< 331 Please specify the password. Net::FTP=GLOB(0x819612c)>>> PASS .... Net::FTP=GLOB(0x819612c)<<< 230 Login successful. Net::FTP=GLOB(0x819612c)>>> CWD /sites/ftp.funet.fi/pub/languages/perl +/CPAN/authors/id/C/CF/CFRANKS/ Net::FTP=GLOB(0x819612c)<<< 250 Directory successfully changed. Net::FTP=GLOB(0x819612c)>>> PASV Net::FTP=GLOB(0x819612c)<<< 227 Entering Passive Mode (194,80,135,30,3 +6,205) Net::FTP=GLOB(0x819612c)>>> RETR HTML-Menu-DateTime-0.94.tar.gz Net::FTP=GLOB(0x819612c)<<< 150 Opening BINARY mode data connection fo +r HTML-Menu-DateTime-0.94.tar.gz (12821 bytes). Net::FTP=GLOB(0x819612c)<<< 226 File send OK. Net::FTP=GLOB(0x819612c)>>> QUIT Net::FTP=GLOB(0x819612c)<<< 221 Goodbye.

Fails with self-installed perl:

[fireartist@sphinx source]$ perl ftp.pl Net::FTP>>> Net::FTP(2.75) Net::FTP>>> Exporter(5.58) Net::FTP>>> Net::Cmd(2.26) Net::FTP>>> IO::Socket::INET(1.27) Net::FTP>>> IO::Socket(1.28) Net::FTP>>> IO::Handle(1.24) Net::FTP=GLOB(0x82ebc90)<<< 220-Welcome to the JISC National Mirror Se +rvice. Net::FTP=GLOB(0x82ebc90)<<< 220- Net::FTP=GLOB(0x82ebc90)<<< 220-To discover more about the service, pl +ease visit: http://www.mirror.ac.uk/ Net::FTP=GLOB(0x82ebc90)<<< 220- Net::FTP=GLOB(0x82ebc90)<<< 220-The service is funded by HEFCE via the + Joint Information Systems Committee Net::FTP=GLOB(0x82ebc90)<<< 220-(JISC) and is intended to support the +UK academic community with a portfolio of Net::FTP=GLOB(0x82ebc90)<<< 220-useful technical mirrors directly on t +he Joint Academic Network (JANET). Net::FTP=GLOB(0x82ebc90)<<< 220- Net::FTP=GLOB(0x82ebc90)<<< 220-We welcome your feedback on the curren +t service and suggestions for new Net::FTP=GLOB(0x82ebc90)<<< 220-mirrors. Please contact us via mirrors +upport@mirror.ac.uk Net::FTP=GLOB(0x82ebc90)<<< 220- Net::FTP=GLOB(0x82ebc90)<<< 220 Net::FTP=GLOB(0x82ebc90)>>> user anonymous Net::FTP=GLOB(0x82ebc90)<<< 331 Please specify the password. Net::FTP=GLOB(0x82ebc90)>>> PASS .... Net::FTP=GLOB(0x82ebc90)<<< 230 Login successful. Net::FTP=GLOB(0x82ebc90)>>> CWD /sites/ftp.funet.fi/pub/languages/perl +/CPAN/authors/id/C/CF/CFRANKS/ Net::FTP=GLOB(0x82ebc90)<<< 250 Directory successfully changed. Net::FTP=GLOB(0x82ebc90)>>> PORT 212,69,37,6,130,129 Net::FTP=GLOB(0x82ebc90)<<< 200 PORT command successful. Consider usin +g PASV. Net::FTP=GLOB(0x82ebc90)>>> RETR HTML-Menu-DateTime-0.94.tar.gz (Hangs: I press CTRL-c at this point)

Self-installed perl runs ok after switching adding "Passive => 1" in the Net::FTP constructor.

[fireartist@sphinx source]$ perl ftp.pl Net::FTP>>> Net::FTP(2.75) Net::FTP>>> Exporter(5.58) Net::FTP>>> Net::Cmd(2.26) Net::FTP>>> IO::Socket::INET(1.27) Net::FTP>>> IO::Socket(1.28) Net::FTP>>> IO::Handle(1.24) Net::FTP=GLOB(0x82ebd1c)<<< 220-Welcome to the JISC National Mirror Se +rvice. Net::FTP=GLOB(0x82ebd1c)<<< 220- Net::FTP=GLOB(0x82ebd1c)<<< 220-To discover more about the service, pl +ease visit: http://www.mirror.ac.uk/ Net::FTP=GLOB(0x82ebd1c)<<< 220- Net::FTP=GLOB(0x82ebd1c)<<< 220-The service is funded by HEFCE via the + Joint Information Systems Committee Net::FTP=GLOB(0x82ebd1c)<<< 220-(JISC) and is intended to support the +UK academic community with a portfolio of Net::FTP=GLOB(0x82ebd1c)<<< 220-useful technical mirrors directly on t +he Joint Academic Network (JANET). Net::FTP=GLOB(0x82ebd1c)<<< 220- Net::FTP=GLOB(0x82ebd1c)<<< 220-We welcome your feedback on the curren +t service and suggestions for new Net::FTP=GLOB(0x82ebd1c)<<< 220-mirrors. Please contact us via mirrors +upport@mirror.ac.uk Net::FTP=GLOB(0x82ebd1c)<<< 220- Net::FTP=GLOB(0x82ebd1c)<<< 220 Net::FTP=GLOB(0x82ebd1c)>>> user anonymous Net::FTP=GLOB(0x82ebd1c)<<< 331 Please specify the password. Net::FTP=GLOB(0x82ebd1c)>>> PASS .... Net::FTP=GLOB(0x82ebd1c)<<< 230 Login successful. Net::FTP=GLOB(0x82ebd1c)>>> CWD /sites/ftp.funet.fi/pub/languages/perl +/CPAN/authors/id/C/CF/CFRANKS/ Net::FTP=GLOB(0x82ebd1c)<<< 250 Directory successfully changed. Net::FTP=GLOB(0x82ebd1c)>>> PASV Net::FTP=GLOB(0x82ebd1c)<<< 227 Entering Passive Mode (194,80,135,30,1 +74,92) Net::FTP=GLOB(0x82ebd1c)>>> RETR HTML-Menu-DateTime-0.94.tar.gz Net::FTP=GLOB(0x82ebd1c)<<< 150 Opening BINARY mode data connection fo +r HTML-Menu-DateTime-0.94.tar.gz (12821 bytes). Net::FTP=GLOB(0x82ebd1c)<<< 226 File send OK. Net::FTP=GLOB(0x82ebd1c)>>> QUIT Net::FTP=GLOB(0x82ebd1c)<<< 221 Goodbye. [fireartist@sphinx source]$

Site-installed perl Config.pm %Config

[fireartist@sphinx source]$ /usr/bin/perl -MConfig -e 'printf("%s:%s\n +", $_, $Config{$_}) for sort keys %Config' Author: CONFIG:true CONFIGDOTSH:true Date:$Date Header: Id:$Id Locker: Log:$Log Mcc:Mcc PATCHLEVEL:6 PERL_API_REVISION:5 PERL_API_SUBVERSION:0 PERL_API_VERSION:5 PERL_REVISION:5 PERL_SUBVERSION:1 PERL_VERSION:6 RCSfile:$RCSfile Revision:$Revision SUBVERSION:1 Source: State: _a:.a _exe: _o:.o afs:false alignbytes:4 ansi2knr: aphostname:/bin/hostname api_revision:5 api_subversion:0 api_version:5 api_versionstring:5.005 ar:ar archlib:/usr/lib/perl5/5.6.1/i686-linux archlibexp:/usr/lib/perl5/5.6.1/i686-linux archname:i686-linux archname64: archobjs: awk:awk baserev:5.0 bash: bin:/usr/bin bincompat5005:define binexp:/usr/bin bison:bison byacc:byacc byteorder:1234 c: castflags:0 cat:cat cc:cc cccdlflags:-fpic ccdlflags:-rdynamic ccflags:-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE +-D_FILE_OFFSET_BITS=64 ccflags_uselargefiles:-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ccname:gcc ccsymbols:-Acpu=i386 -Amachine=i386 -Asystem=posix __GNUC_PATCHLEVEL__ +=0 __gnu_linux__=1 __i386=1 __i386__=1 __linux=1 __linux__=1 __NO_INL +INE__=1 __STDC_HOSTED__=1 __tune_i686__=1 __tune_pentiumpro__=1 __uni +x=1 __unix__=1 ccversion: cf_by:chris cf_email:admin@myhosts.com cf_time:Sun Jul 7 18:30:59 BST 2002 charsize:1 chgrp: chmod: chown: clocktype:clock_t comm:comm compress: config_arg0:./Configure config_arg1:-der config_argc:1 config_args:-der contains:grep cp:cp cpio: cpp:cpp cpp_stuff:42 cppccsymbols:__ELF__=1 __GNUC__=3 __GNUC_MINOR__=1 i386=1 linux=1 unix +=1 cppflags:-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE + -D_FILE_OFFSET_BITS=64 cpplast:- cppminus:- cpprun:cc -E cppstdin:cc -E cppsymbols:_FILE_OFFSET_BITS=64 __i386=1 __i386__=1 _LARGEFILE_SOURCE= +1 __linux=1 __linux__=1 _POSIX_C_SOURCE=199506 _POSIX_SOURCE=1 __STDC +__=1 __unix=1 __unix__=1 crosscompile: cryptlib: csh:csh d_Gconvert:gcvt((x),(n),(b)) d_PRIEUldbl:define d_PRIFUldbl:define d_PRIGUldbl:define d_PRIXU64:define d_PRId64:define d_PRIeldbl:define d_PRIfldbl:define d_PRIgldbl:define d_PRIi64:define d_PRIo64:define d_PRIu64:define d_PRIx64:define d_SCNfldbl:define d__fwalk: d_access:define d_accessx: d_alarm:define d_archlib:define d_atolf: d_atoll:define d_attribut:define d_bcmp:define d_bcopy:define d_bincompat5005:define d_bsd: d_bsdgetpgrp: d_bsdsetpgrp: d_bzero:define d_casti32: d_castneg:define d_charvspr: d_chown:define d_chroot:define d_chsize: d_closedir:define d_const:define d_crypt:define d_csh:define d_cuserid:define d_dbl_dig:define d_difftime:define d_dirnamlen: d_dlerror:define d_dlopen:define d_dlsymun: d_dosuid: d_drand48proto:define d_dup2:define d_eaccess: d_endgrent:define d_endhent:define d_endnent:define d_endpent:define d_endpwent:define d_endsent:define d_eofnblk:define d_eunice: d_fchmod:define d_fchown:define d_fcntl:define d_fcntl_can_lock:define d_fd_macros:define d_fd_set:define d_fds_bits: d_fgetpos:define d_flexfnam:define d_flock:define d_fork:define d_fpathconf:define d_fpos64_t: d_frexpl:define d_fs_data_s: d_fseeko:define d_fsetpos:define d_fstatfs:define d_fstatvfs:define d_fsync:define d_ftello:define d_ftime: d_getcwd:define d_getespwnam: d_getfsstat: d_getgrent:define d_getgrps:define d_gethbyaddr:define d_gethbyname:define d_gethent:define d_gethname:define d_gethostprotos:define d_getlogin:define d_getmnt: d_getmntent:define d_getnbyaddr:define d_getnbyname:define d_getnent:define d_getnetprotos:define d_getpagsz:define d_getpbyname:define d_getpbynumber:define d_getpent:define d_getpgid:define d_getpgrp:define d_getpgrp2: d_getppid:define d_getprior:define d_getprotoprotos:define d_getprpwnam: d_getpwent:define d_getsbyname:define d_getsbyport:define d_getsent:define d_getservprotos:define d_getspnam:define d_gettimeod:define d_gnulibc:define d_grpasswd:define d_hasmntopt:define d_htonl:define d_iconv:define d_index: d_inetaton:define d_int64_t:define d_isascii:define d_isnan:define d_isnanl:define d_killpg:define d_lchown:define d_ldbl_dig:define d_link:define d_locconv:define d_lockf:define d_longdbl:define d_longlong:define d_lseekproto:define d_lstat:define d_madvise:define d_mblen:define d_mbstowcs:define d_mbtowc:define d_memchr:define d_memcmp:define d_memcpy:define d_memmove:define d_memset:define d_mkdir:define d_mkdtemp: d_mkfifo:define d_mkstemp:define d_mkstemps: d_mktime:define d_mmap:define d_modfl:define d_mprotect:define d_msg:define d_msg_ctrunc:define d_msg_dontroute:define d_msg_oob:define d_msg_peek:define d_msg_proxy:define d_msgctl:define d_msgget:define d_msgrcv:define d_msgsnd:define d_msync:define d_munmap:define d_mymalloc: d_nice:define d_nv_preserves_uv:define d_nv_preserves_uv_bits:32 d_off64_t: d_old_pthread_create_joinable: d_oldpthreads: d_oldsock: d_open3:define d_pathconf:define d_pause:define d_perl_otherlibdirs:define d_phostname: d_pipe:define d_poll:define d_portable:define d_pthread_yield: d_pwage: d_pwchange: d_pwclass: d_pwcomment: d_pwexpire: d_pwgecos:define d_pwpasswd:define d_pwquota: d_qgcvt:define d_quad:define d_readdir:define d_readlink:define d_rename:define d_rewinddir:define d_rmdir:define d_safebcpy:define d_safemcpy: d_sanemcmp:define d_sbrkproto:define d_sched_yield:define d_scm_rights:define d_seekdir:define d_select:define d_sem:define d_semctl:define d_semctl_semid_ds:define d_semctl_semun:define d_semget:define d_semop:define d_setegid:define d_seteuid:define d_setgrent:define d_setgrps:define d_sethent:define d_setlinebuf:define d_setlocale:define d_setnent:define d_setpent:define d_setpgid:define d_setpgrp:define d_setpgrp2: d_setprior:define d_setproctitle: d_setpwent:define d_setregid:define d_setresgid:define d_setresuid:define d_setreuid:define d_setrgid: d_setruid: d_setsent:define d_setsid:define d_setvbuf:define d_sfio: d_shm:define d_shmat:define d_shmatprototype:define d_shmctl:define d_shmdt:define d_shmget:define d_sigaction:define d_sigsetjmp:define d_socket:define d_socklen_t:define d_sockpair:define d_socks5_init: d_sqrtl:define d_statblks:define d_statfs_f_flags: d_statfs_s:define d_statvfs:define d_stdio_cnt_lval: d_stdio_ptr_lval:define d_stdio_ptr_lval_nochange_cnt: d_stdio_ptr_lval_sets_cnt:define d_stdio_stream_array: d_stdiobase:define d_stdstdio:define d_strchr:define d_strcoll:define d_strctcpy:define d_strerrm:strerror(e) d_strerror:define d_strtod:define d_strtol:define d_strtold:define d_strtoll:define d_strtoul:define d_strtoull:define d_strtouq:define d_strxfrm:define d_suidsafe: d_symlink:define d_syscall:define d_sysconf:define d_sysernlst: d_syserrlst:define d_system:define d_tcgetpgrp:define d_tcsetpgrp:define d_telldir:define d_telldirproto:define d_time:define d_times:define d_truncate:define d_tzname:define d_umask:define d_uname:define d_union_semun: d_ustat:define d_vendorarch: d_vendorbin: d_vendorlib: d_vfork: d_void_closedir: d_voidsig:define d_voidtty: d_volatile:define d_vprintf:define d_wait4:define d_waitpid:define d_wcstombs:define d_wctomb:define d_xenix: date:date db_hashtype:u_int32_t db_prefixtype:size_t defvoidused:15 direntrytype:struct dirent dlext:so dlsrc:dl_dlopen.xs doublesize:8 drand01:drand48() dynamic_ext:B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Fc +ntl File/Glob GDBM_File IO IPC/SysV Opcode POSIX SDBM_File Socket Sys +/Hostname Sys/Syslog attrs re eagain:EAGAIN ebcdic: echo:echo egrep:egrep emacs: eunicefix:: exe_ext: expr:expr extensions:B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Peek Fcn +tl File/Glob GDBM_File IO IPC/SysV Opcode POSIX SDBM_File Socket Sys/ +Hostname Sys/Syslog attrs re Errno fflushNULL:define fflushall: find: firstmakefile:makefile flex: fpossize:8 fpostype:fpos_t freetype:void full_ar:/software/bin/ar full_csh:/bin/csh full_sed:/bin/sed gccosandvers: gccversion:3.1 gidformat:"lu" gidsign:1 gidsize:4 gidtype:gid_t glibpth:/usr/shlib /lib /usr/lib /usr/lib/386 /lib/386 /usr/ccs/lib / +usr/ucblib /usr/local/lib grep:grep groupcat:cat /etc/group groupstype:gid_t gzip:gzip h_fcntl:false h_sysfile:true hint:previous hostcat:cat /etc/hosts i16size:2 i16type:short i32size:4 i32type:long i64size:8 i64type:long long i8size:1 i8type:char i_arpainet:define i_bsdioctl: i_db:define i_dbm: i_dirent:define i_dld: i_dlfcn:define i_fcntl: i_float:define i_gdbm:define i_grp:define i_iconv:define i_ieeefp: i_inttypes:define i_libutil: i_limits:define i_locale:define i_machcthr: i_malloc:define i_math:define i_memory: i_mntent:define i_ndbm: i_netdb:define i_neterrno: i_netinettcp:define i_niin:define i_poll:define i_prot: i_pthread:define i_pwd:define i_rpcsvcdbm: i_sfio: i_sgtty: i_shadow:define i_socks: i_stdarg:define i_stddef:define i_stdlib:define i_string:define i_sunmath: i_sysaccess: i_sysdir:define i_sysfile:define i_sysfilio: i_sysin: i_sysioctl:define i_syslog:define i_sysmman:define i_sysmode: i_sysmount:define i_sysndir: i_sysparam:define i_sysresrc:define i_syssecrt: i_sysselct:define i_syssockio: i_sysstat:define i_sysstatfs:define i_sysstatvfs:define i_systime:define i_systimek: i_systimes:define i_systypes:define i_sysuio:define i_sysun:define i_sysutsname:define i_sysvfs:define i_syswait:define i_termio: i_termios:define i_time: i_unistd:define i_ustat:define i_utime:define i_values:define i_varargs: i_varhdr:stdarg.h i_vfork: ignore_versioned_solibs:y inc_version_list:5.005 inc_version_list_init:"5.005",0 incpath: inews: installarchlib:/usr/lib/perl5/5.6.1/i686-linux installbin:/usr/bin installman1dir:/usr/man/man1 installman3dir:/usr/lib/perl5/man/man3 installprefix:/usr installprefixexp:/usr installprivlib:/usr/lib/perl5/5.6.1 installscript:/usr/bin installsitearch:/usr/lib/perl5/site_perl/5.6.1/i686-linux installsitebin:/usr/bin installsitelib:/usr/lib/perl5/site_perl/5.6.1 installstyle:lib/perl5 installusrbinperl: installvendorarch: installvendorbin: installvendorlib: intsize:4 issymlink:test -h ivdformat:"ld" ivsize:4 ivtype:long known_extensions:B ByteLoader DB_File Data/Dumper Devel/DProf Devel/Pe +ek Fcntl File/Glob GDBM_File IO IPC/SysV NDBM_File ODBM_File Opcode P +OSIX SDBM_File Socket Sys/Hostname Sys/Syslog Thread attrs re ksh: ld:cc lddlflags:-shared -L/usr/local/lib ldflags: -L/usr/local/lib ldflags_uselargefiles: ldlibpthname:LD_LIBRARY_PATH less:less lib_ext:.a libc:/lib/libc-2.1.3.so libperl:libperl.a libpth:/software/lib /usr/lib /lib /usr/local/lib libs:-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt -lutil libsdirs: libsfiles: libsfound: libspath: /software/lib /usr/lib /lib /usr/local/lib libswanted:sfio socket bind inet nsl nm ndbm gdbm dbm db malloc dl dld + ld sun m c cposix posix ndir dir crypt sec ucb BSD PW x iconv util libswanted_uselargefiles: line: lint: lkflags: ln:ln lns:/bin/ln -s locincpth:/usr/local/include /opt/local/include /usr/gnu/include /opt/ +gnu/include /usr/GNU/include /opt/GNU/include loclibpth:/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib /usr +/GNU/lib /opt/GNU/lib longdblsize:12 longlongsize:8 longsize:4 lp: lpr: ls:ls lseeksize:8 lseektype:off_t mail: mailx: make:make make_set_make:# mallocobj: mallocsrc: malloctype:void * man1dir:/usr/man/man1 man1direxp:/usr/man/man1 man1ext:1 man3dir:/usr/lib/perl5/man/man3 man3direxp:/usr/lib/perl5/man/man3 man3ext:3 mips_type: mkdir:mkdir mmaptype:void * modetype:mode_t more:more multiarch: mv: myarchname:i686-linux mydomain:.myhosts.com myhostname:sphinx myuname:linux sphinx.myhosts.com 2.2.19 #3 smp mon oct 22 20:16:12 bst + 2001 i686 unknown n:-n netdb_hlen_type:size_t netdb_host_type:const char * netdb_name_type:const char * netdb_net_type:unsigned long nm:nm nm_opt: nm_so_opt:--dynamic nonxs_ext:Errno nroff:nroff nvEUformat:"E" nvFUformat:"F" nvGUformat:"G" nveformat:"e" nvfformat:"f" nvgformat:"g" nvsize:8 nvtype:double o_nonblock:O_NONBLOCK obj_ext:.o old_pthread_create_joinable: optimize:-O2 orderlib:false osname:linux osvers:2.2.19 otherlibdirs:/usr/lib/perl5/site_perl/i386-linux:/usr/lib/perl5/5.0050 +3/i386-linux:/usr/lib/perl5/5.00503:/usr/lib/perl5 package:perl5 pager:/usr/bin/less passcat:cat /etc/passwd patchlevel:6 path_sep:: perl: perl5:/usr/bin/perl perladmin:admin@myhosts.com perllibs:-lnsl -ldl -lm -lc -lposix -lcrypt -lutil perlpath:/usr/bin/perl pg:pg phostname:hostname pidtype:pid_t plibpth: pm_apiversion:5.005 pmake: pr: prefix:/usr prefixexp:/usr privlib:/usr/lib/perl5/5.6.1 privlibexp:/usr/lib/perl5/5.6.1 prototype:define ptrsize:4 quadkind:3 quadtype:long long randbits:48 randfunc:drand48 randseedtype:long ranlib:: rd_nodata:-1 revision:5 rm:rm rmail: runnm:false sPRIEUldbl:"llE" sPRIFUldbl:"llF" sPRIGUldbl:"llG" sPRIXU64:"llX" sPRId64:"lld" sPRIeldbl:"lle" sPRIfldbl:"llf" sPRIgldbl:"llg" sPRIi64:"lli" sPRIo64:"llo" sPRIu64:"llu" sPRIx64:"llx" sSCNfldbl:"llf" sched_yield:sched_yield() scriptdir:/usr/bin scriptdirexp:/usr/bin sed:sed seedfunc:srand48 selectminbits:32 selecttype:fd_set * sendmail: sh:/bin/sh shar: sharpbang:#! shmattype:void * shortsize:2 shrpenv: shsharp:true sig_count:64 sig_name:ZERO HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 P +IPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTAL +RM PROF WINCH IO PWR SYS RTMIN NUM33 NUM34 NUM35 NUM36 NUM37 NUM38 NU +M39 NUM40 NUM41 NUM42 NUM43 NUM44 NUM45 NUM46 NUM47 NUM48 NUM49 NUM50 + NUM51 NUM52 NUM53 NUM54 NUM55 NUM56 NUM57 NUM58 NUM59 NUM60 NUM61 NU +M62 RTMAX IOT CLD POLL UNUSED sig_name_init:"ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "BU +S", "FPE", "KILL", "USR1", "SEGV", "USR2", "PIPE", "ALRM", "TERM", "S +TKFLT", "CHLD", "CONT", "STOP", "TSTP", "TTIN", "TTOU", "URG", "XCPU" +, "XFSZ", "VTALRM", "PROF", "WINCH", "IO", "PWR", "SYS", "RTMIN", "NU +M33", "NUM34", "NUM35", "NUM36", "NUM37", "NUM38", "NUM39", "NUM40", +"NUM41", "NUM42", "NUM43", "NUM44", "NUM45", "NUM46", "NUM47", "NUM48 +", "NUM49", "NUM50", "NUM51", "NUM52", "NUM53", "NUM54", "NUM55", "NU +M56", "NUM57", "NUM58", "NUM59", "NUM60", "NUM61", "NUM62", "RTMAX", +"IOT", "CLD", "POLL", "UNUSED", 0 sig_num:0 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 6 17 29 31 sig_num_init:0, 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, 5 +1, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 6, 17, 29, 31, 0 signal_t:void sitearch:/usr/lib/perl5/site_perl/5.6.1/i686-linux sitearchexp:/usr/lib/perl5/site_perl/5.6.1/i686-linux sitebin:/usr/bin sitebinexp:/usr/bin sitelib:/usr/lib/perl5/site_perl/5.6.1 sitelib_stem:/usr/lib/perl5/site_perl sitelibexp:/usr/lib/perl5/site_perl/5.6.1 siteprefix:/usr siteprefixexp:/usr sizesize:4 sizetype:size_t sleep: smail: so:so sockethdr: socketlib: socksizetype:socklen_t sort:sort spackage:Perl5 spitshell:cat src:. ssizetype:ssize_t startperl:#!/usr/bin/perl startsh:#!/bin/sh static_ext: stdchar:char stdio_base:((fp)->_IO_read_base) stdio_bufsiz:((fp)->_IO_read_end - (fp)->_IO_read_base) stdio_cnt:((fp)->_IO_read_end - (fp)->_IO_read_ptr) stdio_filbuf: stdio_ptr:((fp)->_IO_read_ptr) stdio_stream_array: strings:/usr/include/string.h submit: subversion:1 sysman:/usr/man/man1 tail: tar: tbl: tee: test:test timeincl:/usr/include/sys/time.h timetype:time_t touch:touch tr:tr trnl:\n troff: u16size:2 u16type:unsigned short u32size:4 u32type:unsigned long u64size:8 u64type:unsigned long long u8size:1 u8type:unsigned char uidformat:"lu" uidsign:1 uidsize:4 uidtype:uid_t uname:uname uniq:uniq uquadtype:unsigned long long use5005threads: use64bitall: use64bitint: usedl:define useithreads: uselargefiles:define uselongdouble: usemorebits: usemultiplicity: usemymalloc:n usenm:false useopcode:true useperlio: useposix:true usesfio:false useshrplib:false usesocks: usethreads: usevendorprefix: usevfork:false usrinc:/usr/include uuname: uvXUformat:"lX" uvoformat:"lo" uvsize:4 uvtype:unsigned long uvuformat:"lu" uvxformat:"lx" vendorarch: vendorarchexp: vendorbin: vendorbinexp: vendorlib: vendorlib_stem: vendorlibexp: vendorprefix: vendorprefixexp: version:5.6.1 versiononly: vi: voidflags:15 xlibpth:/usr/lib/386 /lib/386 xs_apiversion:5.005 yacc:/usr/bin/byacc yaccflags: zcat: zip:zip

Self-installed perl Config.pm %Config

[fireartist@sphinx source]$ perl -MConfig -e 'printf("%s:%s\n", $_, $C +onfig{$_}) for sort keys %Config' Author: CONFIG:true Date:$Date Header: Id:$Id Locker: Log:$Log Mcc:Mcc PATCHLEVEL:8 PERL_API_REVISION:5 PERL_API_SUBVERSION:0 PERL_API_VERSION:8 PERL_CONFIG_SH:true PERL_REVISION:5 PERL_SUBVERSION:6 PERL_VERSION:8 RCSfile:$RCSfile Revision:$Revision SUBVERSION:6 Source: State: _a:.a _exe: _o:.o afs:false afsroot:/afs alignbytes:4 ansi2knr: aphostname:/bin/hostname api_revision:5 api_subversion:0 api_version:8 api_versionstring:5.8.0 ar:ar archlib:~/perl/lib/5.8.6/i686-linux archlibexp:/home/fireartist/perl/lib/5.8.6/i686-linux archname:i686-linux archname64: archobjs: asctime_r_proto:0 awk:awk baserev:5.0 bash: bin:~/perl/bin binexp:/home/fireartist/perl/bin bison:bison byacc:byacc byteorder:1234 c: castflags:0 cat:cat cc:cc cccdlflags:-fpic ccdlflags:-Wl,-E ccflags:-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_S +OURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm ccflags_uselargefiles:-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ccname:gcc ccsymbols:cpu=i386 __GNUC_PATCHLEVEL__=0 __gnu_linux__=1 machine=i386 +__NO_INLINE__=1 __STDC_HOSTED__=1 system=posix __tune_i686__=1 __tune +_pentiumpro__=1 ccversion: cf_by:fireartist cf_email:fireartist@sphinx.myhosts.com cf_time:Wed Feb 2 20:34:13 GMT 2005 charsize:1 chgrp: chmod:chmod chown: clocktype:clock_t comm:comm compress: config_arg0:Configure config_argc:0 config_args: contains:grep cp:cp cpio: cpp:cpp cpp_stuff:42 cppccsymbols:__ELF__=1 __GNUC__=3 __GNUC_MINOR__=1 i386=1 __i386=1 __i +386__=1 linux=1 __linux=1 __linux__=1 unix=1 __unix=1 __unix__=1 cppflags:-fno-strict-aliasing -pipe -I/usr/local/include -I/usr/includ +e/gdbm cpplast:- cppminus:- cpprun:cc -E cppstdin:cc -E cppsymbols:_FILE_OFFSET_BITS=64 __GLIBC__=2 __GLIBC_MINOR__=3 __GNU_LI +BRARY__=6 _LARGEFILE_SOURCE=1 _POSIX_C_SOURCE=199506 _POSIX_SOURCE=1 +__STDC__=1 __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_LARGEFILE=1 __USE_ +MISC=1 __USE_POSIX=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_PO +SIX2=1 __USE_SVID=1 crypt_r_proto:0 cryptlib: csh:csh ctermid_r_proto:0 ctime_r_proto:0 d_Gconvert:gcvt((x),(n),(b)) d_PRIEUldbl:define d_PRIFUldbl:define d_PRIGUldbl:define d_PRIXU64:define d_PRId64:define d_PRIeldbl:define d_PRIfldbl:define d_PRIgldbl:define d_PRIi64:define d_PRIo64:define d_PRIu64:define d_PRIx64:define d_SCNfldbl:define d__fwalk: d_access:define d_accessx: d_aintl: d_alarm:define d_archlib:define d_asctime_r: d_atolf: d_atoll:define d_attribut:define d_bcmp:define d_bcopy:define d_bsd: d_bsdgetpgrp: d_bsdsetpgrp: d_bzero:define d_casti32: d_castneg:define d_charvspr: d_chown:define d_chroot:define d_chsize: d_class: d_closedir:define d_cmsghdr_s:define d_const:define d_copysignl:define d_crypt:define d_crypt_r: d_csh:define d_ctermid_r: d_ctime_r: d_cuserid:define d_dbl_dig:define d_dbminitproto: d_difftime:define d_dirfd:define d_dirnamlen: d_dlerror:define d_dlopen:define d_dlsymun: d_dosuid: d_drand48_r: d_drand48proto:define d_dup2:define d_eaccess: d_endgrent:define d_endgrent_r: d_endhent:define d_endhostent_r: d_endnent:define d_endnetent_r: d_endpent:define d_endprotoent_r: d_endpwent:define d_endpwent_r: d_endsent:define d_endservent_r: d_eofnblk:define d_eunice: d_faststdio: d_fchdir:define d_fchmod:define d_fchown:define d_fcntl:define d_fcntl_can_lock:define d_fd_macros:define d_fd_set:define d_fds_bits: d_fgetpos:define d_finite:define d_finitel:define d_flexfnam:define d_flock:define d_flockproto:define d_fork:define d_fp_class: d_fpathconf:define d_fpclass: d_fpclassify: d_fpclassl: d_fpos64_t: d_frexpl:define d_fs_data_s: d_fseeko:define d_fsetpos:define d_fstatfs:define d_fstatvfs:define d_fsync:define d_ftello:define d_ftime: d_getcwd:define d_getespwnam: d_getfsstat: d_getgrent:define d_getgrent_r: d_getgrgid_r: d_getgrnam_r: d_getgrps:define d_gethbyaddr:define d_gethbyname:define d_gethent:define d_gethname:define d_gethostbyaddr_r: d_gethostbyname_r: d_gethostent_r: d_gethostprotos:define d_getitimer:define d_getlogin:define d_getlogin_r: d_getmnt: d_getmntent:define d_getnbyaddr:define d_getnbyname:define d_getnent:define d_getnetbyaddr_r: d_getnetbyname_r: d_getnetent_r: d_getnetprotos:define d_getpagsz:define d_getpbyname:define d_getpbynumber:define d_getpent:define d_getpgid:define d_getpgrp:define d_getpgrp2: d_getppid:define d_getprior:define d_getprotobyname_r: d_getprotobynumber_r: d_getprotoent_r: d_getprotoprotos:define d_getprpwnam: d_getpwent:define d_getpwent_r: d_getpwnam_r: d_getpwuid_r: d_getsbyname:define d_getsbyport:define d_getsent:define d_getservbyname_r: d_getservbyport_r: d_getservent_r: d_getservprotos:define d_getspnam:define d_getspnam_r: d_gettimeod:define d_gmtime_r: d_gnulibc:define d_grpasswd:define d_hasmntopt:define d_htonl:define d_ilogbl:define d_index: d_inetaton:define d_int64_t:define d_isascii:define d_isfinite: d_isinf:define d_isnan:define d_isnanl:define d_killpg:define d_lchown:define d_ldbl_dig:define d_link:define d_localtime_r: d_locconv:define d_lockf:define d_longdbl:define d_longlong:define d_lseekproto:define d_lstat:define d_madvise:define d_mblen:define d_mbstowcs:define d_mbtowc:define d_memchr:define d_memcmp:define d_memcpy:define d_memmove:define d_memset:define d_mkdir:define d_mkdtemp:define d_mkfifo:define d_mkstemp:define d_mkstemps: d_mktime:define d_mmap:define d_modfl:define d_modfl_pow32_bug: d_modflproto: d_mprotect:define d_msg:define d_msg_ctrunc:define d_msg_dontroute:define d_msg_oob:define d_msg_peek:define d_msg_proxy:define d_msgctl:define d_msgget:define d_msghdr_s:define d_msgrcv:define d_msgsnd:define d_msync:define d_munmap:define d_mymalloc: d_nice:define d_nl_langinfo:define d_nv_preserves_uv:define d_off64_t: d_old_pthread_create_joinable: d_oldpthreads: d_oldsock: d_open3:define d_pathconf:define d_pause:define d_perl_otherlibdirs:define d_phostname: d_pipe:define d_poll:define d_portable:define d_procselfexe:define d_pthread_atfork: d_pthread_attr_setscope:define d_pthread_yield: d_pwage: d_pwchange: d_pwclass: d_pwcomment: d_pwexpire: d_pwgecos:define d_pwpasswd:define d_pwquota: d_qgcvt:define d_quad:define d_random_r: d_readdir:define d_readdir64_r: d_readdir_r: d_readlink:define d_readv:define d_recvmsg:define d_rename:define d_rewinddir:define d_rmdir:define d_safebcpy: d_safemcpy: d_sanemcmp:define d_sbrkproto:define d_scalbnl:define d_sched_yield:define d_scm_rights:define d_seekdir:define d_select:define d_sem:define d_semctl:define d_semctl_semid_ds:define d_semctl_semun:define d_semget:define d_semop:define d_sendmsg:define d_setegid:define d_seteuid:define d_setgrent:define d_setgrent_r: d_setgrps:define d_sethent:define d_sethostent_r: d_setitimer:define d_setlinebuf:define d_setlocale:define d_setlocale_r: d_setnent:define d_setnetent_r: d_setpent:define d_setpgid:define d_setpgrp:define d_setpgrp2: d_setprior:define d_setproctitle: d_setprotoent_r: d_setpwent:define d_setpwent_r: d_setregid:define d_setresgid:define d_setresuid:define d_setreuid:define d_setrgid: d_setruid: d_setsent:define d_setservent_r: d_setsid:define d_setvbuf:define d_sfio: d_shm:define d_shmat:define d_shmatprototype:define d_shmctl:define d_shmdt:define d_shmget:define d_sigaction:define d_sigprocmask:define d_sigsetjmp:define d_sockatmark:define d_sockatmarkproto: d_socket:define d_socklen_t:define d_sockpair:define d_socks5_init: d_sqrtl:define d_srand48_r: d_srandom_r: d_sresgproto: d_sresuproto: d_statblks:define d_statfs_f_flags: d_statfs_s:define d_statvfs:define d_stdio_cnt_lval: d_stdio_ptr_lval: d_stdio_ptr_lval_nochange_cnt: d_stdio_ptr_lval_sets_cnt: d_stdio_stream_array: d_stdiobase: d_stdstdio: d_strchr:define d_strcoll:define d_strctcpy:define d_strerrm:strerror(e) d_strerror:define d_strerror_r: d_strftime:define d_strtod:define d_strtol:define d_strtold:define d_strtoll:define d_strtoq:define d_strtoul:define d_strtoull:define d_strtouq:define d_strxfrm:define d_suidsafe: d_symlink:define d_syscall:define d_syscallproto:define d_sysconf:define d_sysernlst: d_syserrlst:define d_system:define d_tcgetpgrp:define d_tcsetpgrp:define d_telldir:define d_telldirproto:define d_time:define d_times:define d_tm_tm_gmtoff:define d_tm_tm_zone:define d_tmpnam_r: d_truncate:define d_ttyname_r: d_tzname:define d_u32align: d_ualarm:define d_umask:define d_uname:define d_union_semun: d_unordered: d_usleep:define d_usleepproto:define d_ustat:define d_vendorarch: d_vendorbin: d_vendorlib: d_vendorscript: d_vfork: d_void_closedir: d_voidsig:define d_voidtty: d_volatile:define d_vprintf:define d_wait4:define d_waitpid:define d_wcstombs:define d_wctomb:define d_writev:define d_xenix: date:date db_hashtype:u_int32_t db_prefixtype:size_t db_version_major:2 db_version_minor:4 db_version_patch:14 defvoidused:15 direntrytype:struct dirent dlext:so dlsrc:dl_dlopen.xs doublesize:8 drand01:drand48() drand48_r_proto:0 dynamic_ext:B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPP +ort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDB +M_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File Opco +de POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket St +orable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/APItes +t XS/Typemap attrs re threads threads/shared eagain:EAGAIN ebcdic: echo:echo egrep:egrep emacs: endgrent_r_proto:0 endhostent_r_proto:0 endnetent_r_proto:0 endprotoent_r_proto:0 endpwent_r_proto:0 endservent_r_proto:0 eunicefix:: exe_ext: expr:expr extensions:B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPo +rt Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM +_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File Opcod +e POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Sto +rable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/APItest + XS/Typemap attrs re threads threads/shared Errno extras: fflushNULL:define fflushall: find: firstmakefile:makefile flex: fpossize:16 fpostype:fpos_t freetype:void from:: full_ar:/software/bin/ar full_csh:/bin/csh full_sed:/bin/sed gccansipedantic: gccosandvers: gccversion:3.1 getgrent_r_proto:0 getgrgid_r_proto:0 getgrnam_r_proto:0 gethostbyaddr_r_proto:0 gethostbyname_r_proto:0 gethostent_r_proto:0 getlogin_r_proto:0 getnetbyaddr_r_proto:0 getnetbyname_r_proto:0 getnetent_r_proto:0 getprotobyname_r_proto:0 getprotobynumber_r_proto:0 getprotoent_r_proto:0 getpwent_r_proto:0 getpwnam_r_proto:0 getpwuid_r_proto:0 getservbyname_r_proto:0 getservbyport_r_proto:0 getservent_r_proto:0 getspnam_r_proto:0 gidformat:"lu" gidsign:1 gidsize:4 gidtype:gid_t glibpth:/usr/shlib /lib /usr/lib /usr/lib/386 /lib/386 /usr/ccs/lib / +usr/ucblib /usr/local/lib gmake:gmake gmtime_r_proto:0 gnulibc_version:2.3.2 grep:grep groupcat:cat /etc/group groupstype:gid_t gzip:gzip h_fcntl:false h_sysfile:true hint:recommended hostcat:cat /etc/hosts html1dir: html1direxp: html3dir: html3direxp: i16size:2 i16type:short i32size:4 i32type:long i64size:8 i64type:long long i8size:1 i8type:char i_arpainet:define i_bsdioctl: i_crypt:define i_db:define i_dbm: i_dirent:define i_dld: i_dlfcn:define i_fcntl: i_float:define i_fp: i_fp_class: i_gdbm:define i_grp:define i_ieeefp: i_inttypes:define i_langinfo:define i_libutil: i_limits:define i_locale:define i_machcthr: i_malloc:define i_math:define i_memory: i_mntent:define i_ndbm:define i_netdb:define i_neterrno: i_netinettcp:define i_niin:define i_poll:define i_prot: i_pthread:define i_pwd:define i_rpcsvcdbm: i_sfio: i_sgtty: i_shadow:define i_socks: i_stdarg:define i_stddef:define i_stdlib:define i_string:define i_sunmath: i_sysaccess: i_sysdir:define i_sysfile:define i_sysfilio: i_sysin: i_sysioctl:define i_syslog:define i_sysmman:define i_sysmode: i_sysmount:define i_sysndir: i_sysparam:define i_sysresrc:define i_syssecrt: i_sysselct:define i_syssockio: i_sysstat:define i_sysstatfs:define i_sysstatvfs:define i_systime:define i_systimek: i_systimes:define i_systypes:define i_sysuio:define i_sysun:define i_sysutsname:define i_sysvfs:define i_syswait:define i_termio: i_termios:define i_time:define i_unistd:define i_ustat:define i_utime:define i_values:define i_varargs: i_varhdr:stdarg.h i_vfork: ignore_versioned_solibs:y inc_version_list: inc_version_list_init:0 incpath: inews: installarchlib:/home/fireartist/perl/lib/5.8.6/i686-linux installbin:/home/fireartist/perl/bin installhtml1dir: installhtml3dir: installman1dir: installman3dir: installprefix:~/perl installprefixexp:/home/fireartist/perl installprivlib:/home/fireartist/perl/lib/5.8.6 installscript:/home/fireartist/perl/bin installsitearch:/home/fireartist/perl/lib/site_perl/5.8.6/i686-linux installsitebin:/home/fireartist/perl/bin installsitehtml1dir: installsitehtml3dir: installsitelib:/home/fireartist/perl/lib/site_perl/5.8.6 installsiteman1dir: installsiteman3dir: installsitescript:/home/fireartist/perl/bin installstyle:lib installusrbinperl: installvendorarch: installvendorbin: installvendorhtml1dir: installvendorhtml3dir: installvendorlib: installvendorman1dir: installvendorman3dir: installvendorscript: intsize:4 issymlink:test -h ivdformat:"ld" ivsize:4 ivtype:long known_extensions:B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Deve +l/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Cal +l GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File + ODBM_File Opcode POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM +_File Socket Storable Sys/Hostname Sys/Syslog Thread Time/HiRes Unico +de/Normalize XS/APItest XS/Typemap attrs re threads threads/shared ksh: ld:cc lddlflags:-shared -L/usr/local/lib ldflags: -L/usr/local/lib ldflags_uselargefiles: ldlibpthname:LD_LIBRARY_PATH less:less lib_ext:.a libc:/lib/libc-2.3.2.so libperl:libperl.a libpth:/usr/local/lib /lib /usr/lib libs:-lbind -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lpos +ix libsdirs: /usr/lib libsfiles: libbind.so libnsl.so libndbm.so libgdbm.so libdb.so libdl.s +o libm.so libcrypt.so libutil.so libc.so libposix.a libsfound: /usr/lib/libbind.so /usr/lib/libnsl.so /usr/lib/libndbm.so +/usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm +.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so /usr/li +b/libposix.a libspath: /usr/local/lib /lib /usr/lib libswanted:sfio socket bind inet nsl nm ndbm gdbm dbm db malloc dl dld + ld sun m crypt sec util c cposix posix ucb BSD libswanted_uselargefiles: line: lint: lkflags: ln:ln lns:/bin/ln -s localtime_r_proto:0 locincpth:/usr/local/include /opt/local/include /usr/gnu/include /opt/ +gnu/include /usr/GNU/include /opt/GNU/include loclibpth:/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib /usr +/GNU/lib /opt/GNU/lib longdblsize:12 longlongsize:8 longsize:4 lp: lpr: ls:ls lseeksize:8 lseektype:off_t mail: mailx: make:make make_set_make:# mallocobj: mallocsrc: malloctype:void * man1dir: man1direxp: man1ext:0 man3dir: man3direxp: man3ext:0 mips_type: mistrustnm: mkdir:mkdir mmaptype:void * modetype:mode_t more:more multiarch: mv: myarchname:i686-linux mydomain:.myhosts.com myhostname:sphinx myuname:linux sphinx.myhosts.com 2.6.10 #1 smp sun jan 9 20:00:22 gmt +2005 i686 unknown unknown gnulinux n:-n need_va_copy: netdb_hlen_type:size_t netdb_host_type:const void * netdb_name_type:const char * netdb_net_type:in_addr_t nm:nm nm_opt: nm_so_opt:--dynamic nonxs_ext:Errno nroff:nroff nvEUformat:"E" nvFUformat:"F" nvGUformat:"G" nv_preserves_uv_bits:32 nveformat:"e" nvfformat:"f" nvgformat:"g" nvsize:8 nvtype:double o_nonblock:O_NONBLOCK obj_ext:.o old_pthread_create_joinable: optimize:-O2 orderlib:false osname:linux osvers:2.6.10 otherlibdirs:/home/fireartist/lib package:perl5 pager:/software/bin/less passcat:cat /etc/passwd patchlevel:8 path_sep:: perl: perl5:/usr/bin/perl perl_patchlevel: perladmin:fireartist@sphinx.myhosts.com perllibs:-lbind -lnsl -ldl -lm -lcrypt -lutil -lc -lposix perlpath:/home/fireartist/perl/bin/perl pg:pg phostname:hostname pidtype:pid_t plibpth: pmake: pr: prefix:~/perl prefixexp:/home/fireartist/perl privlib:~/perl/lib/5.8.6 privlibexp:/home/fireartist/perl/lib/5.8.6 procselfexe:"/proc/self/exe" prototype:define ptrsize:4 quadkind:3 quadtype:long long randbits:48 randfunc:drand48 random_r_proto:0 randseedtype:long ranlib:: rd_nodata:-1 readdir64_r_proto:0 readdir_r_proto:0 revision:5 rm:rm rmail: run: runnm:false sPRIEUldbl:"LE" sPRIFUldbl:"LF" sPRIGUldbl:"LG" sPRIXU64:"LX" sPRId64:"Ld" sPRIeldbl:"Le" sPRIfldbl:"Lf" sPRIgldbl:"Lg" sPRIi64:"Li" sPRIo64:"Lo" sPRIu64:"Lu" sPRIx64:"Lx" sSCNfldbl:"Lf" sched_yield:sched_yield() scriptdir:~/perl/bin scriptdirexp:/home/fireartist/perl/bin sed:sed seedfunc:srand48 selectminbits:32 selecttype:fd_set * sendmail: setgrent_r_proto:0 sethostent_r_proto:0 setlocale_r_proto:0 setnetent_r_proto:0 setprotoent_r_proto:0 setpwent_r_proto:0 setservent_r_proto:0 sh:/bin/sh shar: sharpbang:#! shmattype:void * shortsize:2 shrpenv: shsharp:true sig_count:64 sig_name:ZERO HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 P +IPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTAL +RM PROF WINCH IO PWR SYS NUM32 NUM33 NUM34 RTMIN NUM36 NUM37 NUM38 NU +M39 NUM40 NUM41 NUM42 NUM43 NUM44 NUM45 NUM46 NUM47 NUM48 NUM49 NUM50 + NUM51 NUM52 NUM53 NUM54 NUM55 NUM56 NUM57 NUM58 NUM59 NUM60 NUM61 NU +M62 NUM63 IOT CLD POLL UNUSED sig_name_init:"ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "BU +S", "FPE", "KILL", "USR1", "SEGV", "USR2", "PIPE", "ALRM", "TERM", "S +TKFLT", "CHLD", "CONT", "STOP", "TSTP", "TTIN", "TTOU", "URG", "XCPU" +, "XFSZ", "VTALRM", "PROF", "WINCH", "IO", "PWR", "SYS", "NUM32", "NU +M33", "NUM34", "RTMIN", "NUM36", "NUM37", "NUM38", "NUM39", "NUM40", +"NUM41", "NUM42", "NUM43", "NUM44", "NUM45", "NUM46", "NUM47", "NUM48 +", "NUM49", "NUM50", "NUM51", "NUM52", "NUM53", "NUM54", "NUM55", "NU +M56", "NUM57", "NUM58", "NUM59", "NUM60", "NUM61", "NUM62", "NUM63", +"IOT", "CLD", "POLL", "UNUSED", 0 sig_num:0 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 6 17 29 31 sig_num_init:0, 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, 5 +1, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 6, 17, 29, 31, 0 sig_size:68 signal_t:void sitearch:~/perl/lib/site_perl/5.8.6/i686-linux sitearchexp:/home/fireartist/perl/lib/site_perl/5.8.6/i686-linux sitebin:~/perl/bin sitebinexp:/home/fireartist/perl/bin sitehtml1dir: sitehtml1direxp: sitehtml3dir: sitehtml3direxp: sitelib:~/perl/lib/site_perl/5.8.6 sitelib_stem:/home/fireartist/perl/lib/site_perl sitelibexp:/home/fireartist/perl/lib/site_perl/5.8.6 siteman1dir: siteman1direxp: siteman3dir: siteman3direxp: siteprefix:~/perl siteprefixexp:/home/fireartist/perl sitescript:~/perl/bin sitescriptexp:/home/fireartist/perl/bin sizesize:4 sizetype:size_t sleep: smail: so:so sockethdr: socketlib: socksizetype:socklen_t sort:sort spackage:Perl5 spitshell:cat srand48_r_proto:0 srandom_r_proto:0 src:. ssizetype:ssize_t startperl:#!/home/fireartist/perl/bin/perl startsh:#!/bin/sh static_ext: stdchar:char stdio_base:((fp)->_IO_read_base) stdio_bufsiz:((fp)->_IO_read_end - (fp)->_IO_read_base) stdio_cnt:((fp)->_IO_read_end - (fp)->_IO_read_ptr) stdio_filbuf: stdio_ptr:((fp)->_IO_read_ptr) stdio_stream_array: strerror_r_proto:0 strings:/usr/include/string.h submit: subversion:6 sysman:/usr/share/man/man1 tail: tar: targetarch: tbl: tee: test:test timeincl:/usr/include/sys/time.h /usr/include/time.h timetype:time_t tmpnam_r_proto:0 to:: touch:touch tr:tr trnl:\n troff: ttyname_r_proto:0 u16size:2 u16type:unsigned short u32size:4 u32type:unsigned long u64size:8 u64type:unsigned long long u8size:1 u8type:unsigned char uidformat:"lu" uidsign:1 uidsize:4 uidtype:uid_t uname:uname uniq:uniq uquadtype:unsigned long long use5005threads: use64bitall: use64bitint: usecrosscompile: usedl:define usefaststdio:define useithreads: uselargefiles:define uselongdouble: usemallocwrap:define usemorebits: usemultiplicity: usemymalloc:n usenm:false useopcode:true useperlio:define useposix:true usereentrant: usesfio:false useshrplib:false usesocks: usethreads: usevendorprefix: usevfork:false usrinc:/usr/include uuname: uvXUformat:"lX" uvoformat:"lo" uvsize:4 uvtype:unsigned long uvuformat:"lu" uvxformat:"lx" vendorarch: vendorarchexp: vendorbin: vendorbinexp: vendorhtml1dir: vendorhtml1direxp: vendorhtml3dir: vendorhtml3direxp: vendorlib: vendorlib_stem: vendorlibexp: vendorman1dir: vendorman1direxp: vendorman3dir: vendorman3direxp: vendorprefix: vendorprefixexp: vendorscript: vendorscriptexp: version:5.8.6 version_patchlevel_string:version 8 subversion 6 versiononly: vi: voidflags:15 xlibpth:/usr/lib/386 /lib/386 yacc:/usr/bin/byacc yaccflags: zcat: zip:zip

Replies are listed 'Best First'.
Re^2: perl network / internet access problems
by Corion (Patriarch) on Feb 03, 2005 at 11:16 UTC

    Your self-compiled Perl does not use the passive FTP transfer. You need to configure your CPAN/Config.pm the same as the working Perls CPAN/Config.pm, and especially mind the Use passive FTP transfers question. CPAN.pm should be patched so that passive transfers are the default option, but this is not yet the case.

      A search of the Config.pm output from both perl versions turns up no instances of 'ftp' or 'passive'. I'll re-run sh Configure and pay more attention.

      Unfortunately it doesn't explain the mysql connection issue. Although I can connect with IP address, it's less than ideal, as I can't guarantee the IP won't change.

        I was referring to CPAN/Config.pm, which is a quite different file from Config.pm. The file Config.pm contains the Perl configuration, while CPAN/Config.pm contains the configuration for CPAN.pm. Rereading your error message, you don't use CPAN though, you download your stuff yourself. You can either edit your .netrc file, or simply modify your ftp script to use passive mode:

        use strict; use warnings; use Net::FTP; my $ftp = Net::FTP->new("ftp.mirror.ac.uk", Debug => 1) or die "Cannot connect to ftp.mirror.ac.uk: $@"; $ftp->login("anonymous",'-anonymous@') or die "Cannot login ", $ftp->message; $ftp->cwd("/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/id/C/CF +/CFRANKS/") or die "Cannot change working directory ", $ftp->message; $ftp->pasv(1); $ftp->get("HTML-Menu-DateTime-0.94.tar.gz") or die "get failed ", $ftp->message; $ftp->quit;

        My guess is, that your .netrc file is not set up properly for your local Perl, or you don't have Net::Config installed. But you should set the passive mode for ftp connections by default anyway.

        I'll re-run sh Configure and
        You can run a CPAN session like this: FTP_PASSIVE=1 perl -MCPAN -e shell from the command line on a per-session basis without having to hack Config.pm permanently

        it doesn't explain the mysql connection issue
        Sounds like you have name resolution issues at the system level if you can connect using the IP but not using the fqdn.