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?
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?
When I left work yesterday I left vim open with the files I was working on. I'm working from home today, so I VPN'ed in and when I go to edit those same files, I get the warning that there's another current vim session open with those files. I know I could just force logout my other user, but that would kill the existing vim session. I think my changes would all be saved in the .swp file. Instead, is it possible for me to take that existing vim session and open it with my second login? That way it would for sure preserve all my changes, and I wouldn't have to open all the same tabs again.
I have problem with resuming after hibernate, it is about 50% chance that computer restart when I want resume, then it starts boot normally and all my work is lost. Acer aspire 3820tg Ubuntu 11.04 Builtin hibernate on partition I try uswsusp s2disk ... on resume it always stops in half of process. I used mainly hibernate, but I'm lost now.
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".
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
There is this server that I have just put with Bugzilla. It needs Image::Magick module for rendering bmp or other image types to png to save some disk space and compress the images.
The best way to install it is using CPAN repos. And it gives whole lot of errors. I am attaching the file for errors.
But if try to install from cpan console it says Image::Magick is already the recent version.
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...
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.
Here is my problem:I work with the BioPerl project. At first, I installed cpan modules without any problem,(eg.) sudo cpan -i CPAN::ModuleI've a proxy connection (university) and I'd configured my proxy settings correctly: perl -MCPAN -eshellIn the beginning it worked, but I don't know why it doens't work today. Here is the outline:
fernando@fer-laptop[fernando] sudo cpan -i Algorithm::Cluster CPAN: Storable loaded ok (v2.15) Going to read '/home/fernando/.cpan/Metadata'
I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./start_tomcat.sh to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process
I have a high priority service that I start with sudo nice -n -10 process. This process does not need superuser rights though, except for the priority elevation. But nice requires superuser privileges to elevate priority.
Description of what the code does or what i intended to do:
1. Created a child process from parent process using 'fork()'
2. Sent a signal 'SIGALRM' from child process to parent process using 'sigqueue' function.
(The Third parameter of 'siqueue' function contains the message (message msg) which the child process wants to send to the parent process.'msg' is a stucture instance containing a) pid of child and b) string) 5. Print the 'msg' sent by child process inside the signal handler function 'sig_action_function' of the parent process I am getting some junk value when this line is executed
Code:
printf("%d ",msg->cpid);
I expected to get the pid of child process, which the child process sent to parent process through the signal.
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".
as we all know Process Scheduler does Process scheduling and its a process as well. I was just wondering that if this happens then the Process "Process Scheduler" should be a part of Process queue as well.
So if there are 5 process are there in Process queue & process scheduler is administrating them then since its also a process, once it puts a process under RUN state it should itself go inside queue because at one instant only one process can get executed on a processor. This is quite confusing for me. Please help me out. I tried to search on this but could not find any relevant topics.
I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh Code: #!/bin/bash
I have a process running on Linux.When i do ps -eaf | grep <myProcess>, it show muliple entries for <myProcess> with different pids for each entry.Kindly tell me what could be the reason for a process having multiple pids?
Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?