CentOS 5 Server :: Unable To Give "Perl Path" To Run Perl CGI Script

Jun 2, 2011

I am unable to run perl-cgi script in my cent os Apache server. I have used locate perl command in terminal window and it gives following result:

[code]....

tell which is the path to perl for example "usr/bin perl"

View 13 Replies


ADVERTISEMENT

CentOS 5 Server :: Move 5.5 To /usr/bin/perl So Root Based On Perl 5.12.1?

Aug 11, 2010

I am new here and want to lern CentOS. Current I have installed CentOS 5.5 x64 and Perl 5.8.8. Now i have install Perl 5.12.1 which located to /usr/local/bin/perl. But how I can move it to /usr/bin/perl so root based on Perl 5.12.1?

View 7 Replies View Related

Programming :: Write A Perl Script Which Will Give An Interactive Session To A User To Execute Command On The Server

Feb 25, 2011

I am trying to write a perl script which will give an interactive session to a user to execute command on the server. I have written a small script to do this :

Code: !/usr/bin/perl -w
use strict;
use Net::SSH::Perl;
my $host = '192.168.1.1';
my $username = 'user';
my $login_passwd = 'test123';

[Code]...

View 2 Replies View Related

General :: Get The Path To The Perl Script?

May 1, 2011

I had a problem recently, where a perl script was consuming server resources. I found out it was a perl script by using "top". But it didn't give the path to the script. Nor did ps.Also, ps -ef showed that the process with that pid is /usr/bin/httpd (apache), so it must have been apache serving some perl page I suppose.Is it possible to get the path to currently running perl script, if I only know the process PID of the perl process that is running that script? If so, how? I don't need the path to the perl binary, I need the path to the perl script that binary is currently executing.

View 2 Replies View Related

Programming :: Add Folder To Perl Path?

Jun 8, 2010

I'm the server guy which is why I don't know this, but were staging a new webserver and we use some custom perl scripts and as were moving the site over for testing, apache is blowing a perl error;Can't locate web.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/mcp/htdocs/cgi-bin/newgraph.gif line 11.,Now I can copy that file local, but there are a bunch of things, so the question is how do you globally add a folder to the perl search path

View 1 Replies View Related

Debian :: Launch The Perl Config \ Seems To Be That It Does Not Regonize Perl?

Jul 7, 2010

I am trying to launch the perl config, but when I do so I can an weird error.It seems to be that it does not regonize perl ?

