niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
Install Picks Wrong Dir for Include Files
Post new topic   Reply to topic Page 4 of 6 [76 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2, 3, 4, 5, 6 Next
Author Message
Sisyphus
*nix forums Guru


Joined: 04 Mar 2005
Posts: 503

PostPosted: Fri Jul 01, 2005 5:40 am    Post subject: Re: Fatal error: Command failed for target `test_dynamic' Reply with quote

"Cathy Hui" <kaka.hui@gmail.com> wrote in message
news:1120153846.102581.63820@z14g2000cwz.googlegroups.com...

[snip]

Quote:
t/gd.............ok 6/11FAILED 7: -
template text 2 did not match expected

t/gd.............NOK 7

You need to delve into the code in t\gd.t and find out why test 7 failed. I
don't use CPAN/CPANPLUS, so for me it would be just a matter of editing
t\gd.t as I wanted and running:
perl -Mblib t\gd.t

There's no doubt a way of doing the same thing in the CPAN/CPANPLUS build
environment, but I don't know what it is. I would think that the same
command would work, but you might have to change directories (cd) to do it.

One of the alterations I would make to t\gd.t is to have it print out what
the "template text" of test 7 actually looked like (probably a 2, I guess),
and also have it print out what was "expected". Hopefully that info will
lead you to a resolution of the problem.

[snip]

Quote:
*** Error code 29
make: Fatal error: Command failed for target `test_dynamic'
/usr/ccs/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force


I believe there's a "force install" option you can exercise to force
installation of the module if you decide not to worry about that one failed
test.

Cheers,
Rob
Back to top
Sisyphus
*nix forums Guru


Joined: 04 Mar 2005
Posts: 503

PostPosted: Fri Jul 01, 2005 5:57 am    Post subject: Re: Failing to install IPTables::IPv4 perl module Reply with quote

<esieens@chez.com> wrote in message
news:1120155012.541288.121750@f14g2000cwb.googlegroups.com...
Quote:
Hello all,

I'm running the following command:
cpan -i IPTables::IPv4

and it compiles ok but fails during the tests phase - see output below.

I've installed other perl modules that way without any problem (LWP and
net::ip).

Any idea what could be wrong? COuld I just ignore these error messages
and force the install?


No - it's failed every single test (except the 2 test scripts that were
skipped). There's something fundamentally wrong here - and it's possibly not
too hard to work out, by examining the actual tests that are being run.
Start by trying to work out what could be causing test 1 in each of those
scripts to fail. It's quite likely the same test each time - and possibly
tests something basic like trying to load the module you've just attempted
to build.

Cheers,
Rob
Back to top
amresh
*nix forums beginner


Joined: 01 Jul 2005
Posts: 4

PostPosted: Sat Jul 02, 2005 5:44 am    Post subject: RE::IPTables::IPv4 Reply with quote

Hi to all
I am using IPTables::IPv4
but i have problem when i run file iptable.pl than iptable rule will be
overwrite on previous iptable rule. I have also problem regarding how to
delete iptables rules in use IPTables::IPv4 and how to create iptable rule

I am writing my code*************************8
#iptable.pl
************************************************
$table = IPTables::IPv4::init('filter');

use IPTables::IPv4;
$table = IPTables::IPv4::init('filter');

%IPTables::IPv4 = (
filter => {
INPUT => {
rules => [


{
source => '10.10.10.10/8',
jump => 'ACCEPT'
}
],
pcnt => 50000,
bcnt => 100000,
policy => 'DROP'
}
}
);

Thanks...
Back to top
Keith Keller
*nix forums Guru


Joined: 20 Feb 2005
Posts: 608

PostPosted: Thu Jul 21, 2005 2:22 am    Post subject: Re: installing mod_perl? Reply with quote

On 2005-07-21, pc <chalk@netspace.net.au> wrote:
Quote:

I have installed apache 2 on ubuntu and it is running fine. Perl is not
running on Apache , however. I downloaded mod_perl-2.0.1 and tried
running the Makefile.pl to install.

[snip]

Quote:
Next I get a prompt for apxs, this is not installed so I just press
enter, as prompted.

If you do not have apxs, then you must have the Apache 2 source tree in
order to install mod_perl 2. Please read fully the install instructions
in either the mod_perl source tree or perl.apache.org. You can not
simply run perl Makefile.pl to make mod_perl.

Quote:
After this the script requests the location of the Apache folder. This

It is asking for the Apache source tree.

Quote:
is what I get:

