Programming :: CPAN Cannot Install Math - Pari Module
Jun 8, 2010
I wrote a perl script to feed information to our load balancer:
Code:
#!/usr/bin/perl
#
use strict;
#use warnings;
#
#
use Net::SSH::Perl;
my $user="bluethundr";
my $pass="secret";
my $dir="$ENV{HOME}/data";
open (LBVSERVERS), '<', "$dir/lb-vserver" or die "Couldn't open file: $!";
open (CSVSERVERS), '<', "$dir/cs-vserver" or die "Couldn't open file: $!";
my $ssh = Net::SSH::Perl->new("10.50.0.1");
$ssh->login("$user", "$pass");
print " .....
I need to be able to install the Math::Pari CPAN module in order to accomodate the Net::SSH CPAN module. The prereqs are installed:
Code:
cpan> install Net::FTP
Net::FTP is up to date.
cpan> install LWP::UserAgent
LWP::UserAgent is up to date.
But when I either try to install or force install Math::Pari this is what I get:
Code:
cpan> install Math::Pari
Running install for module Math::Pari
Running make for I/IL/ILYAZ/modules/Math-Pari-2.01080604.tar.gz
Checksum for /home/bluethundr/.cpan/sources/authors/id/I/IL/ILYAZ/modules/Math-Pari-2.01080604.tar.gz ok
Math-Pari-2.01080604/ .....
CPAN.pm: Going to build I/IL/ILYAZ/modules/Math-Pari-2.01080604.tar.gz
Did not find GP/PARI build directory around.
Do you want to me to fetch GP/PARI automatically?
(If you do not, you will need to fetch it manually, and/or direct me to the directory with GP/PARI source via the command-line option paridir=/dir)
Make sure you have a large scrollback buffer to see the messages, or 'tee' the STDOUT/STDERR to a file.
Fetch? (y/n, press Enter) y
Getting GP/PARI from ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/
Cannot list (Failed to establish connection.
): at utils/Math/PariBuild.pm line 319, <STDIN> line 1.
Can't fetch file with Net::FTP, now trying with LWP::UserAgent...
You do not have LWP::UserAgent and/or HTML::LinkExtor installed, cannot download, exiting...
View 1 Replies
ADVERTISEMENT
Jun 7, 2010
I tried to use CPAN to install a module Algorithm::Loops using "install Algorithm::Loops". I get the message from CPAN that this module is already up to date.But, when I try to use it I get the message:
Can't locate Algorithm/Loops.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./test.pl line 4.
BEGIN failed--compilation aborted at ./test.pl line 4.
And indeed, the file Loops.pm is nowhere to be found.Isn't that a contradiction?
View 2 Replies
View Related
Apr 2, 2010
Exist it a module in cpan for creating a blog?
View 4 Replies
View Related
May 8, 2010
I installed GD Package from cpan in ubuntu 10.04, but I need gdlib-config for this module. I installed libgd2-noxpm but I continue to have this problem.
View 1 Replies
View Related
May 16, 2010
Code:
Why are basic math problems returning 0? I know that Integers can only hold whole numbers, and it had the exact same problem when I used floats. I am using GCC 4.4.4.
View 3 Replies
View Related
Apr 30, 2015
When I try to compile this code:
#include <math.h>
int main (void) {
double x, y;
x = 2;
y = sqrt(x);
return 0;
}
With the command:
$ gcc test.c
I got this message:
/tmp/cc5QZmCN.o: In function 'main':
test.c:(.text+0x16): undefined reference to 'sqrt'
collect2: error: ld returned 1 exit status
I tried this on a fresh jessie install. I have the same problem on wheezy.
View 2 Replies
View Related
Jun 27, 2010
I've started programming in c recently . following are the details about scene:
* vim is editor and program is compiled in gcc whenever a program involving math function appears it gives error i.though math.h is included in header file compiler complains about it it gives error of unrecognized function that math function like sqrt, etc question is how to connect math.h to a program.
View 14 Replies
View Related
Feb 16, 2010
Here is my situation:I have a series of .plt files that are geared for a device that has it's xy origin at the lower left of the paper however some devices use the center of the paper as it's origin in a piped shell script how can I convert this file to a center origin plot file?Here are some knowns: the existing file always Lower Left 0.0 the existing file max xy is the page upper right x.x the desired output file must have it's 0.0 at the exact center of page (page size will vary). Ideas: Based on the sample files included maybe use PU and PD as the triggers for inputs to be calculated as any other commands have nothing to do with coordinates.
View 14 Replies
View Related
Oct 28, 2010
I am trying to map the coordinates of a grid.
Code:
R=7 # number of rows (lines)
C=6 # number of columns
X=200 # initial horizontal location
Y=100 # initial vertical location
[code]....
View 4 Replies
View Related
Jun 29, 2010
I have CentOS 5.4 and have installed CPAN GD module.Installation messages seemed clean and successful.When I try to create a png file, perl gives the error message :
Can't locate object method "png" via package "GD::Image" at
/usr/lib/perl5/vendor_perl/5.8.8/DBD/Chart/Plot.pm line 1276 (#1)
(F) You called a method correctly, and it correctly indicated a package
functioning as a class, but that package doesn't define that particular
method, nor does any of its base classes. See perlobj.
Also, the following perl one-liner gives answer "No".
perl -e 'use GD; $im=GD::Image->new(); print $im->can("png") ? "Yes" : "No" , "
";'
I suspect that this GD module requires Image::Magick, but that borks on installation.
Magick.xs:2344: warning: implicit declaration of function �MagickCoreGenesis�
make: *** [Magick.o] Error 1
JCRISTY/PerlMagick-6.59.tar.gz
[code]...
View 3 Replies
View Related
Oct 30, 2010
What is "--installdirs site" options in cpan configuration?
View 1 Replies
View Related
Feb 24, 2010
I want to install LWP on my server! i have try many times but the result still failed!
I also try to force install and install/force install smaller module! There was 11 small modules build failed!
I was able to install LWP on a few server successful on Jan 2010.
View 2 Replies
View Related
Sep 29, 2010
My yum is not working. I need cpan in order to install a perl module net::ldap.
This is what I am see when I run the command yum install perl-CPAN
om updates:
I try running yum clear and yum update and nothing fixes the issue.
View 13 Replies
View Related
Mar 5, 2010
Can anyone provide me information about installing perl modules using CPAN.....
View 1 Replies
View Related
Mar 23, 2011
I'm trying to install Tk from CPAN in slackware-current x86_64 for perl v5.12.3 and get the following error message
Code:
In file included from Xlib_f.c:8:0:
Xlib.h:22:15: error: conflicting types for 'XKeycodeToKeysym'
/usr/include/X11/Xlib.h:1694:15: note: previous declaration of 'XKeycodeToKeysym' was here
[Code]....
View 3 Replies
View Related
Aug 12, 2010
how to install PHP which is run as an Apache module or run as CGI on detain.
View 3 Replies
View Related
Jun 27, 2010
I am interested in using fortran and an external library called matio used to save arrays to matlab .mat files. I have installed the matio and matio-dev packages from synaptics but i cannot compile a code receiving an error Code: christos@christos-laptop:~/Desktop$ gfortran -o test test.f90 -lmatio -lz test.f90:2.13: USE MATIO 1
Fatal Error: Can't open module file 'matio.mod' for reading at (1): No such file or directory How can i load a module in order to use it in fortran through the GCC compiler?
View 1 Replies
View Related
Jan 30, 2011
I need to install module u32 into the netfilter module for kernel 2.6.27.
I did not see the source code in the kernel version I have. where can I find the code for U32 module.
I have checked "netfilter.org" and looks like POM is discontinued. Is the u32 module committed to kernel version 2.6.27 or need to patch it. If yes, where can I find the patch?
I building the kernel for a MIPS processor.
View 3 Replies
View Related
Feb 23, 2010
What is the best way to install perl cpan modules in slackware?
i know that you can use 'cpan' and say 'install date::calc' but there is a perl-date-calc slackbuild on sbo. so which is the better way and why?
View 2 Replies
View Related
Jan 5, 2011
do you have any code to flash led lights with paralel port (device driver programming)or any lecture about this subject .if there is a working code this would be better ofcourse.
View 1 Replies
View Related
May 8, 2011
I've installed openSuse 11.4 server-mode (text only) on my desktop, and I'm trying to configure IceWM so i'll eventually have it set up so it always boots into text only mode, but I could be able to quickly start icewm via the command line.using Yast, I installed the Xorg server, and icewm.when I type X, the screen goes black and it just doesn't seem to do anythingI found if I hit ctrl+alt+f1 it kinda puts me back into text only mode, but I can't put in commands anymore. The last thing it says on the screen is:
Failed to load module "fglrx" (module does not exist, 0)
I've goggled that error message and the discussions that popped up around it made no sense to me at all. I've never configured X from scratch before, can someone point me towards a tutorial or something?
View 5 Replies
View Related
Jul 21, 2010
Where is the perl module for programming with sockets?
View 4 Replies
View Related
Sep 1, 2010
I just built a VMWare VM from the Fedora 13 DVD - 64 bit. It now wants to do 385 updates so I let it download all of the rpms. As it starts to do the install I get a Transaction Error to the effect
Quote:
Test Transaction Errors: installing package kernel-2.6.34.6-47.fc13.x86_64 needs 8MB on the /boot filesystem
System monitor shows that I have 19.7 MiB available on /boot - so what is going on?
View 8 Replies
View Related
Jan 31, 2010
I have Ubuntu 9.10 installed and up to date.
I have an HP Laserjet 2200 connected via USB with 64MB of memory. When I print page 2 of this document (for example) [URL] the delta-symbol and minus-signs do not show up, although I see them in Adobe reader version 9.3.
I have tried several of the available drivers for the printer (including the "[recommended]" one) and none of them produce these symbols.
I'm guessing this is a font issue. I don't know how to show you what font stuff I have installed.
[Code].....
View 4 Replies
View Related
Sep 14, 2010
I have a user that wants to use basic math functions from the command line like sqrt and such. Apparently it was installed on the previous server we were using, but not on this new Debian server by default.
Anyone know what package has that functionality?
View 7 Replies
View Related
Feb 22, 2010
I am executing command "yum install perl-CPAN". I got the following error "Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .).". Let me give you some details of the problem.
OS: CentOS release 5.4 (Final)
Architecture: : 32 Bit
Installed Perl Version: This is perl, v5.8.8 built for i386-linux-thread-multi
I've also studies previous posts on this topic which says "yum install perl-CPAN" will fix the problem when I execute this command I got "No package perl-CPAN available".
View 5 Replies
View Related
Oct 20, 2010
while configuring cpan through o conf init inside the cpan shell my SSH connection went down. After reconnecting cpan comes up with this little thing:Quote:There seems to be running another CPAN process (pid 30131). Contacting...Other job is running.Shall I try to run in downgraded mode? (Y/n) [y]Now i could just kill the other process but wonder if its possible to just resume the cpan process?
View 4 Replies
View Related
May 26, 2010
I've been trying to ssh out of my home network to school computers and I keep getting:
ssh: connect to host sage.math.washington.edu port 22: Connection timed out
I've tried this on my machine (running Ubuntu 10.04) and on a windows 7 machine (using putty). I have been successful ssh'ing to this machine using either of the laptops from every other network I've tried, so I'm pretty sure it's something about my home network.
View 3 Replies
View Related
Jan 8, 2011
I'm writing a Plug-gable authentication module for ssh. I am looking for prompting for some extra information after user name and password verification but before giving access to user.Actually after SSH I want to extend the same for some other services. So I am looking at some PAM module level suggestion.
I tried using conversation method with message style=PAM_PROMPT_ECO_ON but it results in PAM_CONV_ERR and conversation fails. Is it right way to interact or please suggest me If I'm doing wrong somewhere. When I use message style=PAM_PROMPT_ECO_OFF communication succeeds but message is not shown and interaction doesn't happen.
I've pased the sample code I've written at url.
Code:
#include <sys/types.h>
#include <string.h>
#include <pwd.h>
#include <grp.h>
#include <syslog.h>
code....
View 3 Replies
View Related
Sep 6, 2010
I need to call some other functions in "int init_module(void)" and module. So I need a stack. How can I setup a stack (1kB) for my module in C?
View 11 Replies
View Related