conf.pl: line 11: =: command not found
conf.pl: line 19: my: command not found
conf.pl: line 20: syntax error near unexpected token `{'

[code]...

View 2 Replies View Related

Ubuntu :: Switch Back To /usr/bin/perl After Installing Second Perl?

Aug 14, 2010

I recently reinstalled the B module for perl. Now I found out it didn't just do that, it installed a whole new copy of perl into /usr/local/bin/perl. When I type 'which perl' at the terminal, it says '/usr/local/bin/perl' instead of '/usr/bin/perl'. Normally, this wouldn't bother me. But I installed the one in local/bin without threading support. The one that comes with the system already is build with threading support, which is why I want to switch back to the system perl, and possibly remove the one in /usr/local/bin.

So how do I change it so that the result of 'which perl' returns as '/usr/bin/perl'? And what do I have to do to remove /usr/local/bin/perl?

The reason I need threading support is because I'm designing a file copier that copies several chunks of a file simultaneously to speed up the copying process. Guaranteed a useful script if it works.

View 7 Replies View Related

CentOS 5 Server :: Error In SQL Ledger - Perl Interpreter

Jun 30, 2010

I've been running SQL-Ledger on Centos 5.5 (x86_64) for some time. At some point in time I must have done something to either perl or CPAN and I now get the following error in SQL-Ledger.
Not an ARRAY reference at SL/Form.pm line 1047.
Attempt to free unreferenced scalar: SV 0x18034630, Perl interpreter: 0x17363010 during global destruction.
Attempt to free unreferenced scalar: SV 0x18034630, Perl interpreter: 0x17363010 during global destruction

View 6 Replies View Related

Programming :: Create A ZIP In Perl Without Storing Path Information?

Mar 1, 2010

I have the following code snippet:

Code:

my $file = 'test/mybigfile';
my $zip = Archive::Zip->new();
my $zipped = $zip->addFile($file);

[code]....

it simply takes a file (in this case, "mybigfile") and creates a ZIP file containing that file only. Now, my problem is that when I go to decompress the ZIP file, it creates the relative (or absolute, depending on case) path of the original file. To make an example:

Code:

$ pwd
/tmp/perl
$ ls -R

[code]....

What I need is *not* to store the path information inside of the ZIP file, so that once I decompress the ZIP file I only get the original one without having paths created.

View 2 Replies View Related

OpenSUSE :: Difference Between Perl And Perl-devel?

Jun 28, 2010

I'm new in perl programming and linux OS. What is the difference between perl and perl-devel? What does mean devel? Iwant to install Catalyst and before install as required I have to check if make, gcc and perl-devel are installed in my system. make and gcc are installed. But I have to install perl-devel. First I searched for make, gcc and perl-devel in YAST Software Management and search did not find perl-devel. I visited the software.opensuse.org and wrote "perl-devel" and searched. The result was many similar zips with a prefix perl-devel and I can not choose one for needed perl-devel.

[Code]...

View 5 Replies View Related

Fedora Networking :: /usr/bin/perl: Symbol Lookup Error: /usr/bin/perl: Undefined Symbol: PL_use_safe_putenv

Apr 8, 2009

I am trying to setup the wlan access for my Fedora 9 system. I installed ndiswrapper. But when I run

Code:

ndiswrapper -l

i am getting the error

Code:

/usr/bin/perl: symbol lookup error: /usr/bin/perl: undefined symbol: PL_use_safe_putenv

View 11 Replies View Related

Programming :: Perl - Directories Given To Opendir Via Foreach Give "No Such File Or Directory" Error

Feb 19, 2009

I'm writing a perl script to remove a test database and part of that is of course getting rid of all files. So I wrote this to do the job:

Code:

This always results in an "Could not open /u00/app/oracle/product/10.2.0/rdbms/dbs for reading: No such file or directory" (that directory is the one ending with the $spfile_dir variable) message, although that directory exists and the executing user has writing rights on it.

The same behaviour if I create the directory array like this:

Code:

The problem does not occur when one of the directories is the only element in the array though. Of course I could copy and paste that part of the script for the second directory, but I don't like that workaround.

View 1 Replies View Related

General :: Use "#!/usr/bin/perl" In The Beginning Of A Perl Script

Dec 17, 2010

I have a small problem with Perl and Apache.

If I use "#!/usr/bin/perl" in the beginning of a perl script the script won't work if the script is at all complicated. Simple scripts like "Hello World" works.

But if I use "#!/usr/bin/perl -w" in the beginning all scripts work?

If I don't use the -w this is whats in the logs:

(2)No such file or directory: exec of '/home/test.net/html/cgi-bin/uh/meny.pl' failed

Premature end of script headers: meny.pl

When I use the -w in the script the error-log shows me this.

meny.pl: Name "main::http_path_cgi" used only once: possible typo at /home/test.net/html/cgi-bin/uh/meny.pl line 24.

View 1 Replies View Related

CentOS 5 :: Looking For Perl-XML-RSS?

Dec 14, 2009

To install BackupPC I need :

XML::RSS - allows the web interface to use RSS. Nice if you want backup notifications via RSS.

But I cannot find this perl-module in the repo's via yum.

Quote:No package perl-XML-RSS available.

View 7 Replies View Related

Programming :: Unable To Find The Perl

Mar 9, 2011

Just installed Fedora 14. I wanted to try "Hello World" with perl. But where is it?

Code: [user]@user bin]$ ls

View 1 Replies View Related

CentOS 5 :: How To Run Perl-cgi Script

Jun 21, 2011

I want to run following perl-cgi script in cent OS,but it just print the code as given below-

#!/usr/bin/perl
use Restrictionmap;
use Rebase;
use SeqFileIO;

[Code]....

View 2 Replies View Related

Software :: Unable To Install One Of Perl Modules

Nov 11, 2010

I am unable to install one of perl modules. Please guide me how to install perl modules resolving dependencies. How to verify installed module.

View 1 Replies View Related

Programming :: Unable To Access Filehandles (Perl)

May 17, 2010

I've been reading / trying to learn some Perl lately. I've found the free book, "Learning Perl", quite good and easy to follow most of the times. However, today I was testing one of the scripts in the book and it would only run partly.

Code:

#!/usr/bin/perl
use warnings;
use strict;
my %inventory;

[code]....

This row is supposed to give option, either to use an additional script as pipe (sort.plx),or STDOUT if the extra script is not found.It works with the other script present, however, with the sort.plx being absent it simply wont use STDOUT instead but whines to me:

Can't open perl script "sort.plx": No such file or directory

Has the author of the original script done some error writing it? Since I'm a beginner and found most of the stuff confusing in Perl either way (having previously only experience in Bash and some in PHP) - I can't really tell for sure , but from what I can read in documentation - it doesn't appear to be wrong.As it looks now, the only way for me to use STDOUT is only by removing:

open (SORT, "| perl sort.plx") or *SORT = *STDOUT;
select *SORT;

rows. But then, I lose the piping in to that other script as an option.

View 8 Replies View Related

Programming :: Unable To Append To A File Through Perl/CGI

Apr 6, 2010

where I'm trying to demonstrate the file locking concept through Perl/CGI.Here is the script which I tried.

Code:
#!/usr/bin/perl -w
use strict;
use warnings;
print "Content-type: text/html

[Code].....

View 2 Replies View Related

CentOS 5 :: Perl Dependency While Using Yum Update

Apr 9, 2009

I'm having some perl problems while using yum update... I recently upgraded to 5.3 and have the latest MailScanner.. I do not want to have to remove perl because it will remove a bunch of other things along with it.

[Code]....

View 2 Replies View Related

CentOS 5 :: Perl Error During YUM Update?

Jun 20, 2011

OS: Centos 5.6 The server is installed with Apache WebServer and an open source application called CiviCRM.Last few lines of yum update command executed as root.

--> Finished Dependency Resolution
perl-AnyEvent-5.240-1.el5.rf.noarch from rpmforge has depsolving problems
--> Missing Dependency: perl(Net::SSLeay) >= 1.33 is needed by package perl-AnyEvent-5.240-1.el5.rf.noarch

[code]....

View 2 Replies View Related

CentOS 5 :: ODBC Drivers For CentOS 5.5 To Work With Perl 5.x

Aug 10, 2010

where to find ODBC drivers for CentOS 5.5 to work with Perl 5.x (preferrably free)?

View 2 Replies View Related

Programming :: Unable To Match Across Multiple Lines In Perl

May 11, 2011

I'm trying to split a text file into various parts. Everything in between "123" and "break" (including linebreaks) goes into the splitted file.

e.g. using this text file:

This should split into 4 files. However I'm only getting 2 files: one for the line "123break" and one for "123 blah break". The two occurrences that contain linebreaks are being ignored. The .* part of my match should capture linebreaks seeing that I'm using the /s modifier shouldn't it? Even when I use the match /(123 break)/gs it still doesn't capture the first occurrence. I'm using Perl v5.12.3 (from ActiveState) on Windows XP. The text file is also in Windows format.

Code listed below.

The above code generates two files Output_1.txt and Output_2.txt which contain "123break" and "123 blah break" respectively. I want it to generate four files.

View 4 Replies View Related

CentOS 5 :: Upgrading From 5.3 To 5.4 Via Yum Produces Perl Errors

Oct 26, 2009

When using YUM UPDATE from the prompt more than 230 items are scheduled for update however when the download process has completed I receive errors regarding Perl dependences such as:

file /usr/lib/perl5/5.8.8/List/Util.pm from install of perl-5.8.8-27.el5.x86_64 conflicts with file from package perl-5.8.8-18.el5_3.1.i386

I am unsure how to overcome this. It occurs on two different servers.

View 7 Replies View Related

CentOS 5 :: Installing Additional Perl And Mysql?

Dec 9, 2009

I have a permission to use several CentOS5 computers that are connected to a server where all shared programs sit. Accordingly, all Perl users for example have an identical path to Perl (e.g. /export/user/bin). The administrator suggested I'll install all the programs I need (specifically Perl and Mysql) in my personal space, and then add them to the path before the already installed ones. Accordingly, I could add/change modules without "sudo" privileges, and without changing the global setting.

View 1 Replies View Related

CentOS 5 :: Install Perl Dependencies From Companion CD?

Feb 3, 2011

I am trying to install koha on centos 5.5. The manual tells me to install perl dependencies from companion CD. copy the usr_local.tar.gz to hard drive. But there are seven cd for centos. Which one is the right one for perl dependencies?

View 1 Replies View Related

CentOS 5 :: Installing Perl Modules Does Not Work?

Mar 2, 2011

CentOS and RHEL even though I've been using various Debian/Ubuntu Distros for quite some time. However, I always used to install perl modules via apt-get or, if that did not work, via cpan.In CentOS, I tried installing a couple of perl modules via yum but there are only a very few available. When trying to install perl modules via cpan, the install process usually fails during the make process.I'd prefer to install those modules via the distribution's package manger yum as it's easier to resolve dependencies. Are there any repositories I should add to have more perl packages available? (Where to add further repositories, I just know /etc/apt/sources.list in debian based distros)The other option still would be to install perl modules via cpan. For instance, when trying to cpan install Geo::IP, the output is as follows:

CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 02 Mar 2011 02:42:03 GMT

[code]....

View 2 Replies View Related

CentOS 5 :: How To Install Perl Graphing Modules

Apr 10, 2011

I have newly updated CentOS 5.6 server and would like to keep it "true" to CentOS, so try to avoid manually installing rpm's and CPAN modules.
I need to install perl graphing modules, Chart::Base, GD, GD::Graph, GD::Text, etc.
Have already done
Yum install gd gd-devel php-gd

View 3 Replies View Related

Programming :: Create File Via Perl With Centos SELinux Setup?

Mar 31, 2011

I'm running Apache on Centos 5.5, with active SELinux, and I'm having trouble getting my Perl script to write a file that doesn't yet exist to a folder which has the proper security context.

View 9 Replies View Related

CentOS 5 :: Perl 64bit Update Installs 32bit Version Also

Oct 23, 2009

This is a 64 bit machine
[root@intergate2 log]# rpm -q perl --qf '%{NAME} %{VERSION} %{ARCH}'
perl 5.8.8 x86_64

[root@intergate2 log]# yum install perl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.stanford.edu
* base: mirror.hmc.edu
* extras: mirror.raystedman.net
* updates: centos.eecs.wsu.edu

Setting up Install Process
Resolving Dependencies
---> Running transaction check
---> Package perl.i386 4:5.8.8-18.el5_3.1 set to be updated
---> Package perl.x86_64 4:5.8.8-27.el5 set to be updated .....

Transaction Summary
Install 1 Package(s)
Update 1 Package(s)
Remove 0 Package(s)

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved