missing socket.pm 
Author Message
 missing socket.pm

Hi,

I get this error :

-----------------------------------------------------------------

/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl .) at ./newsreader.perl line 4.
BEGIN failed--compilation aborted at ./newsreader.perl line 4.
-----------------------------------------------------------------

when running this very simple program from my vanilla mandrake 7.2
install :
-----------------------------------------------------------------
#!/usr/bin/perl
print "Automatic newsreader v0.1";

use IO::socket;

# open the socket
# perhaps add : Reuse=>1
$remote = IO::Socket::INET->new(Proto=>"tcp", PeerPort=>"119"
PeerAddr=>"news.club-internet.fr")
   or die "Can't open socket\n";

# write HTTP request to server
print $remote "GROUP alt.binaries.pictures.{*filter*}a.{*filter*}s\n";
# recieve everything the server sends, and print it to the screen
while (<$remote>) { print }

# close the socket
close $socket;
-----------------------------------------------------------------

What am I missing and how do I install it? I'd rather install the full
perl rather than just an additional module if it's easier.

Fran?ois



Fri, 11 Jul 2003 08:25:59 GMT  
 missing socket.pm

Shouldn't it be IO::Socket rather than IO::socket?

Tim

Quote:

> Hi,

> I get this error :

> -----------------------------------------------------------------

> /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
> /usr/lib/perl5/site_perl/5.6.0/i386-linux
> /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at
> ./newsreader.perl line 4.
> BEGIN failed--compilation aborted at ./newsreader.perl line 4.
> -----------------------------------------------------------------

> when running this very simple program from my vanilla mandrake 7.2
> install :
> -----------------------------------------------------------------
> #!/usr/bin/perl
> print "Automatic newsreader v0.1";

> use IO::socket;

> # open the socket
> # perhaps add : Reuse=>1
> $remote = IO::Socket::INET->new(Proto=>"tcp", PeerPort=>"119"
> PeerAddr=>"news.club-internet.fr")
>    or die "Can't open socket\n";

> # write HTTP request to server
> print $remote "GROUP alt.binaries.pictures.{*filter*}a.{*filter*}s\n";
> # recieve everything the server sends, and print it to the screen
> while (<$remote>) { print }

> # close the socket
> close $socket;
> -----------------------------------------------------------------

> What am I missing and how do I install it? I'd rather install the full
> perl rather than just an additional module if it's easier.

> Fran?ois



Sun, 13 Jul 2003 07:43:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Socket.pm vs. socket.ph

2. Problem with Socket.pm/Socket.sl on HPUX 10.20

3. Socket/inet_aton.pm not found in AIX 4.1.3 build (IO::Socket)

4. 2-way sockets with IO::Socket.pm

5. select misses pending data on socket

6. missing value after unpack from socket

7. missing socket.ph

8. FTP.pm/Socket.pm Incompatibility With -T ???

9. Compiling GD.pm - missing perlio.h

10. missing Miniperl.pm Imagemagick/FreeBSD4.2

11. Missing WRITE_DAC event to audit in Registry.pm

12. SOAP/Transport.pm missing

 

 
Powered by phpBB® Forum Software