By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,408 Members | 1,914 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,408 IT Pros & Developers. It's quick & easy.

DBD::mysql install problem using CPAN

P: 1
Hi,

I am trying to install DBD::mysql using the CPAN and I am facing the following error:

Expand|Select|Wrap|Line Numbers
  1. cpan> install DBD::mysql
  2. CPAN: Storable loaded ok
  3. Going to read /root/.cpan/Metadata
  4. Warning: Found only 0 objects in /root/.cpan/Metadata
  5. CPAN: LWP::UserAgent loaded ok
  6. Fetching with LWP:
  7.   ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/authors/01mailrc.txt.gz
  8. LWP failed with code[500] message[LWP::Protocol::MyFTP: connect: Connection refused]
  9. Fetching with Net::FTP:
  10.   ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/authors/01mailrc.txt.gz
  11.  
  12. Trying with "/usr/bin/links -source" to get
  13.     ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/authors/01mailrc.txt.gz
  14. ERROR at dump.c:188: Connection refused
  15.  
  16. System call "/usr/bin/links -source "ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/authors/01mailrc.txt.gz"  > /root/.cpan/sources/authors/01mailrc.txt"
  17. returned status 1 (wstat 256)
  18. Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist
  19.  
  20. Trying with "/usr/bin/wget -O -" to get
  21.     ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/authors/01mailrc.txt.gz
  22. --12:47:26--  ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/authors/01mailrc.txt.gz
  23.            => `-'
  24. Resolving ftp.perl.org... 195.27.236.210, 77.75.105.196
  25. Connecting to ftp.perl.org|195.27.236.210|:21... failed: Connection refused.
  26. Connecting to ftp.perl.org|77.75.105.196|:21... failed: Connection refused.
  27.  
  28. System call "/usr/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/authors/01mailrc.txt.gz"  > /root/.cpan/sources/authors/01mailrc.txt"
  29. returned status 1 (wstat 256)
  30. Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist
  31. Issuing "/usr/kerberos/bin/ftp -n"
  32. ftp: connect to address 195.27.236.210: Connection refused
  33. Trying 77.75.105.196...
  34. ftp: connect: Connection refused
  35. Not connected.
  36. Local directory now /root/.cpan/sources/authors
  37. Not connected.
  38. Not connected.
  39. Not connected.
  40. Not connected.
  41. Not connected.
  42. Not connected.
  43. Not connected.
  44. Bad luck... Still failed!
  45. Can't access URL ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/authors/01mailrc.txt.gz.
  46.  
  47. Please check, if the URLs I found in your configuration file
  48. (ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/) are valid. The urllist can be
  49. edited. E.g. with 'o conf urllist push ftp://myurl/'
  50.  
  51. Could not fetch authors/01mailrc.txt.gz
  52. Fetching with LWP:
  53.   ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/02packages.details.txt.gz
  54. LWP failed with code[500] message[LWP::Protocol::MyFTP: connect: Connection refused]
  55. Fetching with Net::FTP:
  56.   ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/02packages.details.txt.gz
  57.  
  58. Trying with "/usr/bin/links -source" to get
  59.     ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/02packages.details.txt.gz
  60. ERROR at dump.c:188: Connection refused
  61.  
  62. System call "/usr/bin/links -source "ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/02packages.details.txt.gz"  > /root/.cpan/sources/modules/02packages.details.txt"
  63. returned status 1 (wstat 256)
  64. Warning: expected file [/root/.cpan/sources/modules/02packages.details.txt.gz] doesn't exist
  65.  
  66. Trying with "/usr/bin/wget -O -" to get
  67.     ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/02packages.details.txt.gz
  68. --12:47:31--  ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/02packages.details.txt.gz
  69.            => `-'
  70. Resolving ftp.perl.org... 195.27.236.210, 77.75.105.196
  71. Connecting to ftp.perl.org|195.27.236.210|:21... failed: Connection refused.
  72. Connecting to ftp.perl.org|77.75.105.196|:21... failed: Connection refused.
  73.  
  74. System call "/usr/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/02packages.details.txt.gz"  > /root/.cpan/sources/modules/02packages.details.txt"
  75. returned status 1 (wstat 256)
  76. Warning: expected file [/root/.cpan/sources/modules/02packages.details.txt.gz] doesn't exist
  77. Issuing "/usr/kerberos/bin/ftp -n"
  78. ftp: connect to address 77.75.105.196: Connection refused
  79. Trying 195.27.236.210...
  80. ftp: connect: Connection refused
  81. Not connected.
  82. Local directory now /root/.cpan/sources/modules
  83. Not connected.
  84. Not connected.
  85. Not connected.
  86. Not connected.
  87. Not connected.
  88. Not connected.
  89. Not connected.
  90. Bad luck... Still failed!
  91. Can't access URL ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/02packages.details.txt.gz.
  92.  
  93. Please check, if the URLs I found in your configuration file
  94. (ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/) are valid. The urllist can be
  95. edited. E.g. with 'o conf urllist push ftp://myurl/'
  96.  
  97. Could not fetch modules/02packages.details.txt.gz
  98. Fetching with LWP:
  99.   ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/03modlist.data.gz
  100. LWP failed with code[500] message[LWP::Protocol::MyFTP: connect: Connection refused]
  101. Fetching with Net::FTP:
  102.   ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/03modlist.data.gz
  103.  
  104. Trying with "/usr/bin/links -source" to get
  105.     ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/03modlist.data.gz
  106. ERROR at dump.c:188: Connection refused
  107.  
  108. System call "/usr/bin/links -source "ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/03modlist.data.gz"  > /root/.cpan/sources/modules/03modlist.data"
  109. returned status 1 (wstat 256)
  110. Warning: expected file [/root/.cpan/sources/modules/03modlist.data.gz] doesn't exist
  111.  
  112. Trying with "/usr/bin/wget -O -" to get
  113.     ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/03modlist.data.gz
  114. --12:47:37--  ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/03modlist.data.gz
  115.            => `-'
  116. Resolving ftp.perl.org... 195.27.236.210, 77.75.105.196
  117. Connecting to ftp.perl.org|195.27.236.210|:21... failed: Connection refused.
  118. Connecting to ftp.perl.org|77.75.105.196|:21... failed: Connection refused.
  119.  
  120. System call "/usr/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/03modlist.data.gz"  > /root/.cpan/sources/modules/03modlist.data"
  121. returned status 1 (wstat 256)
  122. Warning: expected file [/root/.cpan/sources/modules/03modlist.data.gz] doesn't exist
  123. Issuing "/usr/kerberos/bin/ftp -n"
  124. ftp: connect to address 195.27.236.210: Connection refused
  125. Trying 77.75.105.196...
  126. ftp: connect: Connection refused
  127. Not connected.
  128. Local directory now /root/.cpan/sources/modules
  129. Not connected.
  130. Not connected.
  131. Not connected.
  132. Not connected.
  133. Not connected.
  134. Not connected.
  135. Not connected.
  136. Bad luck... Still failed!
  137. Can't access URL ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/modules/03modlist.data.gz.
  138.  
  139. Please check, if the URLs I found in your configuration file
  140. (ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/) are valid. The urllist can be
  141. edited. E.g. with 'o conf urllist push ftp://myurl/'
  142.  
  143. Could not fetch modules/03modlist.data.gz
  144. Going to write /root/.cpan/Metadata
  145. Warning: Cannot install DBD::mysql, don't know what it is.
  146. Try the command
  147.  
  148.     i /DBD::mysql/
  149.  
  150. to find objects with matching identifiers.
Apr 1 '08 #1
Share this Question
Share on Google+
1 Reply


nithinpes
Expert 100+
P: 410
If you are using Activestate perl, it is better to use PPM. Refer this link on installing PERL modules.1
Apr 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.