LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-04-2011, 03:29 PM   #1
james2009
LQ Newbie
 
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
Global symbol "$psid" requires explicit package name at admin.pl line 16.


Hi,

I have a perl script which was written for me by a professional (I have some basic knowledge), is working fine at the moment but on moving it to a different server as I'm changing a server (new server is shared and supports perl modules), I get the following message

"Global symbol "$psid" requires explicit package name at admin.pl line 16".

I get this for every single one for my values for the whole script which is about 2000 lines. Same error messages for main and admin.

I haven't changed anything on moving it to the new server apart from the first line which is the location of the perl.

I thought it would be too much to post the whole script here but anyone has any idea why is doing it taking into account that it works on a different server?

Mybe I did something wrong when installing or transfering the files?

Thanks
 
Old 07-04-2011, 05:43 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello james2009, welcome to LQ,

you probably have forgotten to move not only the script to another computer but move the perl modules also to the new computer.

What I mean is, it seems that the programmer used modules which are not in the stock Perl-installation. So you will have to find out which modules that are (look at the begin of the program, modules are loaded with "use" or "require").

Another possibility: how old is the program? I remember when I learned Perl back in 1994, there was no "my" keyword. Is it possible, that you try to use a very old Perl-program with a recent Perl-installation?

Markus
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i create a global variable called "dogpatch" with a value of "woof" earthdog Linux - Newbie 9 12-15-2009 02:03 AM
Can someone give me the definition of "Kernel Symbol" and "EXPORT_SYMBOL" ?? Raynus Programming 2 08-30-2008 08:19 PM
avgscan "relocation error" "undefined symbol: __dynamic_cast_2" Monster_user Linux - Software 0 02-22-2006 12:57 PM
Several USB ports: explicit mounting or "hotplug"? SuSE_Lamer SUSE / openSUSE 7 05-12-2005 11:21 AM
Module usage :Global symbol "$ref" requires explicit package name rajatgarg Programming 2 12-17-2003 02:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration