Page 1 of 2

Cannot download perl-IO-Socket-INET6

Posted: 10. Dec 2014, 16:13
by jsfarinet
I'm getting this error when i try to install spamassassin via sourcery. I also tried to install the package individually but the error was the same. And obviously the first thing i did was to update sourcery ... (?)

TIA for any pointer.

Re: Cannot download perl-IO-Socket-INET6

Posted: 10. Dec 2014, 18:07
by westms
jsfarinet wrote:I'm getting this error when i try to install spamassassin via sourcery. I also tried to install the package individually but the error was the same. And obviously the first thing i did was to update sourcery ... (?)
To update sourcery is o.k. But to read the information Sourcery provides about SpamAssassin, is also necessary.
Take a look at the SpamAssassin package description. SpamAssassin may also dependent on perl-IO-Socket-IP.
Probably perl-IO-Socket-INET6 must be installed (via Sourcery) too.

Re: Cannot download perl-IO-Socket-INET6

Posted: 10. Dec 2014, 22:53
by jsfarinet
westms wrote:...To update sourcery is o.k. But to read the information Sourcery provides about SpamAssassin, is also necessary.
Take a look at the SpamAssassin package description. SpamAssassin may also dependent on perl-IO-Socket-IP.
Probably perl-IO-Socket-INET6 must be installed (via Sourcery) too.
As i wrote in my previous post: I've already tried that and the installation of perl-IO-Socket-INET6 as an individual package failed with the same identical error. Btw, the spamassassin installation thells you it will install al needed packages as dependencies and the installation then fails with exactly that dependency (which is the first).

Re: Cannot download perl-IO-Socket-INET6

Posted: 11. Dec 2014, 02:40
by laprjns
jsfarinet wrote: I've already tried that and the installation of perl-IO-Socket-INET6 as an individual package failed with the same identical error.
This is because the perl-IO-Socket-INET6 source download site requires some type of certification to download the source tar ball. Unfortunately Sourcery and it's command line equivalent, slapt-src, cannot accommodate the few packages in the Slackbuild repository that link to sources in these types of source repositories. In order to install perl-IO-Socket-INET6, you are going to have to download the source tar ball manually. Here's how.

Assuming that you are at the point where sourcey threw the per-IO-Socket-INET6 download error message, open a terminal and do the following:

First, cd to the directory where sourcery builds the perl-IO-Socket-INT6 package

Code: Select all

$ cd /usr/src/slapt-src/perl/perl-IO-Socket-INET6/
Now delete the file that was created during the failed download

Code: Select all

$ sudo rm IO-Socket-INET6-2.71.tar.gz 
Now you are ready to download the perl-IO-Socket-INET6 source tarball using wget's "--no-check-certificate" argument. This will avoid the download error

Code: Select all

sudo wget --no-check-certificate https://pkgs.fedoraproject.org/repo/pkgs/perl-IO-Socket-INET6/IO-Socket-INET6-2.71.tar.gz/cd40daacbdb90066205d6b581fafc775/IO-Socket-INET6-2.71.tar.gz 

After the download is complete the last thing to do in the terminal is to make the downloaded file executable

Code: Select all

sudo chmod +x perl-IO-Socket-INET6.SlackBuild

Now you can go back to sourcey to complete the installation of spamassassin, however you will need to install one additional package before restarting the spamassassion installation. Although it's not listed as a dependence "perl-html-parser" is needed to build and run spamassassin, It's not specified in the dependency list that sourcery checks because Slackbuilds assume a full Slackware installation which includes perl-htm-parser. Salix does not install by default full Slackware installation and from time to time installing packages via sourcey will result in finding these hidden dependencies.

So use sourcey to install perl-html-parser first, then re-install spamassassin. It should build and install for you without any more problems.

Re: Cannot download perl-IO-Socket-INET6

Posted: 11. Dec 2014, 08:29
by jsfarinet
laprjns wrote:
jsfarinet wrote: I've already tried that and the installation of perl-IO-Socket-INET6 as an individual package failed with the same identical error.
This is because the perl-IO-Socket-INET6 source download site requires some type of certification to download the source tar ball. Unfortunately Sourcery and it's command line equivalent, slapt-src, cannot accommodate the few packages in the Slackbuild repository that link to sources in these types of source repositories. In order to install perl-IO-Socket-INET6, you are going to have to download the source tar ball manually. Here's how.

Assuming that you are at the point where sourcey threw the per-IO-Socket-INET6 download error message, open a terminal and do the following:

First, cd to the directory where sourcery builds the perl-IO-Socket-INT6 package

Code: Select all

$ cd /usr/src/slapt-src/perl/perl-IO-Socket-INET6/
Now delete the file that was created during the failed download

Code: Select all

$ sudo rm IO-Socket-INET6-2.71.tar.gz 
Up to this point, all ok.
laprjns wrote:Now you are ready to download the perl-IO-Socket-INET6 source tarball using wget's "--no-check-certificate" argument. This will avoid the download error

Code: Select all

sudo wget --no-check-certificate https://pkgs.fedoraproject.org/repo/pkgs/perl-IO-Socket-INET6/IO-Socket-INET6-2.71.tar.gz/cd40daacbdb90066205d6b581fafc775/IO-Socket-INET6-2.71.tar.gzsudo 
Here i get an error (i'm translating the error msgs from german, so excuse me if it's not 100% exact, but i hope you'll get the sense anyway):

Code: Select all

<user>[perl-IO-Socket-INET6]$ sudo wget --no-check-certificate https://pkgs.fedoraproject.org/repo/pkgs/perl-IO-Socket-INET6/IO-Socket-INET6-2.71.tar.gz/cd40daacbdb90066205d6b581fafc775/IO-Socket-INET6-2.71.tar.gzsudo
Password:
--2014-12-11 09:23:51--  https://pkgs.fedoraproject.org/repo/pkgs/perl-IO-Socket-INET6/IO-Socket-INET6-2.71.tar.gz/cd40daacbdb90066205d6b581fafc775/IO-Socket-INET6-2.71.tar.gzsudo
Auflösen des Hostnamen »pkgs.fedoraproject.org (pkgs.fedoraproject.org)«... 209.132.181.4
Verbindungsaufbau zu pkgs.fedoraproject.org (pkgs.fedoraproject.org)|209.132.181.4|:443... verbunden.
WARNUNG: Kann das Zertifikat von »pkgs.fedoraproject.org« nicht prüfen, ausgestellt von »»/C=US/ST=North Carolina/L=Raleigh/O=Fedora Project/OU=Fedora Project CA/CN=Fedora Project CA/emailAddress=admin@fedoraproject.org««:.
  Ein selbst-signiertes Zertifikat gefunden.
HTTP-Anforderung gesendet, warte auf Antwort... 404 Not Found
2014-12-11 09:23:52 FEHLER 404: Not Found.
(The connection is made, i'm warned the certificate of "pks.fedoraproject.org" could not be proven, then i'm prompted there has been found a self-signed certificate and lastly there is 404 Not Found prompt).

In any case and first of all, thanks a lot for trying to help me out (and yes: How do you do to know all these things? For me, sometimes it's kind of magic :D ).

PS. Ma be i've an idea: I looked in SlackBuild.org for "IO-Socket-INET6" and there i found a version 2.72 instead of 2.71.

Re: Cannot download perl-IO-Socket-INET6

Posted: 11. Dec 2014, 10:28
by laprjns
oops typo in my post. The down load link should be

Code: Select all

sudo wget --no-check-certificate https://pkgs.fedoraproject.org/repo/pkgs/perl-IO-Socket-INET6/IO-Socket-INET6-2.71.tar.gz/cd40daacbdb90066205d6b581fafc775/IO-Socket-INET6-2.71.tar.gz 

Try it again.
jsfarinet wrote:I looked in SlackBuild.org for "IO-Socket-INET6" and there i found a version 2.72 instead of 2.71.
I far as I can see, Slackbuild does not have version 2.72 yet. I do see that there is a 2.72 source tarball available at the fedoraproject repo, but the Slackbuild available from Slackbuild does not use it.

The problem this time was the typo in my original post, try it again and it should work.

Re: Cannot download perl-IO-Socket-INET6

Posted: 11. Dec 2014, 10:28
by jsfarinet
Replying to myself: I think i found a solution.

I installed all dependencies indicated in sourcery for spamassassin 3.4.0 individually. Then i installed from slackbuilds.org the INET6 vers. 2.7.2 and then spamassassin 3.4.0 (in the meantime i learned a bit about SlackBuild, that's fine :D ). All went thru fine and sourcery, when updated now shows spassassin installed.

I think/hope, that's ok . . . (?)

Thanks again for helping and pointing me into the right direction.

Re: Cannot download perl-IO-Socket-INET6

Posted: 11. Dec 2014, 10:30
by jsfarinet
laprjns wrote:oops typo in my post. The down load link should be

Code: Select all

sudo wget --no-check-certificate https://pkgs.fedoraproject.org/repo/pkgs/perl-IO-Socket-INET6/IO-Socket-INET6-2.71.tar.gz/cd40daacbdb90066205d6b581fafc775/IO-Socket-INET6-2.71.tar.gz 

Try it again.
jsfarinet wrote:I looked in SlackBuild.org for "IO-Socket-INET6" and there i found a version 2.72 instead of 2.71.
I far as I can see, Slackbuild does not have version 2.72 yet. I do see that there is a 2.72 source tarball available at the fedoraproject repo, but the Slackbuild available from Slackbuild not not use it.

The problem this time was the typo in my original post, try it again and it should work.
I saw your answer only after i posted the reply to myself. My question: Can i leave the installation like it is now (on my computer), or should i re-install?

Re: Cannot download perl-IO-Socket-INET6

Posted: 11. Dec 2014, 10:35
by laprjns
jsfarinet wrote:Can i leave the installation like it is now (on my computer), or should i re-install?
Yes you can.

Just curious, how did you install the 2.72 version?

Re: Cannot download perl-IO-Socket-INET6

Posted: 11. Dec 2014, 11:49
by westms
jsfarinet wrote:As i wrote in my previous post: I've already tried that and the installation of perl-IO-Socket-INET6 as ...
Yes, you did. I hate to read the main message only in the subject. When I read the text in the message body, the statement from the subject is no longer present in my thoughts (often). Therefore, I also replied only to the statement in the message body. I'm sorry.