Please provide the location of the Apache directory: /etc/apache2
[ error] Unable to open /etc/apache2/ap_release.h: No such file or
directory
[ error] Unable to determine server version, aborting.
[ error] Please specify MP_APXS or MP_AP_PREFIX.

And ap_release.h is in the Apache source tree. Again, this is all
documented in the installation documentation. If you don't read it
carefully and understand it, you will have a difficult time installing
mod_perl.

--keith

--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information
Back to top
Average_Joe
*nix forums beginner


Joined: 12 Aug 2005
Posts: 1

PostPosted: Fri Aug 12, 2005 2:12 am    Post subject: Re: 2 cgi script executions, is it possible? Reply with quote

["Followup-To:" header set to comp.lang.perl.misc.]
On 2005-07-12, Douglas McCormick Jr. <sanbitter@gmail.com> wrote:
Quote:
Hi there experts,

and also stores the values on my sever space... I can't alter there cgi
script (because www.cedant.com doesn't want me too)

That could be the real problem, you really should have an ISP that allows
you to change CGI scripts. This is probably going to be a recurring
problem.

Quote:
Currently the page I'm writing in all in html, but the tech guy at
cedant who was practically clueless of what I was asking him, told me I
could maybe do it through php???

You could probably do the whole thing through PHP, if you wanted to. This
would require re-writing and eliminating the perl CGI script entirely.

Quote:
I'm willing to do anything, but I really do want to keep the current
cgi for the form values--- can I excute more than 1 script with the hit
of the submit button?

No, and, Yes. Smile (Hope that helps..)

What you can do, is have the CGI script execute another script. This doesn't
work so well with the POST method, but it is possible. You have to set up the
environment (and in the case of POST, stdin) with the form values and then
execute the shell script. If you can't edit the cgi script, then you can't do
it there, have to do that in a way they allow.

Look for the popen type functions in PHP to do this, then, after all the work,
discover the ISP has the popen functions disabled for security reasons..

Personally, I'd recommend finding another ISP. (Kind of a personal rant of
mine, but at the least, an ISP should allow SSH shell access AND CGI access,
this is rare for the commodity <$20.00 hosts.) I have to deal with these type of
hosts quite frequently.

If the CGI script is working and you're happy with it, it would probably be a
heck of a lot easier and quicker to just modify it to suit your needs than it
would be to play gimmicks with multiple scripts.

Quote:
I might just have to have use formmail.cgi but
I'm trying to avoid a second page of submitting (unless I maybe use a
cookie, right?)

It's hard for me to understand exactly whats going on with the second
script, but I don't think cookies are all that relevant here.

Jamie
--
http://www.geniegate.com Custom web programming
User Management Solutions Perl / PHP / Java / UNIX
Back to top
Gunnar Hjalmarsson
*nix forums Guru


Joined: 26 Feb 2005
Posts: 852

PostPosted: Mon Oct 10, 2005 3:18 pm    Post subject: Re: Can't locate warnings.pm in @INC Reply with quote

Gunnar Hjalmarsson wrote:
Quote:

use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
use DBI;
use Time::localtime;

It would surprise me if any of those modules requires 5.006,

Noticed that the latest version of DBI does require 5.006... Maybe
somebody has upgraded that module without upgrading the version of Perl
accordingly.

But, again, no reason to keep guessing. Read the _complete_ error message.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Back to top
Gunnar Hjalmarsson
*nix forums Guru


Joined: 26 Feb 2005
Posts: 852

PostPosted: Mon Oct 10, 2005 3:20 pm    Post subject: Re: Can't locate warnings.pm in @INC Reply with quote

Replied in wrong group. Sorry.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Back to top
sonet
*nix forums beginner


Joined: 15 Apr 2005
Posts: 28

PostPosted: Tue Oct 25, 2005 11:25 am    Post subject: The IPC::ShareLite is very slow than fetch data from file ?? Reply with quote

time shmTest.pl
...

0.65u 0.61s 0:01.43 88.1%
---------------------------------------------------------------------------
-
---
time fileTest.pl
...

0.30u 0.52s 0:01.03 79.6%
=================================================
fileTest.pl
=================================================
#!/usr/local/bin/perl
for ($i=0;$i<=1000;$i++){
open(HANDLE,"/usr/local/octopus/html/test.conf");
print join('',<HANDLE>);
close(HANDLE);
}
=================================================
shmTest.pl
The data is load from /usr/local/octopus/html/test.conf
=================================================
#!/usr/local/bin/perl

use IPC::ShareLite;
for ($i=0;$i<=1000;$i++){
$share = new IPC::ShareLite( -key =>'test.conf',
-destroy => 'no' ) or die $!;
$confstr = $share->fetch;
print $confstr;
}
Back to top
xhoster@gmail.com
*nix forums Guru


Joined: 19 Jul 2005
Posts: 842

PostPosted: Tue Oct 25, 2005 5:24 pm    Post subject: Re: The IPC::ShareLite is very slow than fetch data from file ?? Reply with quote

"sonet" <sonet.all@msa.hinet.net> wrote:


Subject is: Re: The IPC::ShareLite is very slow than fetch data from file
??

Yes, and my yugo gets bad gas mileage when I'm dragging a piano around
behind it. What's your point?

.....
Quote:
#!/usr/local/bin/perl

use IPC::ShareLite;
for ($i=0;$i<=1000;$i++){
$share = new IPC::ShareLite( -key =>'test.conf',
-destroy => 'no' ) or die $!;

Why are you creating the shared memory object in a loop?

Also, the key is supposed to be an integer or a 4 character string, not
a file name.

Finally, why are using shared memory when you don't seem to be sharing any
memory?

Xho

--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
Back to top
John Bokma
*nix forums Guru


Joined: 23 Feb 2005
Posts: 1136

PostPosted: Wed Oct 26, 2005 12:50 am    Post subject: Re: Access a c++ module from Perl Reply with quote

"bg-greece" <temporary@mail.gr> wrote:

Quote:
"John Bokma" <john@castleamber.com> wrote in message
news:Xns96F96BB05E958castleamber@130.133.1.4...
Just a very wild guess: you wrote Cygwin. How did you make the DLL?
Inside Cygwin, or outside it?

the dll was created with with Microsoft Visual C++ 6.0

That might cause the problem(s) you see.

--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com Smile
Back to top
sonet
*nix forums beginner


Joined: 15 Apr 2005
Posts: 28

PostPosted: Wed Oct 26, 2005 2:12 am    Post subject: Re: The IPC::ShareLite is very slow than fetch data from file ?? Reply with quote

Quote:
Why are you creating the shared memory object in a loop?

Just for testing.

Quote:
Also, the key is supposed to be an integer or a 4 character string, not
a file name.

I know . but it will erase the character that the length >4.

Quote:
Finally, why are using shared memory when you don't seem to be sharing any
memory?

Ok. I put some static html or conf to sharememory.




<xhoster@gmail.com> ¦b¶l¥ó news:20051025132421.197$NM@newsreader.com ¤¤¼¶¼g
....
Quote:
"sonet" <sonet.all@msa.hinet.net> wrote:


Subject is: Re: The IPC::ShareLite is very slow than fetch data from file
??

Yes, and my yugo gets bad gas mileage when I'm dragging a piano around
behind it. What's your point?

....
#!/usr/local/bin/perl

use IPC::ShareLite;
for ($i=0;$i<=1000;$i++){
$share = new IPC::ShareLite( -key =>'test.conf',
-destroy => 'no' ) or die $!;

Why are you creating the shared memory object in a loop?

Also, the key is supposed to be an integer or a 4 character string, not
a file name.

Finally, why are using shared memory when you don't seem to be sharing any
memory?

Xho

--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
Back to top
Ron Savage
*nix forums addict


Joined: 21 Feb 2005
Posts: 85

PostPosted: Thu Oct 27, 2005 10:49 am    Post subject: Re: Newb Needs Help with Simple ImageMagick Module Reply with quote

On Thu, 27 Oct 2005 04:10:17 +1000, ion@copsplus.com wrote:

Hi Ion

There are a few dozen Image::Magick hax (demos) here:

http://savage.net.au/ImageMagick.html
Back to top
Jimi-Carlo Bukowski-Wills
*nix forums beginner


Joined: 05 Dec 2005
Posts: 9

PostPosted: Mon Dec 05, 2005 2:18 am    Post subject: Re: Proposed CPAN Module: Tk::Canvas::Music (renamed to Tk::Music) Reply with quote

Hi...

It's been a while, but I'm getting back to thinking about this Tk::Music
module...

How do people want this to work... so far we have the following
requirements:

1. Some way of storing a bunch of notes
2. Some way of displaying them
a) An object that uses a Tk::Canvas to display either:
i) The whole sheet?????
or:
ii) One page at a time??????
b) A Page object that contains everything to be displayed on one page in
the way of systems???
c) A System object that contains measures
d) A Measure object that contains notes
e) An Element object that's inherited by:
i) A Note objecy that has a length, pitch, etc
ii) A Clef object
iii) A TimeSignature object
iv) etc (you get the idea!)
3. Some way of editing them
a) A Cursor object??
4. VERY good documentation so that people can easily write plugins etc.
5. Some conversions from screen distances to print distances so you can
actually print it onto paper???
Back to top
Juha Laiho
*nix forums Guru Wannabe


Joined: 22 Feb 2005
Posts: 139

PostPosted: Wed Jan 11, 2006 7:01 pm    Post subject: Re: https / proxy problem (LWP::UserAgent) Reply with quote

"Larry" <larry_grant_dc@hotmail.com> said:
Quote:
I have a script on Windows which uses LWP to make a simple GET request
through a proxy:

#!/usr/bin/perl

use strict;
use warnings;
use LWP::UserAgent;

my $url = "https://mysite.com";

my $ua = LWP::UserAgent->new;
$ua->proxy(['http', 'https'] => 'http://myproxy.org:80');
my $response = $ua->get( $url );

$response->is_success or
die "Failed to GET '$url': ", $response->status_line;

print $response->as_string, "\n";

I also have Crypt::SSLeay installed so that I can access https sites.
When I try to run the script as above, it prints some HTTP headers and
an HTML-formatted error message from the firewall server which says
"Scheme not supported".

Could it be that LWP does not support HTTP 'CONNECT' method for working
with proxies? As it is this what is needed to proxy https requests:
you first make a 'CONNECT' request to the proxy, and then place your
https traffic in the connection that the proxy opened for you.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
Back to top
Larry
*nix forums Guru


Joined: 20 Feb 2005
Posts: 325

PostPosted: Fri Jan 13, 2006 6:35 pm    Post subject: Re: https / proxy problem (LWP::UserAgent) Reply with quote

Juha Laiho wrote:
Quote:
"Larry" <larry_grant_dc@hotmail.com> said:
I have a script on Windows which uses LWP to make a simple GET request
through a proxy:

#!/usr/bin/perl

use strict;
use warnings;
use LWP::UserAgent;

my $url = "https://mysite.com";

my $ua = LWP::UserAgent->new;
$ua->proxy(['http', 'https'] => 'http://myproxy.org:80');
my $response = $ua->get( $url );

$response->is_success or
die "Failed to GET '$url': ", $response->status_line;

print $response->as_string, "\n";

I also have Crypt::SSLeay installed so that I can access https sites.
When I try to run the script as above, it prints some HTTP headers and
an HTML-formatted error message from the firewall server which says
"Scheme not supported".

Could it be that LWP does not support HTTP 'CONNECT' method for working
with proxies? As it is this what is needed to proxy https requests:
you first make a 'CONNECT' request to the proxy, and then place your
https traffic in the connection that the proxy opened for you.

I took out the "get" call and replaced it with CONNECT as follows:

$ua->proxy(['http', 'https'] => 'http://myproxy.org:80');
my $request = new HTTP::Request CONNECT => $url;
my $response = $ua->request($request);
print $response->as_string;

and it printed:

HTTP/1.0 200 (OK)
Client-Date: Fri, 13 Jan 2006 18:28:05 GMT
Client-Peer: 10.10.15.22:80

but if I change the CONNECT to:

my $request = new HTTP::Request GET => $url;

I get:

HTTP/1.0 200 (OK)
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 90
Content-Type: text/html
Client-Date: Fri, 13 Jan 2006 18:33:20 GMT
Client-Peer: 10.10.15.22:80
Client-Response-Num: 1
Title: Error

<TITLE>Error</TITLE>
<BODY>
<H1>Error</H1>
Scheme not supported.</BODY>
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 4 of 6 [76 Posts] Goto page:  Previous  1, 2, 3, 4, 5, 6 Next
View previous topic :: View next topic
The time now is Wed Dec 03, 2008 10:10 pm | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:57 am
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:56 am
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:56 am
No new posts Install suse from USB without BIOS support vjy04 Suse 0 Tue Jun 24, 2008 8:55 am
No new posts RS6000 43p/140 AIX 4.3 new install - am stuck! remllov99x AIX 0 Tue Aug 21, 2007 11:07 pm

Loans | ModernForums | Online Loans | Per Insurance | Remortgages
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 7.1051s ][ Queries: 16 (6.9492s) ][ GZIP on - Debug on ]